Re: Getting Segue from TableView
Re: Getting Segue from TableView
- Subject: Re: Getting Segue from TableView
- From: Mike Abdullah <email@hidden>
- Date: Thu, 07 Aug 2014 22:03:07 +0100
On 7 Aug 2014, at 15:06, Gerriet M. Denkmann <email@hidden> wrote:
> iOS app, Master - Detail.
> Master has TableView, when one tabs a table row, a segue to the Detail View is performed.
>
> The problem:
> Sometimes when the app starts, there is only one item in the TableView. In this case I want to segue to the DetailView programatically, because there is nothing to choose for the user.
>
> But: how to get the relevant segue ? Xcode's Connection Inspector has for the TableView prototype cell under "Triggered Segues": selection = push Detail.
> But I cannot find any property like "theSegueWhichWillBePerformedWhenPressed" or something maybe slightly less verbose.
> And there is a segue "showDetail".
>
> Either the cell or the table view must have this info stored somewhere.
> Only I can't find it.
-[UIViewController performSegueWithIdentifier:sender:] is how you programatically trigger a segue.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden