摘要: 一、loadView永远不要主动调用这个函数。view controller会在view的property被请求并且当前view值为nil时调用这个函数。如果你手动创建view,你应该重载这个函数,且不要在重载的时候调用[super loadview]。如果你用IB创建view并初始化view co... 阅读全文
posted @ 2015-05-31 21:13 mobilefeng 阅读(175) 评论(0) 推荐(0)
摘要: 要让 UITableViewController 实现 UITableViewDataSource 协议,需要实现以下方法:1. - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;指定section数所谓的sectio... 阅读全文
posted @ 2015-05-31 09:37 mobilefeng 阅读(132) 评论(0) 推荐(0)