I've got an imagePickerController which allows the user to take or select an image.
In - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info; I would like to trigger opening another modal view to capture the caption. I have a call for that purpose...
-(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];
}
The question is how to call getcaption without triggering a spiral of
#6663 0x324abb18 in -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] ()
At the moment I do
[self performSelector:@selector(getcaption:) withObject:nil afterDelay:(NSTimeInterval)1];
in didFinishPickingMediaWithInfo which is nasty, and only 95% reliable