调用块时,我得到一个EXC_BAD_ACCESS(代码= EXC_ARM_DA_ALIGN)(设备,iOS 7)
[anAFURLConnectionOperation setDownloadProgressBlock:^(NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead) {
[[ASingleton sharedInstance] incRecv:(int64_t)bytesRead];
}];
,其中
@interface ASingleton () {
int64_t _recv;
}
@end
@implementation
- (void)incRecv:(int64_t)recv
{
OSAtomicAdd64Barrier(recv, &_recv);
}
@end
任何线索?感谢。