iphone - How can i Load my main ViewController's view, from another viewcontroller's icon action? -


i have root viewcontroller class, , call onlineviewcontroller's view this:

- (void)eventtap:(uigesturerecognizer *)gesturerecognizer {  self.evc = [[eventviewcontroller alloc]init];     [self presentviewcontroller:self.evc animated:yes completion:nil]; 

}

and tried call viewcontroller's view onlineviewcontroller, it's failed :

-(void ) iconaction{ self.vc = [[viewcontroller alloc]init];  [self presentviewcontroller:self.vc animated:yes completion:nil]; 

} how can call viewcontroller's view?

try , dismiss viewcontroller rather presenting new one

[self dismissviewcontrolleranimated:yes completion:nil]; 

also make sure iconaction: method called.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -