Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c app delegate.m文件中的按钮图像_Objective C_Ios7 - Fatal编程技术网

Objective c app delegate.m文件中的按钮图像

Objective c app delegate.m文件中的按钮图像,objective-c,ios7,Objective C,Ios7,我在app delegate.m文件中启动了一个按钮图像,它在纵向视图中运行良好。但当我将视图更改为横向视图时,它只显示纵向图像。在风景区怎么办?帮助我。(在didFinishLaunchingWithOptions中使用的编码) 这是为了启动屏幕?????为什么让AppDelegate显示UIView对象和屏幕上的ViewController?这就像启动屏幕一样。。当点击屏幕,然后只有它将移动到主屏幕..看台-当我运行应用程序时,上面的屏幕应该首先出现。然后我触摸屏幕,它将进入主屏幕。

我在app delegate.m文件中启动了一个按钮图像,它在纵向视图中运行良好。但当我将视图更改为横向视图时,它只显示纵向图像。在风景区怎么办?帮助我。(在didFinishLaunchingWithOptions中使用的编码)


这是为了启动屏幕?????为什么让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"