我试图用一个中心塔顿做一个简单的塔巴信,以便了解情况,增加评论并上载(如数十个其他信)。
So far, I got the camera stuff working in a custom view controller (MSPickPhotoViewController) as one of my tab bar items and now I want to hand it over to NavigationController allowing to enter some information and to upload the photo to a server. I m using a storyboard and tried using a segue from my MSPickPhotoViewController to the navigation controller. I gave the segue an identifier addPhoto which i call by:
[self performSegueWithIdentifier:@"addPhoto" sender:self];
在MSPickPhotoViewController,我还做了以下工作:交出在座的照片:
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([[segue identifier] isEqualToString:@"addPhoto"]) {
MSPostPhotoViewController *vc = [segue destinationViewController];
vc.image.image = self.image;
}
}
I m总能例外
NSInvalidArgumentException , reason: Receiver (<MSPickPhotoViewController: 0x189770>) has no segue with identifier addPhoto
MSPickPhotoViewController本人没有纽伦,它只是开一份行动表,选择是否从图书馆取光或选取照片,并交出照片。
任何建议?
Greetings, Björn