Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Are you using Storyboard? Could you perform a Segue? In the storyboard setup the name and the link and style as Modal along with the Transition.</p> <p>In your DidSelectRowAtIndex put this</p> <pre><code>[self performSegueWithIdentifier:@"eventDetail" sender:@(indexPath.row)]; </code></pre> <p>Then declare this method</p> <pre><code>-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if([segue.identifier isEqualToString:@"eventDetail"]) { DetailsViewController *destViewController = segue.destinationViewController; destViewController.eventRow = sender; } // You can test for other Segue names here } </code></pre> <p>Then in the DetailsViewController.h put</p> <pre><code>// Allows sending View Controller to give this controller data @property (nonatomic, strong) int *eventRow; </code></pre> <p>And in the .m put</p> <pre><code>@synthesize eventRow; </code></pre> <p>Now in your DetailsViewController it should animate to it and the sliding will be disabled (unless you declare all the ECS bits as normal). You also have an Int eventRow which tells you which cell was clicked.</p> <p>You can create a back button and do this;</p> <pre><code>[self dismissViewControllerAnimated:YES completion:nil]; </code></pre> <p>EDIT</p> <p>OR you could try this but I am not sure if it will animate plus you need to figure out how to pass stuff, maybe a combination of the two...</p> <pre><code>UIViewController *newTopViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"eventDetail"]; CGRect frame = self.slidingViewController.topViewController.view.frame; self.slidingViewController.topViewController = newTopViewController; self.slidingViewController.topViewController.view.frame = frame; [self.slidingViewController resetTopView]; </code></pre>
    singulars
    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