【问题标题】:NSOperationQueue background process in iPhone? [closed]iPhone中的NSOperationQueue后台进程? [关闭]
【发布时间】:2013-06-05 07:09:39
【问题描述】:

我是 NSOperationQueue 的新手,我需要使用 NSOperationQueue 在后台调用 web-service,如何做到这一点,请帮助我。 我为此花费了更多时间。

提前致谢

【问题讨论】:

标签: iphone ios background-process nsoperation nsoperationqueue


【解决方案1】:

对于 OperationQueue-Part 试试

NSOperationQueue *q = [[NSOperationQueue alloc] initWithBlock:^{
//your code here
//and here ;)
}];

它将自动启动。有关 OperationQueues 的更多信息,请查看文档: https://developer.apple.com/library/mac/#documentation/cocoa/Reference/NSOperationQueue_class/Reference/Reference.html

【讨论】:

    【解决方案2】:

    有一些good tutorials 和有关该主题的指南,即使在apple documentation 中也是如此。多使用搜索功能,否则你会因为问一些琐碎的问题而遭到很多反对。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-02
      • 1970-01-01
      • 2010-11-27
      • 2021-02-25
      • 1970-01-01
      • 1970-01-01
      • 2015-11-21
      • 1970-01-01
      相关资源
      最近更新 更多