A good starting point is 24sp for headlines and titles, 16sp for
subheadings, 14sp for body text, and 12sp for captions and fine print.
you can use a line spacing of 1.5 and add 2sp to each line[......]
A good starting point is 24sp for headlines and titles, 16sp for
subheadings, 14sp for body text, and 12sp for captions and fine print.
you can use a line spacing of 1.5 and add 2sp to each line[......]
The Material Design guidelines recommend picking a color from the
500 level as your primary, a color from the 700 or 800 level as your darker
primary, and a separate accent color.[......]
传统做法是在viewcontroller上设置navigationController的interactivePopGesturerecovnezer,但是bug很多,推荐如下,在nav controller上的做法:
class C4MVTNavigationController: UINavigationController {
// MARK: - Property
override var supportedInterfaceOrientations: UIIn[......]
传送门:http://stackoverflow.com/questions/6325457/getting-the-frame-of-a-particular-tab-bar-item
我稍微改了一下:
- (CGRect)frameForTabInTabBarWithIndex:(NSUInteger)index
{
NSMutableArray *tabBarItems = [NSMutableArray arrayWithCapacity:[self.tabBar.i[......]
TNV架构下,部分旋转这个功能,实现起来比较蛋疼,给一个目前的方法。
1、自定义TabBar:
extension C4MVTTabBarController: UITabBarControllerDelegate {
func tabBarControllerSupportedInterfaceOrientations(_ tabBarController: UITabBarController) -> UIInterfaceOrientationMask {[......]