A kind of customized button (users can customize the function of the button with a simple fling)
How to:
-
Set up a series of images used in this control
UIImage *image0 = [UIImage imageNamed:@"main-camera-button"]; UIImage *image1 = [UIImage imageNamed:@"main-library-button"]; NSArray *images = @[image0, image1];
-
Initizlize this control with the images
PicsLikeControl *picControl = [[PicsLikeControl alloc] initWithFrame:CGRectMake(20, self.view.frame.size.height - 70, 44, 44) multiImages:images]; picControl.delegate = self; [self.view addSubview:picControl];
-
Implement the method in PickLikeControlDelegate, it will handle the event that a button is tapped.
A Quick Peek