iphone - Pasted code couldn't work in a new project ? -
today, copied function codes in old project paste in new project, following related codes
- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { }
when debug project, it's never been called.then related codes , storyboard checked, nothing wrong, deleted pasted functions codes, , wrote codes word word; debug, run , it's been called.
the other pasted codes run , called. function had issue.
after all, studied issue, , cannot find why happened.
please, me solve "the paste codes cannot called".
thanks lot.
you have capitalization issue in method name. change tableview: tableview:
- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath
should this
- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath
Comments
Post a Comment