#import <QuartzCore/QuartzCore.h>
CAGradientLayer *gradient = [CAGradientLayer layer];
gradient.frame = self.view.frame;
gradient.colors = [NSArray arrayWithObjects:(id)[[UIColor colorWithRed:(112/255.0) green:(119/255.0) blue:(126/255.0) alpha:1] CGColor], (id)[[UIColor colorWithRed:(73/255.0) green:(81/255.0) blue:(90/255.0) alpha:1] CGColor], nil];
[self.view.layer insertSublayer:gradient atIndex:0];
More than 3 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00