Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to have a <code>UINavigationController</code> as the view controller that is linked to the tab bar and then you have to link the <code>UINavigationController</code> to your current controller with the table as the root view controller and then link a cell to another view controller with a push segue. So you will have a navigation controller for each tab. The navigation controller is what enables it to "push" otherwise nothing happens because it manages the stack of view controllers as they are pushed and popped and the animations required to do them. I had this issue when I started as well.</p> <p>Unless your cells are all static, you will probably need to transfer information from the current view controller to the new view controller such as which item was selected so you can tell the next view controller what to display. One way of doing this is having the next view controller be of a custom class with a property: <code>@property (strong, nonatomic) NSString* message;</code> and then in the view controller that has the push segue now can tell the next view controller right before it gets pushed.</p> <pre><code>-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if([segue.identifier isEqualToString:@"your-segue-name"]) // The identifier in the Storyboard for segue (click on the segue) { // Sender will be cell NSString* message = [NSString stringWithFormat:@"cell %d!", [[self.tableView indexPathForCell:sender] row]]; YourViewControllerClass* destination = [segue destinationViewController]; destination.message = message; } } </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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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