iOS按钮控件:PicsLikeControl

jopen 10年前

PicsLikeControl是一种可自定义的投掷按钮(用户可以定义按钮的功能),可定义按钮的图标和大小。

iOS按钮控件:PicsLikeControl
使用方法:

导入头文件:  #import "PicsLikeControl.h"    创建PicsLikeControl对象并初始化:  PicsLikeControl *picControl = [[PicsLikeControl alloc] initWithFrame:CGRectMake(20, 250, 44, 44) multiImages:images];
设置按钮图片:
UIImage *image0 = [UIImage imageNamed:@"main-camera-button"];  UIImage *image1 = [UIImage imageNamed:@"main-library-button"];  NSArray *images = @[image0, image1];
利用图片初始化按钮:
PicsLikeControl *picControl = [[PicsLikeControl alloc] initWithFrame:CGRectMake(20, self.view.frame.size.height - 70, 44, 44) multiImages:images];  picControl.delegate = self;  [self.view addSubview:picControl];
 

项目主页:http://www.open-open.com/lib/view/home/1413858654059