I want to use such background for my app. This image is from ios 6. Is it the way to programatically attach it to the view. Don't want to include this image in project and use UIImage view since it has already stored in ios
Yes, you can do that by selecting Background of your View in Attributes inspector, select other and then third tab -> iPhone/iPad SDK -> ScrollViewTexturedBackground (like on the screenshot below).
UIColor class has the following class method
+ (UIColor *)scrollViewTexturedBackgroundColor
try to set background color.
myView.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With