03 2013 档案
摘要:必要属性一个TableView来显示选择项一个bool属性来判断Tableview是否露出来一个NSInteger属性来指示被选项的索引一个viewController容器来作为滑动试图一个viewController容器作为上一个被选中的滑动视图一个方法用来指定滑动效果并改变bool属性参考例子 PanList
阅读全文
摘要:在父级视图中实现-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{ return (toInterfaceOrientation==UIInterfaceOrientationPortrait);}-(BOOL)shouldAutorotate{ returnNO;}-(NSUInteger)supportedInterfaceOrientations{ returnUIInterfaceOrientationMaskPortrait;}便可以锁定屏幕为...
阅读全文
摘要:不要在layoutSubView中 初始化cell内部的空间 因为layoutSubView方法有时会出乎意料的被系统自动调用 产生很多奇怪的bug
阅读全文
摘要:想给rootViewControll添加view 直接【self.window addsubview:】便可以 但是要在[self.window makeKeyAndVisible]后调用 否则新加入的view 不响应任何事件
阅读全文
浙公网安备 33010602011771号