當我在iOS5上正確使用4.2的代碼時,出現了一個奇怪的問題。在iOS5中使用indexPath值問題
問題在於tableview indexpath。我試圖在導致iOS5崩潰的同一類的另一個方法中獲取indexpath值。
2個小時後,我設法通過做出一些我想分享的改變來解決問題。
.h文件中
NSIndexpath *indexPathValue;
@property(nonatomic, copy) NSIndexpath *indexPath;
.m文件方法的cellForRowAtIndexPath
self.indexPathValue = indexPath;
和所使用的indexPathValue實例任何需要的地方。希望這個幫助。
這不是問題。 – jrturton