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 tableviewcontrollerenter image description here

and in photoinfoview controller

i see viewdidload gets called nslog see empty tableviewcontroller , no text fields...

any 1 have advice??

try change photoinfoviewcontroller initialization.

  1. set storyboard id in storyboard file photoinfoviewcontroller
  2. change code.
uistoryboard *storyboard = [uistoryboard storyboardwithname:<#name of storyboard#> bundle:[nsbundle mainbundle]]; photoinfoviewcontroller *photo_info_controller = [storyboard instantiateviewcontrollerwithidentifier:@"photoinfoviewcontroller"]; 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -