My background color is white! What for? Just launch the new View-based iPad app and set the background color to viewDidLoad.
- (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor groupTableViewBackgroundColor]; }
What's wrong. If I installed it in redColor, it will work. Why?
groupTableViewBackgroundColor on the iPad (or at least on the iPad with iOS 4.2) matches the clearColor , not the template used on the iPhone. You can create a βcolorβ using your own wallpaper using the UIColor colorWithPatternImage: method.
groupTableViewBackgroundColor
clearColor
colorWithPatternImage:
groupTableViewBackgroundColor does not work for iPad. This is an iPhone only. You can use instead
UIColor *clr = [UIColor colorWithRed:0.875 green:0.88 blue:0.91 alpha:1]; [[self view] setBackgroundColor:clr];
Source: https://habr.com/ru/post/1337765/More articles:Manipulating strings in C # to increase the number - stringPerl class attribute composition? - perlAny reason to send a .snk file with project sources? - .netMake sure the same configuration is used for the library and the executable - c ++Sharepoint 2010 Create a PDF document in a document library - pdfsplit UITableView derived from pList - iosHow to write a Mac OSX application from scratch? - macosIs it possible to get the actual type from the stack trace? - reflectionGrails: accessing fields with GORM - javaAre performance counters the best way to implement and average per second? - .netAll Articles