Note that there are some explanatory texts on larger screens.

plurals
  1. POECSlidingViewController How to go from one TopViewController to another TopViewController using animation in iOS
    primarykey
    data
    text
    <p>I am using ECSlidingViewController in my app for Facebook style swipe effect. I have 2 TopViewControllers, one left and one right side view controller and one initviewcontroller which is a slidingviewcontroller subclass.</p> <p><strong>1. InitViewController:ECSlidingViewController</strong></p> <p><strong>2.MainViewController (TopViewController)</strong></p> <p><strong>3.LeftMenuViewContrller (UIViewController)</strong></p> <p><strong>4.RightMenuViewController (UIViewController)</strong></p> <p><strong>5.DetailViewController (TopViewController)</strong></p> <p>I have tableview on my MainViewController which contains the calendar events. The problem is that I want to go to MainViewController to DetailViewController by clicking the event in <strong>tableView:didSelectRowAtIndexPath:</strong> methods to show the events details which is another topview controller with some animation( which I am unable to get so far). I am using following code which is getting me to the DetailViewController</p> <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { DetailsViewController *newTopViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"details"]; self.slidingViewController.topViewController = newTopViewController; [self.slidingViewController resetTopView]; } </code></pre> <p>this is my viewDidLoad method</p> <pre><code> - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.view.layer.shadowOpacity = 0.75f; self.view.layer.shadowRadius = 10.0f; self.view.layer.shadowColor = [UIColor blackColor].CGColor; if (![self.slidingViewController.underLeftViewController isKindOfClass:[LeftViewController class]]) { self.slidingViewController.underLeftViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Left"]; } if (![self.slidingViewController.underRightViewController isKindOfClass:[RightViewController class]]) { self.slidingViewController.underRightViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Right"]; } [self.view addGestureRecognizer:self.slidingViewController.panGesture]; } </code></pre> <p>I want to get the animation like the UINavigationController or Modal style</p> <pre><code>[self.navigationController pushViewController:newTopViewController animated:YES]; </code></pre> <p>or</p> <pre><code>[self presentViewController:newTopViewController animated:YES completion:nil]; </code></pre> <p>please help. thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload