添加:
UIWindow *window = [[UIApplication sharedApplication].windows lastObject];
// 添加到窗口
[window addSubview:_testView];
删除:
[_testView removeFromSuperview];
添加:
UIWindow *window = [[UIApplication sharedApplication].windows lastObject];
// 添加到窗口
[window addSubview:_testView];
删除:
[_testView removeFromSuperview];