当我加载我的应用程序按钮图像时,它不会在第一次查看时viewDidLoad
加载,而是在之后加载viewWillAppear
。
这是我的代码,
if (activityorientation == UIInterfaceOrientationPortrait || activityorientation == UIInterfaceOrientationPortraitUpsideDown)
{
CGRect frameloginscreenbutton1 = CGRectMake(0, 0, 768,1004);
[loginscreenbutton1 setFrame:frameloginscreenbutton1];
}
else if(activityorientation == UIInterfaceOrientationLandscapeLeft || activityorientation == UIInterfaceOrientationLandscapeRight)
{
CGRect frameloginscreenbutton1 = CGRectMake(0, 0, 1024,768);
[loginscreenbutton1 setFrame:frameloginscreenbutton1];
}
任何指针?