我試圖傳遞一個錶行的標籤時,當你點擊行的附件按鈕,因爲它匹配了plist中的數組的鍵,所以下一頁知道哪個數組從中加載設置。iOS通過UITableView中的行的標籤
這是我在performSegueWithIdentifier
使用目前的代碼:
NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow];
SettingsViewController *destViewController = segue.destinationViewController;
destViewController.nameViewer = [viewerKeys objectAtIndex:indexPath.row];
每次拿起第一排時間
可惜......我知道,因爲使用NSLog
它總是給相同的輸出(名字第一行)。有任何想法嗎?
乾杯,
克里斯
感謝,我給它一個去 – 2013-02-14 13:40:21
這個工作,非常感謝你! – 2013-02-14 13:43:42
@ChrisByatt不客氣:)如果你願意,隨時接受答案。 – Alladinian 2013-02-14 13:44:51