2014年11月28日

iOS_应用程序的生命周期

摘要: 每一个iPhone程序都包含唯一一个UIApplication对象,它管理整个程序的生命周期,从加载第一个显示界面开始,并且监听系统事件、程序事件调度整个程序的执行。int main(int argc, char *argv[]) {NSAutoreleasePool * pool = [[NSAu... 阅读全文

posted @ 2014-11-28 13:26 古成风云 阅读(337) 评论(0) 推荐(0)

UITableViewCell的重用机制

摘要: 创建UITableViewController子类的实例后,IDE生成的代码中有如下段落:- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ... 阅读全文

posted @ 2014-11-28 11:28 古成风云 阅读(245) 评论(0) 推荐(0)

导航