带有图片、标题的、比较丑的ActionSheet
查看次数:3615
下载次数:373
上传时间:2015-07-03
大小:212 B
XYActionSheet
第一次写的控件,因为缺乏审美 and 艺术细胞,所以写出来的控件比较丑,大家凑合着用吧。
用法
XYActionSheet *actionSheet = [[XYActionSheet alloc] initWithTitle:@"ShowActionSheetWithImage"
delegate:self
cancelButtonTitle:@"取消"
otherButtonTitles:@[@"about", @"help"]];
actionSheet.icon = @"Baymax";
[actionSheet show];
属性
@property (nonatomic, strong) UIColor *contentViewBackgroundColor;
@property (nonatomic, strong) UIColor *titleLabelColor;
@property (nonatomic, strong) UIColor *otherButtonBackgroundColor;
@property (nonatomic, strong) UIColor *cancelButtonBackgroundColor;
@property (nonatomic, strong) UIColor *buttonTextColor;
@property (nonatomic, strong) UIFont *titleLabelFont;
@property (nonatomic, assign) CGFloat buttonCornerRadius;
@property (nonatomic, assign) CGFloat buttonMarginToContentView;
/**
* 包括取消按钮
*/
@property (nonatomic, readonly) NSInteger numberOfButtons;
@property (nonatomic, weak) id delegate;
希望能给您带来帮助!
测试环境:Xcode 6.2,iOS 6.0以上
收藏