Can I set an image for my own background image? I do not want to use the UIImageView control. It seems that this cannot be done using IB. Should I do this programmatically?
Thank.
What a waste of resources, use:
[[self view] setBackgroundColor: [UIColor colorWithPatternImage: [UIImage imageNamed:@"background.png"]]];
self.view.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"plain_bg.png"]];
UIImageView? .
, backgroundColor - -. UIImageView .
UIColor *background = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"pic.png"]]; self.view.backgroundColor = background;
Source: https://habr.com/ru/post/1726631/More articles:Is the power of Fixnum! Is the method potentially dangerous? - ruby | fooobar.comSharePoint DEsigner 2010 - how to get workflow status? - sharepointHow to run multiple shell scripts in a directory? - unixГлубоко вложенное наследование - плохая или хорошая практика? - javaI-Phone VM for Android - javaImport third-party library source files into Eclipse CDT - eclipse-cdtODBC Connection Name Search - databaseContent Management Systems and S3 - amazon-s3UML: includes php modeling? How? - phpTrim text in UILabel with quotes? - objective-cAll Articles