All Projects → itouch2 → Picslikecontrol

itouch2 / Picslikecontrol

Licence: mit
A kind of customized button (users can customize the function of the button with a simple fling)

PicsLikeControl

A kind of customized button (users can customize the function of the button with a simple fling)

How to:

  1. 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];

  2. 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];

  3. Implement the method in PickLikeControlDelegate, it will handle the event that a button is tapped.

A Quick Peek

screenshots

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].