ios - How to switch between view controllers with animation on button click in SWRevealViewControllers -
i want go first view controller second when click on button animation bottom top.
this sample code:
uistoryboard *storyboard = [uistoryboard storyboardwithname:@"main" bundle:nil]; alkahanaviewcontroller *rootviewcontroller = [storyboard instantiateviewcontrollerwithidentifier:@"alra3aya"]; uinavigationcontroller *navcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:rootviewcontroller]; [navcontroller setviewcontrollers: @[rootviewcontroller] animated: yes]; [self.revealviewcontroller setfrontviewcontroller:navcontroller]; [self.revealviewcontroller setfrontviewposition: frontviewpositionright animated: yes];
Comments
Post a Comment