One viewController can display multiple viewController.

文章目录

  • 前言
  • I 、SegmentedViewControllers
  • II、 去掉透明后导航栏下边的黑边

前言

  • self.navigationController.navigationBar.translucent = NO 影响起始坐标

iOS7之后由于navigationBar.translucent默认是YES,坐标默认在(0,0)点 ;当不透明的时候(设为NO),零点坐标在(0,64);

1、如果你想设成透明的,而且还要零点从(0,64)开始,那就添加:self.edgeForExtendedLayout = UIRectEdgeNone;
2、如果你想设成不透明的,而且还要坐标从(0,0)开始,添加 self.extendedLayoutIncludesOpaqueBars = YES;

I 、SegmentedViewControllers

  • KNSegmentedViewControllers

One viewController can display multiple viewController. Example show works like Tabbar but you can set it anywhere on the screen.

II、 去掉透明后导航栏下边的黑边

你可能感兴趣的:(iOS,进阶)