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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -