4

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

enter image description here

drysdgsdg
  • 61
  • 2
  • 10

2 Answers2

6

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).

enter image description here

Dmitry Zhukov
  • 1,809
  • 2
  • 27
  • 35
2

UIColor class has the following class method

+ (UIColor *)scrollViewTexturedBackgroundColor

try to set background color.

myView.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
Mert
  • 6,025
  • 3
  • 21
  • 33