Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Color did change block declaration
- NKOColorPickerDidChangeColorBlock colorDidChangeBlock = ^(UIColor *color){
- //Your code handling a color change in the picker view.
- };
- NKOColorPickerView *colorPickerView = [[NKOColorPickerView alloc] initWithFrame:CGRectMake(0, 0, 300, 340) color:[UIColor blueColor] andDidChangeColorBlock:colorDidChangeBlock];
- //Add color picker to your view
- [self.view addSubview:colorPickerView];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement