Skip to content

V 3.1.0 (⚠️ API Updated)

Compare
Choose a tag to compare
@iTofu iTofu released this 26 Apr 04:55
· 145 commits to master since this release
  • 新增属性和方法:

    @interface LCActionSheet : UIView
    
    // Auto hide when the device rotated. Default is NO, won't auto hides.
    @property (nonatomic, assign) BOOL autoHideWhenDeviceRotated;
    
    // Append button at index with title.
    - (void)appendButtonWithTitle:(nullable NSString *)title atIndex:(NSUInteger)index;
    
    // Append buttons at indexes with titles.
    - (void)appendButtonsWithTitles:(NSArray<NSString *> *)titles atIndexes:(NSIndexSet *)indexes;
    
    @end

    #34 & #35 by cochat.

  • 修改属性类型:

    @interface LCActionSheet : UIView
    
    @property (nullable, nonatomic, strong) NSSet<NSNumber *> *destructiveButtonIndexSet;
    
    // ->
    
    @property (nullable, nonatomic, strong) NSIndexSet *destructiveButtonIndexSet;
    
    @end
  • 修改方法命名:

    @interface LCActionSheet : UIView
    
    - (void)appendButtonTitles:(nullable NSString *)buttonTitles, ... NS_REQUIRES_NIL_TERMINATION;
    
    // ->
    
    - (void)appendButtonsWithTitles:(nullable NSString *)titles, ... NS_REQUIRES_NIL_TERMINATION;
    
    @end