[[UIApplication sharedApplication].delegate window] [UIApplication sharedApplication].keyWindow
有以上两种获取Window对象的方式