Fixed background image, that doesn't move when new views are loaded
I have an iPhone app with a navigation controller. Views slide in from the right. I want a background picture that is fixed, so that it doesn't开发者_如何学编程 slide with the views pushed on the nav controller. Is that possible? Thanks!
You should be able to, for example, add a UIImageView with your background image as a subview of your app's UIWindow, underneath the UINavigationController's view. Then set the background color of each UIViewController to [UIColor clearColor], and the static background image should show through.
精彩评论