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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -