label.text = [launchOptions description];
在帮助文档搜App Icon,会有关于图标的信息。APP Icons on ipad and iphone
如果删掉了项目中的storyboard,在general的main interface中删掉main,它仍然会出现
。那么就到info中把main那一项删掉就好了
在UITableViewController中,self.view = self.tableView,但是在UICollectionViewController中则不一样。而且self.view默认y值为20,而self.collectionView的默认y值为0
UICollectionViewController中cell标识现在定义在外面static了
用collectionViewController做rootViewController时,用的是init方法,没有说明采用哪种布局,所以会崩。所以在它的Init方法中指明布局。
cell标识定义成static全局变量。
导航栏底面有根线,可以用UIView,也可以用美工做好的图片背景。
自定义导航控制器
UINavigarionBar *bar = [UInavigarionBar appearance]设置背景图片
bar setBackgroundImage:__forBarMetrics:__
如果用的是UITableViewController,那么self.view = self.tableView,
但collectionViewController不是,self.view = self.collectionView.superView
如果右边item有多个,可用navigationBar.rightBarButtonItems.而且item有normal和hightlight两种图片,所以可以为item重写分类,在customView里定义
两个button
button.currentBackgroundImage
button.currentImage
button.size = button.currentImage.size
去掉图片的渲染效果可以选中图片,在render中设置
定义左边的的UIView时,为线增加约束
给一个定义的UIView中的button添加action,有两种方法,一种用代理,一种可以给UIView加action,然后在UIView的addTarget方法中将内部的button添加上该action
数据源和代理不一定是控制器。
如果一个控制器中有两个tableView,那它就是这两个tableView的代理和数据源,那么怎么办呢?
设置两种tableView属性,然后numberOfRows和cell中需要判断来分清到底是哪个数据源
cell.backgroudView
cell.selectedBackgroundView
不需要跟随父控件的尺寸而伸缩
self.autorizingMask = UIViewAutoRizingNone