我想segue
从imagePickerController:didFinishPickingMediaWithInfo:
方法中以编程方式调用 a ,但它不起作用。它不会崩溃,但不起作用。它什么也不做。该prepareForSegue
方法被正确调用。
- (void) imagePickerController:(UIImagePickerController *)picker
didFinishPickingMediaWithInfo:(NSDictionary *)info {
rutaFoto = [info valueForKey:UIImagePickerControllerMediaURL];
[self dismissModalViewControllerAnimated:YES];
[self performSegueWithIdentifier:@"aGaleria" sender:self];
}
segue
链接UIViewControllers
2 。如果我performSegueWithIdentifier
从其他地方(例如从推送UIButton
方法)调用 segue,它会起作用。有任何想法吗?