Objective c app delegate.m文件中的按钮图像
我在app delegate.m文件中启动了一个按钮图像,它在纵向视图中运行良好。但当我将视图更改为横向视图时,它只显示纵向图像。在风景区怎么办?帮助我。(在didFinishLaunchingWithOptions中使用的编码)Objective c app delegate.m文件中的按钮图像,objective-c,ios7,Objective C,Ios7,我在app delegate.m文件中启动了一个按钮图像,它在纵向视图中运行良好。但当我将视图更改为横向视图时,它只显示纵向图像。在风景区怎么办?帮助我。(在didFinishLaunchingWithOptions中使用的编码) 这是为了启动屏幕?????为什么让AppDelegate显示UIView对象和屏幕上的ViewController?这就像启动屏幕一样。。当点击屏幕,然后只有它将移动到主屏幕..看台-当我运行应用程序时,上面的屏幕应该首先出现。然后我触摸屏幕,它将进入主屏幕。
这是为了启动屏幕?????为什么让AppDelegate显示UIView对象和屏幕上的ViewController?这就像启动屏幕一样。。当点击屏幕,然后只有它将移动到主屏幕..看台-当我运行应用程序时,上面的屏幕应该首先出现。然后我触摸屏幕,它将进入主屏幕。
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0f)
{
launch = [UIButton buttonWithType:UIButtonTypeCustom];
launch.frame = CGRectMake(0, 0, self.window.frame.size.width,self.window.frame.size.height);
[launch setImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Splash"ofType:@"png"]] forState:UIControlStateNormal];
[launch addTarget:self action:@selector(targetMethod:) forControlEvents:UIControlEventTouchUpInside];
}}
landscape image is = "splashl.jpg"