【问题标题】:How to change from a UITableViewController to a ViewController within a button in Xcode如何在 Xcode 中的按钮内从 UITableViewController 更改为 ViewController
【发布时间】:2014-07-05 06:19:06
【问题描述】:

您好,我是 Objective-C 和 Xcode 的初学者/中级用户,但我想知道,有人可以提供将视图从 UITableViewController 更改为 ViewContoller 的源代码吗?我已经尝试了一切,但没有任何效果。我尝试使用 performeguewithidentifier 调用 Segue,但它不起作用我猜是因为它是 UITableViewController 而不是 ViewController。因此,如果有人可以帮助我,我将不胜感激,谢谢。

【问题讨论】:

  • UITableViewController UIViewContoller

标签: ios iphone objective-c xcode xcode5


【解决方案1】:

试试这个:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    //push the view controller to a navigationController
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-09-03
    • 1970-01-01
    • 2011-07-12
    • 2011-07-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多