Skip to content

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

License

Notifications You must be signed in to change notification settings

itouch2/PicsLikeControl

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published