Default ios background

I want to use such a background for my application. This is an image from ios 6. Is this a way to programmatically attach it to a view. Do not want to include this image in the project and use the UIImage view, as it is already saved in ios

enter image description here

+4
source share
2 answers

Yes, you can do this by selecting the Background of your inspector "View in Attributes", select another , and then the third tab → iPhone / iPad SDK → ScrollViewTexturedBackground (for example, in the screenshot below).

enter image description here

+6
source

The UIColor class has the following class method

+ (UIColor *)scrollViewTexturedBackgroundColor 

try setting the background color.

 myView.backgroundColor = [UIColor scrollViewTexturedBackgroundColor]; 
+2
source

All Articles