0

I'm working on an app and I'd really like to have a fixed background image for the duration of the application. Right now I rotate through different viewControllers which all have the same image, but I want the background to remain fixed while the old buttons slide off and the new buttons slide on. Any ideas? Much like the home screen of iPhone/iPad, I want a "wallpaper" that is fixed while the screens change over the image.

4

1 回答 1

2

像这样从应用程序委托将默认图像设置为根窗口的背景图像。

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Background.png"]];

        // do stuff

    return YES;
}
于 2013-09-20T04:45:53.847 回答