CocoaPod 版本不是最新代码,actionsheet 选项显示不完全
__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];
Xcode、iOS 、pod version
check your code , like alertView.heightMax = 200; or [[LGAlertView appearance] setHeightMax:200];
https://github.com/Friend-LGA/LGAlertView/blob/5216c381d0a0c099d80d51c12ed50ff8d70416d0/LGAlertView/LGAlertView.m#L2885. 这里新增了一条语句 [self.tableView layoutIfNeeded];
anyone fixed issue ?