Тег ‘UIColor’:

UIColor from hex

I added 2 new methods to category UIColor. 123456789101112131415161718+ (UIColor* ) colorWithHex:(int)color {     float red = (color & 0xff000000) >> 24;     float green = (color & 0x00ff0000) >> 16;     float blue = (color & 0x0000ff00) >> 8;     float alpha = (color & 0x000000ff);     return [UIColor [...]

Теги: , ,

Комментарии отсутствуют

Color Picker for iOS

Example: 1234567891011121314151617181920212223242526272829303132333435363738394041- (void)viewDidLoad {     [super viewDidLoad];         // Do any additional setup after loading the view, typically from a nib.         if (self.cPicker == nil) {         [self.view setBackgroundColor:[UIColor grayColor]];         self.cPicker = [[VBColorPicker alloc] initWithFrame:CGRectMake(0, 0, 202, 202)];     [...]

Теги: , , , , , , , ,

Комментарии отсутствуют