iPhone Landscape FAQ and Solutions

后端 未结 6 1668
难免孤独
难免孤独 2020-11-27 11:19

There has been a lot of confusion and a set of corresponding set of questions here on SO how iPhone applications with proper handling for Landscape/Portrait mode autorotatio

6条回答
  •  感情败类
    2020-11-27 11:40

    This will work...

    UIWindow *window = [[UIApplication sharedApplication] keyWindow];
        UIView *view = [window.subviews objectAtIndex:0];
        [view removeFromSuperview];
        [window addSubview:view];
    

提交回复
热议问题