两个关于图标制作的网站
经过观察多款主流新闻App决定添加四项底部的Item
首页 | 推荐 | 发现 | 我 |
---|
UIView的contentMode属性
typedef enum {//见名知意
UIViewContentModeScaleToFill,
UIViewContentModeScaleAspectFit, // contents scaled to fit with fixed aspect. remainder is transparent
UIViewContentModeScaleAspectFill, // contents scaled to fill with fixed aspect. some portion of content may be clipped.
UIViewContentModeRedraw, // redraw on bounds change (calls -setNeedsDisplay)
UIViewContentModeCenter, // contents remain same size. positioned adjusted.
UIViewContentModeTop,
UIViewContentModeBottom,
UIViewContentModeLeft,
UIViewContentModeRight,
UIViewContentModeTopLeft,
UIViewContentModeTopRight,
UIViewContentModeBottomLeft,
UIViewContentModeBottomRight,
} UIViewContentMode;
UINavigationController的层次结构
在BaseViewController中由此方法
- (UIStatusBarStyle)preferredStatusBarStyle {
//取到 栈中最顶层的 topViewController
UIViewController *vc = self.topViewController;
//给他设置style
UIStatusBarStyle style = [vc preferredStatusBarStyle];
return style;
}
hidesBottomBarWhenPushed属性
介绍关于hidesBottomBarWhenPushed属性