uiviewcontroller - Trying to call by click uibutton event move to another secondviewcontroller -
i trying call click uibutton event move secondviewcontroller
programming
(ibaction)button:(id)sender { uiviewcontroller *homecon=[[uiviewcontroller alloc]initwithnibname:@"loginscreen" bundle:null]; [self segueforunwindingtoviewcontroller:homecon fromviewcontroller:homecon identifier:@"loginscreen"]; [self.navigationcontroller pushviewcontroller:homecon animated:yes]; }
try 1 if in navigation controller
(ibaction)button:(id)sender { viewcontroller *viewcontroller = [[uiviewcontroller alloc]initwithnibname:@"loginscreen" bundle:null]; [self.navigationcontroller pushviewcontroller:viewcontroller animated:yes]; }
otherwise this
(ibaction)button:(id)sender { viewcontroller *viewcontroller = [[uiviewcontroller alloc]initwithnibname:@"loginscreen" bundle:null]; [self presentviewcontroller:viewcontroller animated:yes completion:nil]; }
Comments
Post a Comment