1、diffrence between [[[[UIApplication sharedApplication] delegate] window] and [[UIApplication sharedA https://blog.csdn.net/lengshengren/article/details/47122665
2、https://blog.csdn.net/lengshengren/article/details/47122665
3、https://blog.csdn.net/z1587185188/article/details/77932447
4.在window上addsubview最好用[[[[UIApplication sharedApplication] delegate] window],不要用[UIApplication sharedApplication].keyWindow,因为如果同时出现alert或sheet或键盘时或其他系统的window时,界面会造成卡死