Releases: iTofu/LCActionSheet
Releases · iTofu/LCActionSheet
V 2.5.0 (⚠️ Important)
-
添加
cancenButtonIndex
属性。在cancelTitle.length > 0
的情况下始终返回0
,否则返回-1
:@interface LCActionSheet : UIView @property (nonatomic, assign, readonly) NSInteger cancelButtonIndex;
-
修改 Block 属性命名:
@property (nonatomic, copy) LCActionSheetClickedBlock clickedBlock; @property (nonatomic, copy) LCActionSheetWillPresentBlock willPresentBlock; @property (nonatomic, copy) LCActionSheetDidPresentBlock didPresentBlock; @property (nonatomic, copy) LCActionSheetWillDismissBlock willDismissBlock; @property (nonatomic, copy) LCActionSheetDidDismissBlock didDismissBlock; -> @property (nonatomic, copy) LCActionSheetClickedHandle clickedHandle; @property (nonatomic, copy) LCActionSheetWillPresentHandle willPresentHandle; @property (nonatomic, copy) LCActionSheetDidPresentHandle didPresentHandle; @property (nonatomic, copy) LCActionSheetWillDismissHandle willDismissHandle; @property (nonatomic, copy) LCActionSheetDidDismissHandle didDismissHandle;
V 2.3.3
V 2.3.2
V 2.3.1
V 2.3.0
-
重新实现 V 1.x 的方法,允许使用数组而不必须是多参数来设置按钮标题:
#pragma mark Delegate + (instancetype)sheetWithTitle:(NSString *)title delegate:(id<LCActionSheetDelegate>)delegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitleArray:(NSArray *)otherButtonTitleArray; - (instancetype)initWithTitle:(NSString *)title delegate:(id<LCActionSheetDelegate>)delegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitleArray:(NSArray *)otherButtonTitleArray; #pragma mark Block + (instancetype)sheetWithTitle:(NSString *)title cancelButtonTitle:(NSString *)cancelButtonTitle clicked:(LCActionSheetClickedBlock)clickedBlock otherButtonTitleArray:(NSArray *)otherButtonTitleArray; - (instancetype)initWithTitle:(NSString *)title cancelButtonTitle:(NSString *)cancelButtonTitle clicked:(LCActionSheetClickedBlock)clickedBlock otherButtonTitleArray:(NSArray *)otherButtonTitleArray;
-
优化一些 UI 效果,主要是高亮状态的效果。
V 2.2.0
V 2.1.1
V 2.1.0
V 2.0.0 (⚠️ Important)
☀️ 一款简约而不失强大的 ActionSheet,微信和微博都采取了极其类似的样式。
- iOS 7.0 +
- 格调高雅,风格百搭,怎么看怎么舒服。
- 高度自定义,可能需要自定义的基本都考虑到了。详见 LCActionSheet.h Properties 部分。
- 有代理,有 Block,可类方法,可实例方法,想怎样,就怎样。
- 代理、Block 非常完善,可能需要用到的基本都考虑到了,详见 LCActionSheet.h Delegate & Block 部分。
- 重要注释完整,代码风格良好,满满的善意,便于阅读源码,照顾强迫症,拓展更多功能请前往 PR。三个诸葛亮,顶个好工匠。
- 集百家之长,使用 Masonry 进行布局,感谢 Masonry。
- 支持横屏,支持竖屏,支持一会横屏一会竖屏,理论上支持无数个按钮,统统支持。
- 有骨气。我就不改状态栏颜色,我就是这么刚。
- 系统的 UIActionSheet,弱爆了。