iphone - How can I push to another view after user finishes taking photo using UIImagePicker -
i trying allow user take photo using uiimagepickercontroller , after finishing take him uitableview, passing chosen image, can add info photo in text fields such description.
right code in didfinishpickingmediawithinfo:
if (image) { photoinfoviewcontroller* photo_info_controller = [[photoinfoviewcontroller alloc] init]; photo_info_controller.image = image; [self dismissviewcontrolleranimated:yes completion:^{ [self.parentviewcontroller presentviewcontroller:photo_info_controller animated:yes completion:nil]; }]; }
this takes code next view static tableviewcontroller
and in photoinfoview controller
i see viewdidload gets called nslog see empty tableviewcontroller , no text fields...
any 1 have advice??
try change photoinfoviewcontroller initialization.
- set storyboard id in storyboard file photoinfoviewcontroller
- change code.
uistoryboard *storyboard = [uistoryboard storyboardwithname:<#name of storyboard#> bundle:[nsbundle mainbundle]]; photoinfoviewcontroller *photo_info_controller = [storyboard instantiateviewcontrollerwithidentifier:@"photoinfoviewcontroller"];
Comments
Post a Comment