【问题标题】:Iphone stop assetEnumeratorIphone 停止资产枚举器
【发布时间】:2010-10-22 08:28:30
【问题描述】:

void (^assetEnumerator)(struct ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) {

如何停止assetEnumerator 运行循环?

谢谢。

【问题讨论】:

    标签: iphone assets


    【解决方案1】:

    文档说的差不多:

    在块中做:

    *stop = YES;
    

    然后在您当前的“迭代”之后,它将停止枚举资产。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-11-12
      • 1970-01-01
      • 2012-08-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-04
      • 1970-01-01
      相关资源
      最近更新 更多