-1
哈II,I有這樣的代碼在充分利用的cellForRowAtIndexPath空值在的UITableViewCell
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
_lblmainChapterlbl.text=[NSString stringWithFormat:@"%@ %@:%@",delegate.selectedBook,delegate.selectedChapter,localStringValueverseno];
}
其中我想顯示謊言Genesis1.1,但是當我輕觸第一含Genesis1.1所述小區i得到Genesis1 。(null),然後我點擊第二個包含Genesis1.2的單元格,我得到了第一個Genisis1.1的結果,但是在委託中沒有問題.Selectedbook和delegate.selectedchapter。問題在於localStringValueverseno中包含了詩句編號如上所述,我在第一次敲擊時得到了空值。我可以如何解決它。請幫助我。 在此先感謝。
什麼是initwib ???我沒有低估it.can因此我把localstringvalueverseno = @「0」在viewdidload ?? – stackiphone 2011-12-26 06:29:14
對不起,這是一個小錯字。我想說'initWithNibName:bundle'或'initWithCoder:'方法。是的,你可以在'viewDidLoad'中找到它,就你而言。 – Ilanchezhian 2011-12-26 06:39:25
我把它放在viewdiload nd中,我在第一個水龍頭中得到了Genesis1.0。 – stackiphone 2011-12-26 06:39:48