[英]How to change from a UITableViewController to a ViewController within a button in Xcode
Hello I am a beginner/intermediate user at Objective-C and Xcode but I am wondering, can someone please provide a source for changing views from a UITableViewController to a ViewContoller? 您好,我是Objective-C和Xcode的初学者/中级用户,但我想知道,是否有人可以提供将视图从UITableViewController更改为ViewContoller的资源? I've tried about everything and nothing is working. 我已经尝试了一切,但没有任何效果。 I've tried calling a Segue using performseguewithidentifier but it's not working I guess cause it's a UITableViewController and not a ViewController. 我试过使用performeguewithidentifier调用Segue,但是它不起作用,我猜是因为它是UITableViewController而不是ViewController。 So if someone could help me I'd really appreciate that, thanks. 因此,如果有人可以帮助我,我将非常感谢。
Try this out : 试试看:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
//push the view controller to a navigationController
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.