Skip to content

xjh093/iOSSystemColor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

iOSSystemColor

iOS SystemColor

color vs systemColor:

Light vc Dark:

image

    NSArray *colors = @[
        [UIColor redColor],
        [UIColor systemRedColor],
        [UIColor greenColor],
        [UIColor systemGreenColor],
        [UIColor blueColor],
        [UIColor systemBlueColor],
        [UIColor orangeColor],
        [UIColor systemOrangeColor],
        [UIColor yellowColor],
        [UIColor systemYellowColor],
        [UIColor systemPinkColor],
        [UIColor systemTealColor],
        [UIColor systemGrayColor],
        [UIColor systemGray2Color],
        [UIColor systemGray3Color],
        [UIColor systemGray4Color],
        [UIColor systemGray5Color],
        [UIColor systemGray6Color],
    ];
    
    for (NSInteger i = 0; i < colors.count; i++) {
        CGFloat x = 90 * (i % 2);
        CGFloat y = 70 * (i / 2);
        UIView *view = [[UIView alloc] init];
        view.frame = CGRectMake(10 + x, 100 + y, 80, 60);
        view.backgroundColor = colors[i];
        [self.view addSubview:view];
    }

About

iOS SystemColor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published