Saturday, July 16, 2011

Colour Picker Test

Still don't know much about UIAlertView and other system default dialog boxes. Was testing this Colour Picker code from http://www.skylarcantu.com/blog/2009/08/14/custom-uialertview-color-chooser/

As screen dump above, quite nice but still don't fully understand some of the codes yet unfortunately...

For example, inside "presetSlidersWithColor" and "presetSlidersWithRandomColor", how come only calls
[self performSelector:@selector(redSliderValueChanged:) withObject:redSlider afterDelay:0.0];


Then, what about "greenSlider" and "blueSlider", don't they also have to be called?

Also this part about "setFrame" too...

- (void)setFrame:(CGRect)rect

Still got a lot more stuffs to learn...Now where was I? Got lost again... back to the schedule...

0 comments:

Post a Comment