我已經下載了最新的Aviary代碼2.6.0,並將其合併到我的Xcode 4.2中,用於運行iOS 5.0的iPhone 4S。每次啓動Aviary動作時,我都會在objectAtIndexedSubscript下面看到一個回溯秀。iOS 5.0的Aviary SDK問題 - objectAtIndexedSubscript
我看到這篇文章「Is objectAtIndexedSubscript available in IOS5?」,在iOS 5.0中沒有objectAtIndexedSubscript。在Aviary文檔中,它表示支持iOS 5.0。我錯過了什麼?
所以這是我的問題。有沒有人試圖將iOS 5.0的最新Aviary代碼版本集成到iOS 5.0中?如果不是Aviary SDK版本適用於iOS 5.0的版本?我在哪裏可以下載Aviary SDK的舊版本。我還沒有準備好轉移到iOS 6.0。我試圖向Aviary支持報告這個錯誤,但我感覺他們會告訴我去升級到iOS 6.0。
從百鳥網站:
運行時間的要求SDK支持的最低IOS版本是 的iOS 5.0。這樣選擇的主要原因是我們使用ARC (自動引用計數)和我們的一些蘋果 框架和庫的依賴,需要的iOS 5」
- (void) launchPhotoEditorWithImage:(UIImage *)editingResImage highResolutionImage:(UIImage *)highResImage
{
NSLog(@"launchPhotoEditorWithImage ...");
// Initialize the photo editor and set its delegate
AFPhotoEditorController * photoEditor = [[AFPhotoEditorController alloc] initWithImage:editingResImage];
[photoEditor setDelegate:self];
NSLog(@"Present photo editor ...");
// Present the photo editor.
[self presentViewController:photoEditor animated:YES completion:nil];
}
2013-03-31 19:32:14.953 Photo Editor[348:707] launchPhotoEditorWithImage ...
2013-03-31 19:32:15.421 Photo Editor[348:707] Present photo editor ...
2013-03-31 19:32:15.421 Photo Editor[348:3f03] -[__NSArrayM objectAtIndexedSubscript:]: unrecognized selector sent to instance 0x4ac5f0
2013-03-31 19:32:15.432 Photo Editor[348:3f03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM objectAtIndexedSubscript:]: unrecognized selector sent to instance 0x4ac5f0'
*** First throw call stack:
(0x36fbe8bf 0x3232e1e5 0x36fc1acb 0x36fc0945 0x36f1b680 0xb1a45 0x32933d55 0x32935dc7 0x32935c5d 0x32936867 0x37f5c1cf 0x37f5c0a4)
terminate called throwing an exception[Switching to process 9987 thread 0x2703]
[Switching to process 9987 thread 0x2703]
warning: Attempting to create USE_BLOCK_IN_FRAME variable with block that isn't in the frame.
kill
Current language: auto; currently objective-c
quit
Program ended with exit code: 0