ユーザーが画像を撮影または選択できるimagePickerControllerがあります。In-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info; キャプションをキャプチャするために、別のモーダルビューを開くトリガーを作成したいと思います。その目的のために電話があります...
-(void) getcaption:(id) obj {
textInput * ti = [[textInput alloc] initWithContent:@"" header:@"Caption for photo" source:2];
ti.delegate = self;
[self presentModalViewController:ti animated:YES];
[ti release];
}
問題は、スパイラルをトリガーせずにgetcaptionを呼び出す方法です。
#6663 0x324abb18 in-[UIView(Hierarchy)_makeSubtreePerformSelector:withObject:withObject:copySublayers:]()
現時点では
[self performSelector:@selector(getcaption:) withObject:nil afterDelay:(NSTimeInterval)1];
厄介で、95%しか信頼できないdidFinishPickingMediaWithInfoで