摘要: 1、代码结构清晰,易于维护、易于管理内存2、高内聚、松耦合,模块化设计,可重用3、易扩展4、易优化(内存使用调优、性能调优) 阅读全文
posted @ 2013-01-25 14:07 ygm900 阅读(175) 评论(0) 推荐(0)
摘要: 1、难道充足的内存可以影响应用程序的速度? 阅读全文
posted @ 2013-01-25 11:44 ygm900 阅读(162) 评论(0) 推荐(0)
摘要: [NSThreadsleepForTimeInterval:0.5]; 阅读全文
posted @ 2013-01-25 11:17 ygm900 阅读(366) 评论(0) 推荐(0)
摘要: -(void)clearThisController{ for (id obj in [self.view subviews]) { if([obj isKindOfClass:[UIView class]]){ UIView *view = (UIView *)obj; if (view.tag != 99999) { [view removeFromSuperview]; [view release]; } } }} 阅读全文
posted @ 2013-01-25 01:43 ygm900 阅读(215) 评论(0) 推荐(0)
摘要: 当CommonAlert.m中的方法执行的快时,alertView的显示和消失是正常的。如下所示:2013-01-24 23:31:59.978 点餐系统[5649:707] 进入OrderListViewController.m的-(IBAction)btnTaocanMenuClicked:(id)sender2013-01-24 23:31:59.982 点餐系统[5649:707] 进入CommonAlert.m的startAlertView2013-01-24 23:31:59.986 点餐系统[5649:5e0b] 进入CommonAlert.m的startAlertProcess 阅读全文
posted @ 2013-01-25 00:37 ygm900 阅读(693) 评论(0) 推荐(0)
摘要: 在非主线程中改变画面,是危险的。 阅读全文
posted @ 2013-01-25 00:08 ygm900 阅读(138) 评论(0) 推荐(0)