Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/110.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何在Xcode中的按钮内从UITableViewController更改为ViewController_Ios_Iphone_Objective C_Xcode_Xcode5 - Fatal编程技术网

Ios 如何在Xcode中的按钮内从UITableViewController更改为ViewController

Ios 如何在Xcode中的按钮内从UITableViewController更改为ViewController,ios,iphone,objective-c,xcode,xcode5,Ios,Iphone,Objective C,Xcode,Xcode5,您好,我是Objective-C和Xcode的初学者/中级用户,但我想知道,是否有人可以提供将视图从UITableViewController更改为ViewController的源代码?我什么都试过了,什么都没用。我尝试使用PerformsgueWithIdentifier调用Segue,但它不起作用,我想是因为它是UITableViewController而不是ViewController。如果有人能帮我,我会非常感激,谢谢。试试这个: - (void)tableView:(UITableVi

您好,我是Objective-C和Xcode的初学者/中级用户,但我想知道,是否有人可以提供将视图从UITableViewController更改为ViewController的源代码?我什么都试过了,什么都没用。我尝试使用PerformsgueWithIdentifier调用Segue,但它不起作用,我想是因为它是UITableViewController而不是ViewController。如果有人能帮我,我会非常感激,谢谢。

试试这个:

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