【发布时间】:2011-01-29 00:06:37
【问题描述】:
我有一个 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% 可靠
【问题讨论】:
标签: iphone objective-c pushviewcontroller