摘要: 看iOS SDK 方法返回的类型都是NSInteger,但是官方给出的示例代码一般for循环的计数器就都是int了。- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;for (int i=0; i<10; i++) {}到底int 和NSInteger有什么区别。其实也没有什么神奇的地方,只要跟踪到他们的定义就可以看到:#if __LP64__ || (TARGET_OS_EMBEDDED && !TARGET_OS_IPHONE) || TAR 阅读全文
posted @ 2014-03-22 21:46 bohan 阅读(759) 评论(0) 推荐(0) 编辑