Re: TableView Segue
Re: TableView Segue
- Subject: Re: TableView Segue
- From: "Peters, Brandon" <email@hidden>
- Date: Fri, 09 Oct 2015 12:25:41 +0000
- Thread-topic: TableView Segue
Gerriet,
In IB, I have a separate view controller for my detail view. I then created a segue from the my table view to the detail view controller and I assigned it the ID “showDetails” and changed the segue type to “Show Details (replace)". In code, I trigger my segue here:
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
_indexPath = indexPath
// transition to detail view
performSegueWithIdentifier("showDetails", sender: self)
}
I hope this somewhat helps...
On Oct 8, 2015, at 11:21 PM, Gerriet M. Denkmann <email@hidden<mailto:email@hidden>> wrote:
I just created a new project with Xcode 7.0: iOS Master-Detail App.
The TableView in one of the Master Scenes has a Cell, which in Utilities → Connections inspector displays (under Triggered Segues):
selection → Navigation Controller show detail.
The same Scene has a UIStoryboardSegue called “showDetail”.
How can I set this from inside my program?
Can’t find anything looking like this in: UINavigationController, UIViewController, UITableView or UITableViewCell.
I am looking for a property like: UIStoryboardSegue *segueToUseWhenTableRowIsTapped
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden<mailto: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<http://lists.apple.com>
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
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