iOSアプリを申請して「Your app has the UIFileSharingEnabled key set to true in the Info.plist」という理由でリジェクトされた場合の対処方法をご案内
xcode5エラーログ
Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[mainViewCtrl saveImageToPhotosAlbum:]: unrecognized selector sent to instance 0x15ebd700’
フォトアルバムの保存方法が変わっているみたい。
saveImageToPhotosAlbumは現在使うと古いので使用するなとエラーになる。
そこで、UIImageWriteToSavePhotosAlbumを使用するとこちらのエラーは解決されます。
こんな感じ(〃^∇^)o_彡☆
#!objc
-(void)hoge{
UIImage *myImage = [UIImage imageNamed:@"hogehoge.png"];
//[self saveImageToPhotosAlbum:myImage];
//古いから使うなと起こられる
UIImageWriteToSavedPhotosAlbum(myImage, self, nil, nil);
//こっちを使えばフォトアルバムに保存できる。
}