LGAlertView icon indicating copy to clipboard operation
LGAlertView copied to clipboard

CocoaPod 版本不是最新代码,actionsheet 选项显示不完全

Open yaonuo opened this issue 6 years ago • 4 comments

WechatIMG453 __weak __typeof(self)weakSelf = self; LGAlertView *alertView = [[LGAlertView alloc] initWithTitle:nil message:@"请选择照片来源" style:LGAlertViewStyleActionSheet buttonTitles:@[@"相册",@"拍照"] cancelButtonTitle:@"取消" destructiveButtonTitle:nil]; alertView.cancelButtonOffsetY = 10; alertView.actionHandler = ^(LGAlertView * _Nonnull alertView, NSUInteger index, NSString * _Nullable title) { if ([title isEqualToString:@"相册"]) { [weakSelf p_choosePhoto:YNPhotoImagePickerTypeAvatarLibrary]; } else if ([title isEqualToString:@"拍照"]) { [weakSelf p_choosePhoto:YNPhotoImagePickerTypeAvatarCamera]; } }; [alertView showAnimated:YES completionHandler:nil];

yaonuo avatar Jun 04 '19 08:06 yaonuo

Xcode、iOS 、pod version

Mr-yuwei avatar Sep 20 '19 09:09 Mr-yuwei

check your code , like alertView.heightMax = 200; or [[LGAlertView appearance] setHeightMax:200];

Mr-yuwei avatar Sep 20 '19 09:09 Mr-yuwei

https://github.com/Friend-LGA/LGAlertView/blob/5216c381d0a0c099d80d51c12ed50ff8d70416d0/LGAlertView/LGAlertView.m#L2885. 这里新增了一条语句 [self.tableView layoutIfNeeded];

TonyShng avatar Apr 23 '20 07:04 TonyShng

anyone fixed issue ?

eldarkk avatar Mar 03 '21 17:03 eldarkk