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
Post a Comment