//當(dāng)加入視圖完成后調(diào)用
- (void)didAddSubview:(UIView*)subview;
//在刪除視圖之前調(diào)用
- (void)willRemoveSubview:(UIView*)subview;
//當(dāng)移動視圖之前調(diào)用
- (void)willMoveToSuperview:(nullableUIView*)newSuperview;
//當(dāng)視圖移動完成后調(diào)用
- (void)didMoveToSuperview;
// 當(dāng)視圖即將加入父視圖時(shí) / 當(dāng)視圖即將從父視圖移除時(shí)調(diào)用
- (void)willMoveToWindow:(nullableUIWindow*)newWindow;
//當(dāng)視圖移動到新的WINDOW后調(diào)用
- (void)didMoveToWindow;
未完待續(xù),缺少代碼demo