簡體   English   中英

如何在Xcode中的按鈕內從UITableViewController更改為ViewController

[英]How to change from a UITableViewController to a ViewController within a button in Xcode

您好,我是Objective-C和Xcode的初學者/中級用戶,但我想知道,是否有人可以提供將視圖從UITableViewController更改為ViewContoller的資源? 我已經嘗試了一切,但沒有任何效果。 我試過使用performeguewithidentifier調用Segue,但是它不起作用,我猜是因為它是UITableViewController而不是ViewController。 因此,如果有人可以幫助我,我將非常感謝。

試試看:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM