diff --git a/Framework/LGAlertViewFramework.xcodeproj/project.pbxproj b/Framework/LGAlertViewFramework.xcodeproj/project.pbxproj
index 1d0d60d..7caeaf0 100644
--- a/Framework/LGAlertViewFramework.xcodeproj/project.pbxproj
+++ b/Framework/LGAlertViewFramework.xcodeproj/project.pbxproj
@@ -203,6 +203,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
+ English,
en,
);
mainGroup = 4AF138E41BF383530037B073;
@@ -287,7 +288,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
@@ -330,7 +331,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
@@ -352,7 +353,7 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = LGAlertViewFramework/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MODULEMAP_FILE = LGAlertViewFramework/module.modulemap;
PRODUCT_BUNDLE_IDENTIFIER = "com.Friend-LGA.LGAlertViewFramework";
@@ -373,7 +374,7 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = LGAlertViewFramework/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MODULEMAP_FILE = LGAlertViewFramework/module.modulemap;
PRODUCT_BUNDLE_IDENTIFIER = "com.Friend-LGA.LGAlertViewFramework";
diff --git a/Framework/LGAlertViewFramework.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Framework/LGAlertViewFramework.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/Framework/LGAlertViewFramework.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/LGAlertView.podspec b/LGAlertView.podspec
index 76ae958..de423bf 100644
--- a/LGAlertView.podspec
+++ b/LGAlertView.podspec
@@ -1,8 +1,8 @@
Pod::Spec.new do |s|
s.name = 'LGAlertView'
- s.version = '2.4.0'
- s.platform = :ios, '8.0'
+ s.version = '2.4.1'
+ s.platform = :ios, '12.0'
s.license = 'MIT'
s.homepage = 'https://github.com/Friend-LGA/LGAlertView'
s.author = { 'Grigory Lutkov' => 'Friend.LGA@gmail.com' }
diff --git a/LGAlertView/LGAlertView.m b/LGAlertView/LGAlertView.m
index 24aae57..29ca941 100644
--- a/LGAlertView/LGAlertView.m
+++ b/LGAlertView/LGAlertView.m
@@ -776,14 +776,14 @@ + (nonnull instancetype)alertViewWithTextFieldsAndTitle:(nullable NSString *)tit
cancelButtonTitle:(nullable NSString *)cancelButtonTitle
destructiveButtonTitle:(nullable NSString *)destructiveButtonTitle
delegate:(nullable id)delegate {
- return [[self alloc] alertViewWithTextFieldsAndTitle:title
- message:message
- numberOfTextFields:numberOfTextFields
- textFieldsSetupHandler:textFieldsSetupHandler
- buttonTitles:buttonTitles
- cancelButtonTitle:cancelButtonTitle
- destructiveButtonTitle:destructiveButtonTitle
- delegate:delegate];
+ return [[self alloc] initWithTextFieldsAndTitle:title
+ message:message
+ numberOfTextFields:numberOfTextFields
+ textFieldsSetupHandler:textFieldsSetupHandler
+ buttonTitles:buttonTitles
+ cancelButtonTitle:cancelButtonTitle
+ destructiveButtonTitle:destructiveButtonTitle
+ delegate:delegate];
}
#pragma mark -
@@ -2880,6 +2880,7 @@ - (void)subviewsValidateWithSize:(CGSize)size {
self.tableView.delegate = self;
self.tableView.scrollEnabled = NO;
[self.tableView registerClass:[LGAlertViewCell class] forCellReuseIdentifier:@"cell"];
+ self.tableView.estimatedRowHeight = self.buttonsHeight;
self.tableView.frame = CGRectMake(0.0, 0.0, width, CGFLOAT_MAX);
[self.tableView reloadData];
[self.tableView layoutIfNeeded];