![]() |
IOS Storyboard presentViewController custom style |
I will try to harwork for swich viewcontroller with custom style with out navigationbar, to do this, can using this code.
LoadingView *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"UserListView"];
CATransition* transition = [CATransition animation];
transition.duration = 0.2;
transition.type = kCATransitionFade;
transition.subtype = kCATransitionFromBottom;
[self.view.window.layer addAnimation:transition forKey:kCATransition];
[self presentViewController:vc animated:NO completion:nil];
in this line
LoadingView *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"UserListView"];
LoadingView is class of viewcontroller @"UserListView" is Viewcontroller ID
Done.
Comments
Post a Comment