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
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).
The UIColor class has the following class method
+ (UIColor *)scrollViewTexturedBackgroundColor
try setting the background color.
myView.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];