xpepermint
xpepermint

Reputation: 36273

iPhone - how to create a Textured Background

In the Interface Builder (xCode/Mac) I would like to set a Textured Background color. How can I add a texture (image) so I'll be able to use a new custom background?

I know I can set the background like this:

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"table_bg.png"]];
}

How can I do this with the Interface Builder?

Upvotes: 1

Views: 2969

Answers (1)

timothy5216
timothy5216

Reputation: 281

You can't use your own UIImage's as a background pattern in Interface Builder but you can use the ones built in

alt text alt text

Upvotes: 1

Related Questions