Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. //Color did change block declaration
  2. NKOColorPickerDidChangeColorBlock colorDidChangeBlock = ^(UIColor *color){
  3. //Your code handling a color change in the picker view.
  4. };
  5.  
  6. NKOColorPickerView *colorPickerView = [[NKOColorPickerView alloc] initWithFrame:CGRectMake(0, 0, 300, 340) color:[UIColor blueColor] andDidChangeColorBlock:colorDidChangeBlock];
  7.  
  8. //Add color picker to your view
  9. [self.view addSubview:colorPickerView];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement