在我的objective-c程序中,我使用標籤欄爲這些應用程序分離了不同的功能。在標籤欄的第一視圖顯示第二視圖之間相同的表瀏覽內容,我想,當用戶點擊第一視圖的細胞時,它會變成第二視圖,並執行:如何從一個視圖執行其他視圖的動作
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
,將參數「indexPath是。該用戶選擇的第一視圖indexPath
請幫助~~
並且不要忘記在H文件中添加@property。 – Farini
@property(nonatomic,retain)UIViewController(SecondViewController *)secondvc – Farini