代碼以下:windows
展現spa
UIWindow *window = [[UIApplication sharedApplication].windows lastObject];
[window addSubview:本身的view];
在本身的view初始化的時候給它一個tag值,用於下面的移除操做code
移除blog
[[[UIApplication sharedApplication].keyWindow viewWithTag:6521] removeFromSuperview];
僅作記錄!rem