2010-07-01版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
http://www.31home.com/logs/67771818.html
发现一个问题,iphone开发基础教程这本书上,
162页,第8章,表视图简介上,
提到使用nib的objectAtIndex调用中使用索引值1而不是0,因为对象0是文件所有者。
但是我使用1时,报出异常:
2010-07-01 23:55:00.569 Simple Table[2711:40b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)'
2010-07-01 23:55:00.570 Simple Table[2711:40b] Stack: (
改成objectAtIndex:0即可
难道是写这本书的时候,是这样的规则,现在改成了1?
不解~~~
另外,这一页有多处错误,
比如说到heightForRowAtIndexPath时,
return竟然后面没跟值。。。
=_=||
收藏到:Del.icio.us








评论