// 当一个控件被添加到父控件中就会调用
- (void)didMoveToSuperview {
[super didMoveToSuperview];

}

// 当一个控件即将被添加到父控件中会调用
- (void)willMoveToSuperview:(UIView *)newSuperview {
[super willMoveToSuperview:newSuperview];

}





作者:​​ CH520​

 ​