宽容他人,放过自己。

三种获取当前window的方法

Posted on By anchoriteFili

UIWindow *window = [[[UIApplication sharedApplication] delegate] window];
UIWindow *window = [[UIApplication sharedApplication].delegate window]
UIWindow * window = [[UIApplication sharedApplication].keyWindow ];