Asynchronous methods in NSOperation

后端 未结 3 2024
挽巷
挽巷 2020-12-08 00:55

I\'m fetching some data from Facebook Connect (using the FBConnect Objective-C 2.0 framework) and I\'m doing all that in an NSOperation. It is in an NSOperation because I ha

3条回答
  •  没有蜡笔的小新
    2020-12-08 01:11

    put your FBConnect calls in 'start', not 'main', and manage the 'isFinished' 'isExecuting' properties. (and return YES for 'isConcurrent')

    For more details, see Apple's documentation on writing concurrent NSOperations.

提交回复
热议问题