redribben

menuoptionselected

Nov 12th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  2. NSString *identifier = [NSString stringWithFormat:@"%@", [self.menu objectAtIndex:indexPath.row]];
  3.  
  4. // self.slidingViewController.topViewController.view.layer.transform = CATransform3DMakeScale(1, 1, 1);
  5. // [self.slidingViewController resetTopViewAnimated:YES];
  6.  
  7.  
  8. UIViewController *newTopViewController = [self.storyboard instantiateViewControllerWithIdentifier:identifier];
  9.  
  10. [self.slidingViewController anchorTopViewToRightAnimated:YES // anchorTopViewOffScreen:ECRight animation:nil
  11. onComplete:^{
  12. CGRect frame = self.slidingViewController.topViewController.view.frame;
  13. self.slidingViewController.topViewController = newTopViewController;
  14. self.slidingViewController.topViewController.view.frame = frame;
  15. //[self.slidingViewController resetTopView];
  16. [self.slidingViewController resetTopViewAnimated:YES];
  17.  
  18. }];
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment