0

我有一个来自我们团队的老成员的新项目。不知道问题出在哪里...

  // Chooses the photo at the last index
    [group enumerateAssetsAtIndexes:[NSIndexSet indexSetWithIndex:[group numberOfAssets] - 1] options:0 usingBlock:^(ALAsset *alAsset, NSUInteger index, BOOL *innerStop) {

        // The end of the enumeration is signaled by asset == nil.
        if (alAsset) {
            ALAssetRepresentation *representation = [alAsset defaultRepresentation];
            [defaults setObject:representation.filename forKey:@"latest"];
        }
    }];
} failureBlock: ^(NSError *error) {
    // Typically you should handle an error more gracefully than this.
    NSLog(@"No groups");
}];

2014-09-04 11:37:55.960 IMDropShare [28350:60b] 警告:GoogleAnalytics 3.06 void GAIuncaughtExceptionHandler(NSException *) (GAIUncaughtExceptionHandler.m:49):未捕获的异常:indexSet 计数或 lastIndex 不得超过 -numberOfAssets 2014-09- 04 11:38:00.980 IMDropShare [28350:60b] *由于未捕获的异常“NSRangeException”而终止应用程序,原因:“indexSet 计数或 lastIndex 不得超过 -numberOfAssets”

4

1 回答 1

0

问题是,图书馆里没有照片……

对于我的问题,我添加了一些照片并解决了它!

于 2014-09-04T11:48:00.377 回答