摘要:
1.iOS7以后添加的[UIViewController setEdgesForExtendedLayout:]它的默认值为UIRectEdgeAll。当你的容器是navigation controller时,默认的布局将从navigation bar的顶部开始。这就是为什么所有的UI元素都往上漂移... 阅读全文
摘要:
场景:Person类@interface Person : NSObject@property (nonatomic, copy) NSString *name;@property (nonatomic, copy) NSString *surname;@property (nonatomic, s... 阅读全文
摘要:
- (void)changePage:(UIPageControl *)pageControl{ [_scrollView setContentOffset:CGPointMake(pageControl.currentPage*ScreenWidth, 0) animated:YES];}-... 阅读全文