tags:

views:

12

answers:

0

Hello,

Currently I have a image set to the background of main view using the code below:

self.backgroundColor= [[UIColor alloc] initWithPatternImage:[[UIImage alloc] initWithContentsOfFile: SomeCoolFilePath]];

Problem is, the image is not resized correctly and I want it the mode of it to be AspectFill.

How would I achieve this?

Thanks in advance,

-David