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 }
时常一个人发呆,看到宁静的天空。
原文地址:https://www.cnblogs.com/pinweyshg/p/7442427.html