我有一个 imagePickerController 允许用户拍摄或选择图像。在 - (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 在 -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] ()
目前我做
[self performSelector:@selector(getcaption:) withObject:nil afterDelay:(NSTimeInterval)1];
在 didFinishPickingMediaWithInfo 这很讨厌,只有 95% 可靠