Array retuning a blank array outside of PFQuery with Parse.

前端 未结 3 496
难免孤独
难免孤独 2021-01-27 22:42

Array returning a blank array when outside of the PFQuery. For some reason, the items are not being passed to the array when compiled.

class DriverViewController         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-27 23:14

    Logan's answer is right in the money.

    See my answer in this thread: Storing values in completionHandlers - Swift

    I wrote up a detailed description of how async completion handlers work, and in the comments there is a link to a working example project the illustrates it.

提交回复
热议问题