Search Results

Search found 1 results on 1 pages for 'docchang'.

Page 1/1 | 1 

  • How to deal with background image orientation in UIView

    - by docchang
    I'm using setting the background image using methodology below. When I rotate my device the background repeats, which make sense because it is not an image. How do I deal with orientation change if this is the way I'm setting my background image? - (void)viewDidLoad { [super viewDidLoad]; UIColor *background = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"background.png"]]; self.view.backgroundColor = background; [background release]; }

    Read the article

1