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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -