Conditional segue performed on tap on UITableViewCell

前端 未结 4 2092
悲&欢浪女
悲&欢浪女 2020-12-13 23:58

I\'m working on some project for iOS 5 using Xcode 4.2. I have one UITableViewController and want to perform a segue when user tap on table cell, but destination view contro

4条回答
  •  -上瘾入骨i
    2020-12-14 00:22

    While looking Storyboard, control-drag from your source View Controller to your Destination view controller. This will create a segue that you can trigger programmatically right from your source View Controller. Ensure that you give you Segue a name. This name is what you will pass into the source View Controller's performSegue:withIdentifier: method.

提交回复
热议问题