V 3.1.0 (⚠️ API Updated)
-
新增属性和方法:
@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
-
修改属性类型:
@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