让您的应用程序进入横向模式并执行以下代码:UIWindow*toastWindow=[[UIWindowalloc]initWithFrame:[[UIScreenmainScreen]bounds]];toastWindow.hidden=NO;toastWindow.backgroundColor=[[UIColorcyanColor]colorWithAlphaComponent:0.5f];dispatch_after(dispatch_time(DISPATCH_TIME_NOW,(int64_t)(5*NSEC_PER_SEC)),dispatch_get_main_que