【问题标题】:Can iPhone take photos at background?iPhone可以在后台拍照吗?
【发布时间】:2009-09-01 03:29:16
【问题描述】:

最近我用 NSTimer 重复拍照,它会显示在屏幕上。

这就是问题所在:

我需要执行我的应用程序。 &同时拍照。 那么,有没有办法在后台拍照呢?

如果有任何意见,我将不胜感激~

【问题讨论】:

    标签: iphone sdk background photo


    【解决方案1】:

    查看NSThreaddetachNewThreadSelector:toTarget:withObject: 方法。

    例如:

    [NSThread detachNewThreadSelector:@selector(takePictures) toTarget:self withObject:nil];
    

    在你班上的其他地方,你会有:

    - (void) takePictures {
       // insert code to take pictures...
    }
    

    【讨论】:

      猜你喜欢
      • 2011-06-08
      • 2018-02-17
      • 2010-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-29
      相关资源
      最近更新 更多