UIImage* myImage = [[UIImage imageNamed:@"bg"] stretchableImageWithLeftCapWidth:1 topCapHeight:1000];
UIColor *bgColormyImage = [UIColor colorWithPatternImage: myImage];
[self.view setBackgroundColor:bgColormyImage];
UIImage* myImage = [[UIImage imageNamed:@"bg"] stretchableImageWithLeftCapWidth:1 topCapHeight:1000];
UIColor *bgColormyImage = [UIColor colorWithPatternImage: myImage];
[self.view setBackgroundColor:bgColormyImage];