contentScrollView 是 UIViewController 的系统方法名

1. contentScrollView 是 UIViewController 的系统方法名,不能在 UIViewController 使用,如使用会有意想不到的结果。

1 // @property (nonatomic, strong) UIScrollView *contentScrollView;

2. 测试方法:

1 - (void)viewDidLoad {
2     [super viewDidLoad];
3     // Do any additional setup after loading the view, typically from a nib.
4     
5     if ([self respondsToSelector:@selector(contentScrollView)]) {
6         NSLog(@"contentScrollView");
7     }
8 }

 

posted @ 2017-08-28 09:24  画梦  阅读(401)  评论(0)    收藏  举报