→ reon:你的TableView相關的delegate是寫在ViewController吧?? 04/21 17:47
→ reon:是的話 你code裡面一定會去建立customcell 那時就可以傳進去 04/21 17:48
→ reon:在customcell init時順便初始化圖片路徑參數 04/21 17:50
→ reon:或是custom cell建立一個settingImagePath的Method 04/21 17:53
→ reon:在cell 被建起來後 去setting 圖片路徑 再Table再重新reload 04/21 17:54
→ reon:你cell被建起來應該是在 tableView:cellForRowAtIndexPath: 04/21 17:57
→ lazyasa:謝謝r大,的確可以解決把變數傳過去了 04/23 12:47
→ lazyasa:但我又有新問題了,我想在imgButtonPressed寫開一個新頁面 04/23 12:53
→ lazyasa:來讀大圖 04/23 12:54
→ lazyasa:用 photo *controller = [[photo alloc]init]; 04/23 12:54
→ lazyasa:[self presentModalViewController:controller animated:Y 04/23 12:55
→ lazyasa:不知道是不是我觀念有錯 04/23 12:55
→ lazyasa:這樣會直接crash 04/23 12:56
→ lazyasa:阿,我解決了,的確是我觀念不正確.. :p 04/23 16:53