Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

default ios background [duplicate]

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

like image 233
drysdgsdg Avatar asked Feb 17 '23 00:02

drysdgsdg


2 Answers

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

like image 85
Dmitry Zhukov Avatar answered Feb 27 '23 09:02

Dmitry Zhukov


UIColor class has the following class method

+ (UIColor *)scrollViewTexturedBackgroundColor

try to set background color.

myView.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
like image 41
Mert Avatar answered Feb 27 '23 08:02

Mert