diff --git a/Demo/LGAlertViewDemo.xcodeproj/project.pbxproj b/Demo/LGAlertViewDemo.xcodeproj/project.pbxproj index d49999b..702d1dc 100644 --- a/Demo/LGAlertViewDemo.xcodeproj/project.pbxproj +++ b/Demo/LGAlertViewDemo.xcodeproj/project.pbxproj @@ -17,7 +17,13 @@ 4ACDE4C21BE10A4000CC8926 /* TableViewControllerActionSheet.m in Sources */ = {isa = PBXBuildFile; fileRef = 4ACDE4C01BE10A4000CC8926 /* TableViewControllerActionSheet.m */; }; 4ACDE4C51BE10F7100CC8926 /* TableViewControllerCustomAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = 4ACDE4C41BE10F7100CC8926 /* TableViewControllerCustomAlert.m */; }; 4AEEC7541BE5381300ED5D90 /* TableViewControllerCustomActionSheet.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AEEC7531BE5381300ED5D90 /* TableViewControllerCustomActionSheet.m */; }; - 92E830BBF9A0E9733AA1BC7E /* libPods-LGAlertViewDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 623B5C352E52555F577FBF72 /* libPods-LGAlertViewDemo.a */; }; + 4AF138DD1BF381200037B073 /* LGAlertView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF138CF1BF381200037B073 /* LGAlertView.m */; }; + 4AF138DE1BF381200037B073 /* LGAlertViewButtonProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF138D11BF381200037B073 /* LGAlertViewButtonProperties.m */; }; + 4AF138DF1BF381200037B073 /* LGAlertViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF138D31BF381200037B073 /* LGAlertViewCell.m */; }; + 4AF138E01BF381200037B073 /* LGAlertViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF138D51BF381200037B073 /* LGAlertViewController.m */; }; + 4AF138E11BF381200037B073 /* LGAlertViewTextField.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF138D81BF381200037B073 /* LGAlertViewTextField.m */; }; + 4AF138E21BF381200037B073 /* LGAlertViewWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF138DA1BF381200037B073 /* LGAlertViewWindow.m */; }; + 4AF138E31BF381200037B073 /* UIWindow+LGAlertView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF138DC1BF381200037B073 /* UIWindow+LGAlertView.m */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -40,9 +46,21 @@ 4ACDE4C41BE10F7100CC8926 /* TableViewControllerCustomAlert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TableViewControllerCustomAlert.m; sourceTree = ""; }; 4AEEC7521BE5381300ED5D90 /* TableViewControllerCustomActionSheet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TableViewControllerCustomActionSheet.h; sourceTree = ""; }; 4AEEC7531BE5381300ED5D90 /* TableViewControllerCustomActionSheet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TableViewControllerCustomActionSheet.m; sourceTree = ""; }; - 623B5C352E52555F577FBF72 /* libPods-LGAlertViewDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-LGAlertViewDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 637E642E08EC55B4AF82AB1E /* Pods-LGAlertViewDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LGAlertViewDemo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-LGAlertViewDemo/Pods-LGAlertViewDemo.debug.xcconfig"; sourceTree = ""; }; - 75F4867B7B8225C0410A3B3A /* Pods-LGAlertViewDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LGAlertViewDemo.release.xcconfig"; path = "Pods/Target Support Files/Pods-LGAlertViewDemo/Pods-LGAlertViewDemo.release.xcconfig"; sourceTree = ""; }; + 4AF138CE1BF381200037B073 /* LGAlertView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertView.h; sourceTree = ""; }; + 4AF138CF1BF381200037B073 /* LGAlertView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGAlertView.m; sourceTree = ""; }; + 4AF138D01BF381200037B073 /* LGAlertViewButtonProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertViewButtonProperties.h; sourceTree = ""; }; + 4AF138D11BF381200037B073 /* LGAlertViewButtonProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGAlertViewButtonProperties.m; sourceTree = ""; }; + 4AF138D21BF381200037B073 /* LGAlertViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertViewCell.h; sourceTree = ""; }; + 4AF138D31BF381200037B073 /* LGAlertViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGAlertViewCell.m; sourceTree = ""; }; + 4AF138D41BF381200037B073 /* LGAlertViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertViewController.h; sourceTree = ""; }; + 4AF138D51BF381200037B073 /* LGAlertViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGAlertViewController.m; sourceTree = ""; }; + 4AF138D61BF381200037B073 /* LGAlertViewShared.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertViewShared.h; sourceTree = ""; }; + 4AF138D71BF381200037B073 /* LGAlertViewTextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertViewTextField.h; sourceTree = ""; }; + 4AF138D81BF381200037B073 /* LGAlertViewTextField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGAlertViewTextField.m; sourceTree = ""; }; + 4AF138D91BF381200037B073 /* LGAlertViewWindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertViewWindow.h; sourceTree = ""; }; + 4AF138DA1BF381200037B073 /* LGAlertViewWindow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGAlertViewWindow.m; sourceTree = ""; }; + 4AF138DB1BF381200037B073 /* UIWindow+LGAlertView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIWindow+LGAlertView.h"; sourceTree = ""; }; + 4AF138DC1BF381200037B073 /* UIWindow+LGAlertView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIWindow+LGAlertView.m"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -50,7 +68,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 92E830BBF9A0E9733AA1BC7E /* libPods-LGAlertViewDemo.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -60,9 +77,9 @@ 4A3B78571AD2A28200DB8642 = { isa = PBXGroup; children = ( + 4AF138CD1BF381200037B073 /* LGAlertView */, 4A3B78621AD2A28200DB8642 /* LGAlertViewDemo */, 4A3B78611AD2A28200DB8642 /* Products */, - A97F0E110AD1D1F440968EB0 /* Pods */, 72646D99469FDAC04E185CBA /* Frameworks */, ); sourceTree = ""; @@ -108,21 +125,34 @@ name = "Supporting Files"; sourceTree = ""; }; - 72646D99469FDAC04E185CBA /* Frameworks */ = { + 4AF138CD1BF381200037B073 /* LGAlertView */ = { isa = PBXGroup; children = ( - 623B5C352E52555F577FBF72 /* libPods-LGAlertViewDemo.a */, + 4AF138CE1BF381200037B073 /* LGAlertView.h */, + 4AF138CF1BF381200037B073 /* LGAlertView.m */, + 4AF138D01BF381200037B073 /* LGAlertViewButtonProperties.h */, + 4AF138D11BF381200037B073 /* LGAlertViewButtonProperties.m */, + 4AF138D21BF381200037B073 /* LGAlertViewCell.h */, + 4AF138D31BF381200037B073 /* LGAlertViewCell.m */, + 4AF138D41BF381200037B073 /* LGAlertViewController.h */, + 4AF138D51BF381200037B073 /* LGAlertViewController.m */, + 4AF138D61BF381200037B073 /* LGAlertViewShared.h */, + 4AF138D71BF381200037B073 /* LGAlertViewTextField.h */, + 4AF138D81BF381200037B073 /* LGAlertViewTextField.m */, + 4AF138D91BF381200037B073 /* LGAlertViewWindow.h */, + 4AF138DA1BF381200037B073 /* LGAlertViewWindow.m */, + 4AF138DB1BF381200037B073 /* UIWindow+LGAlertView.h */, + 4AF138DC1BF381200037B073 /* UIWindow+LGAlertView.m */, ); - name = Frameworks; + name = LGAlertView; + path = ../LGAlertView; sourceTree = ""; }; - A97F0E110AD1D1F440968EB0 /* Pods */ = { + 72646D99469FDAC04E185CBA /* Frameworks */ = { isa = PBXGroup; children = ( - 637E642E08EC55B4AF82AB1E /* Pods-LGAlertViewDemo.debug.xcconfig */, - 75F4867B7B8225C0410A3B3A /* Pods-LGAlertViewDemo.release.xcconfig */, ); - name = Pods; + name = Frameworks; sourceTree = ""; }; /* End PBXGroup section */ @@ -132,12 +162,9 @@ isa = PBXNativeTarget; buildConfigurationList = 4A3B78831AD2A28300DB8642 /* Build configuration list for PBXNativeTarget "LGAlertViewDemo" */; buildPhases = ( - 4F6C50315945C908415D4792 /* Check Pods Manifest.lock */, 4A3B785C1AD2A28200DB8642 /* Sources */, 4A3B785D1AD2A28200DB8642 /* Frameworks */, 4A3B785E1AD2A28200DB8642 /* Resources */, - 29113AC9920AC8E38789F323 /* Copy Pods Resources */, - B520B4BA66BB51ABABA89F86 /* Embed Pods Frameworks */, ); buildRules = ( ); @@ -192,66 +219,25 @@ }; /* End PBXResourcesBuildPhase section */ -/* Begin PBXShellScriptBuildPhase section */ - 29113AC9920AC8E38789F323 /* Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LGAlertViewDemo/Pods-LGAlertViewDemo-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; - 4F6C50315945C908415D4792 /* Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Check Pods Manifest.lock"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; - showEnvVarsInLog = 0; - }; - B520B4BA66BB51ABABA89F86 /* Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Embed Pods Frameworks"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LGAlertViewDemo/Pods-LGAlertViewDemo-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - /* Begin PBXSourcesBuildPhase section */ 4A3B785C1AD2A28200DB8642 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 4AF138E11BF381200037B073 /* LGAlertViewTextField.m in Sources */, + 4AF138E31BF381200037B073 /* UIWindow+LGAlertView.m in Sources */, + 4AF138E01BF381200037B073 /* LGAlertViewController.m in Sources */, 4ACDE4C21BE10A4000CC8926 /* TableViewControllerActionSheet.m in Sources */, + 4AF138DE1BF381200037B073 /* LGAlertViewButtonProperties.m in Sources */, 4ACDE4C51BE10F7100CC8926 /* TableViewControllerCustomAlert.m in Sources */, 4AEEC7541BE5381300ED5D90 /* TableViewControllerCustomActionSheet.m in Sources */, 4A3B78691AD2A28200DB8642 /* AppDelegate.m in Sources */, 4A3B788E1AD2B29F00DB8642 /* NavigationController.m in Sources */, 4ACDE4C11BE10A4000CC8926 /* TableViewControllerAlert.m in Sources */, 4A3B78661AD2A28200DB8642 /* main.m in Sources */, + 4AF138DD1BF381200037B073 /* LGAlertView.m in Sources */, + 4AF138DF1BF381200037B073 /* LGAlertViewCell.m in Sources */, + 4AF138E21BF381200037B073 /* LGAlertViewWindow.m in Sources */, 4A3B788B1AD2A93D00DB8642 /* TableViewController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -340,7 +326,6 @@ }; 4A3B78841AD2A28300DB8642 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 637E642E08EC55B4AF82AB1E /* Pods-LGAlertViewDemo.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; @@ -357,7 +342,6 @@ }; 4A3B78851AD2A28300DB8642 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 75F4867B7B8225C0410A3B3A /* Pods-LGAlertViewDemo.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; diff --git a/Demo/LGAlertViewDemo.xcworkspace/contents.xcworkspacedata b/Demo/LGAlertViewDemo.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index e0193e3..0000000 --- a/Demo/LGAlertViewDemo.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/Demo/LGAlertViewDemo/TableViewControllerActionSheet.m b/Demo/LGAlertViewDemo/TableViewControllerActionSheet.m index c2371d4..142f487 100644 --- a/Demo/LGAlertViewDemo/TableViewControllerActionSheet.m +++ b/Demo/LGAlertViewDemo/TableViewControllerActionSheet.m @@ -320,7 +320,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^(void) { - [alertView dismissAnimated:YES completionHandler:nil]; + if (alertView && alertView.isShowing) [alertView dismissAnimated:YES completionHandler:nil]; }); } else if (indexPath.row == 11) @@ -344,7 +344,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^(void) { - [alertView dismissAnimated:YES completionHandler:nil]; + if (alertView && alertView.isShowing) [alertView dismissAnimated:YES completionHandler:nil]; }); } else if (indexPath.row == 12) @@ -406,7 +406,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath NSLog(@"destructiveHandler"); }]; - [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; + if (alertView1 && alertView1.isShowing) [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; }); } else if (indexPath.row == 15) @@ -446,7 +446,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath NSLog(@"destructiveHandler"); }]; - [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; + if (alertView1 && alertView1.isShowing) [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; }); } else if (indexPath.row == 16) @@ -486,7 +486,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath NSLog(@"destructiveHandler"); }]; - [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; + if (alertView1 && alertView1.isShowing) [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; }); } else if (indexPath.row == 17) @@ -526,7 +526,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath NSLog(@"destructiveHandler"); }]; - [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; + if (alertView1 && alertView1.isShowing) [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; }); } else if (indexPath.row == 18) @@ -566,7 +566,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath NSLog(@"destructiveHandler"); }]; - [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; + if (alertView1 && alertView1.isShowing) [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; }); } else if (indexPath.row == 19) @@ -606,7 +606,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath NSLog(@"destructiveHandler"); }]; - [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; + if (alertView1 && alertView1.isShowing) [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; }); } diff --git a/Demo/LGAlertViewDemo/TableViewControllerAlert.m b/Demo/LGAlertViewDemo/TableViewControllerAlert.m index e19cf1e..e5c1967 100644 --- a/Demo/LGAlertViewDemo/TableViewControllerAlert.m +++ b/Demo/LGAlertViewDemo/TableViewControllerAlert.m @@ -443,7 +443,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^(void) { - [alertView dismissAnimated:YES completionHandler:nil]; + if (alertView && alertView.isShowing) [alertView dismissAnimated:YES completionHandler:nil]; }); } else if (indexPath.row == 16) @@ -467,7 +467,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^(void) { - [alertView dismissAnimated:YES completionHandler:nil]; + if (alertView && alertView.isShowing) [alertView dismissAnimated:YES completionHandler:nil]; }); } else if (indexPath.row == 17) @@ -529,7 +529,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath NSLog(@"destructiveHandler"); }]; - [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; + if (alertView1 && alertView1.isShowing) [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; }); } else if (indexPath.row == 20) @@ -569,7 +569,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath NSLog(@"destructiveHandler"); }]; - [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; + if (alertView1 && alertView1.isShowing) [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; }); } else if (indexPath.row == 21) @@ -609,7 +609,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath NSLog(@"destructiveHandler"); }]; - [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; + if (alertView1 && alertView1.isShowing) [alertView1 transitionToAlertView:alertView2 completionHandler:nil]; }); } diff --git a/Demo/Podfile b/Demo/Podfile deleted file mode 100644 index 5920c6f..0000000 --- a/Demo/Podfile +++ /dev/null @@ -1,9 +0,0 @@ -source 'https://github.com/CocoaPods/Specs.git' - -platform :ios, '6.0' - -xcodeproj 'LGAlertViewDemo' - -target 'LGAlertViewDemo' do - pod 'LGAlertView', :path => '../' -end diff --git a/Demo/Podfile.lock b/Demo/Podfile.lock deleted file mode 100644 index c71b888..0000000 --- a/Demo/Podfile.lock +++ /dev/null @@ -1,14 +0,0 @@ -PODS: - - LGAlertView (2.0.5) - -DEPENDENCIES: - - LGAlertView (from `../`) - -EXTERNAL SOURCES: - LGAlertView: - :path: ../ - -SPEC CHECKSUMS: - LGAlertView: dffa2d6fd7b485bb9bee0c2bff29d71b77f318cb - -COCOAPODS: 0.39.0 diff --git a/Demo/podsInstall.command b/Demo/podsInstall.command deleted file mode 100755 index 3c76888..0000000 --- a/Demo/podsInstall.command +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -cd "$(dirname "$0")" - -pod install diff --git a/Demo/podsUpdate.command b/Demo/podsUpdate.command deleted file mode 100755 index f48a821..0000000 --- a/Demo/podsUpdate.command +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -cd "$(dirname "$0")" - -pod update diff --git a/Framework/LGAlertViewFramework.xcodeproj/project.pbxproj b/Framework/LGAlertViewFramework.xcodeproj/project.pbxproj new file mode 100644 index 0000000..5947f73 --- /dev/null +++ b/Framework/LGAlertViewFramework.xcodeproj/project.pbxproj @@ -0,0 +1,356 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 4AF138F21BF383540037B073 /* LGAlertViewFramework.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AF138F11BF383540037B073 /* LGAlertViewFramework.h */; }; + 4AF139F01BF385380037B073 /* LGAlertView.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AF139E11BF385380037B073 /* LGAlertView.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 4AF139F11BF385380037B073 /* LGAlertView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF139E21BF385380037B073 /* LGAlertView.m */; }; + 4AF139F21BF385380037B073 /* LGAlertViewButtonProperties.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AF139E31BF385380037B073 /* LGAlertViewButtonProperties.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 4AF139F31BF385380037B073 /* LGAlertViewButtonProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF139E41BF385380037B073 /* LGAlertViewButtonProperties.m */; }; + 4AF139F41BF385380037B073 /* LGAlertViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AF139E51BF385380037B073 /* LGAlertViewCell.h */; settings = {ATTRIBUTES = (Private, ); }; }; + 4AF139F51BF385380037B073 /* LGAlertViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF139E61BF385380037B073 /* LGAlertViewCell.m */; }; + 4AF139F61BF385380037B073 /* LGAlertViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AF139E71BF385380037B073 /* LGAlertViewController.h */; settings = {ATTRIBUTES = (Private, ); }; }; + 4AF139F71BF385380037B073 /* LGAlertViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF139E81BF385380037B073 /* LGAlertViewController.m */; }; + 4AF139F81BF385380037B073 /* LGAlertViewShared.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AF139E91BF385380037B073 /* LGAlertViewShared.h */; settings = {ATTRIBUTES = (Private, ); }; }; + 4AF139F91BF385380037B073 /* LGAlertViewTextField.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AF139EA1BF385380037B073 /* LGAlertViewTextField.h */; settings = {ATTRIBUTES = (Private, ); }; }; + 4AF139FA1BF385380037B073 /* LGAlertViewTextField.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF139EB1BF385380037B073 /* LGAlertViewTextField.m */; }; + 4AF139FB1BF385380037B073 /* LGAlertViewWindow.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AF139EC1BF385380037B073 /* LGAlertViewWindow.h */; settings = {ATTRIBUTES = (Private, ); }; }; + 4AF139FC1BF385380037B073 /* LGAlertViewWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF139ED1BF385380037B073 /* LGAlertViewWindow.m */; }; + 4AF139FD1BF385380037B073 /* UIWindow+LGAlertView.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AF139EE1BF385380037B073 /* UIWindow+LGAlertView.h */; settings = {ATTRIBUTES = (Private, ); }; }; + 4AF139FE1BF385380037B073 /* UIWindow+LGAlertView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4AF139EF1BF385380037B073 /* UIWindow+LGAlertView.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 4AF138EE1BF383540037B073 /* LGAlertViewFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = LGAlertViewFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 4AF138F11BF383540037B073 /* LGAlertViewFramework.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LGAlertViewFramework.h; sourceTree = ""; }; + 4AF138F31BF383540037B073 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 4AF139E11BF385380037B073 /* LGAlertView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertView.h; sourceTree = ""; }; + 4AF139E21BF385380037B073 /* LGAlertView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGAlertView.m; sourceTree = ""; }; + 4AF139E31BF385380037B073 /* LGAlertViewButtonProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertViewButtonProperties.h; sourceTree = ""; }; + 4AF139E41BF385380037B073 /* LGAlertViewButtonProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGAlertViewButtonProperties.m; sourceTree = ""; }; + 4AF139E51BF385380037B073 /* LGAlertViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertViewCell.h; sourceTree = ""; }; + 4AF139E61BF385380037B073 /* LGAlertViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGAlertViewCell.m; sourceTree = ""; }; + 4AF139E71BF385380037B073 /* LGAlertViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertViewController.h; sourceTree = ""; }; + 4AF139E81BF385380037B073 /* LGAlertViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGAlertViewController.m; sourceTree = ""; }; + 4AF139E91BF385380037B073 /* LGAlertViewShared.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertViewShared.h; sourceTree = ""; }; + 4AF139EA1BF385380037B073 /* LGAlertViewTextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertViewTextField.h; sourceTree = ""; }; + 4AF139EB1BF385380037B073 /* LGAlertViewTextField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGAlertViewTextField.m; sourceTree = ""; }; + 4AF139EC1BF385380037B073 /* LGAlertViewWindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LGAlertViewWindow.h; sourceTree = ""; }; + 4AF139ED1BF385380037B073 /* LGAlertViewWindow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LGAlertViewWindow.m; sourceTree = ""; }; + 4AF139EE1BF385380037B073 /* UIWindow+LGAlertView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIWindow+LGAlertView.h"; sourceTree = ""; }; + 4AF139EF1BF385380037B073 /* UIWindow+LGAlertView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIWindow+LGAlertView.m"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4AF138EA1BF383540037B073 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4AF138E41BF383530037B073 = { + isa = PBXGroup; + children = ( + 4AF139E01BF385380037B073 /* LGAlertView */, + 4AF138F01BF383540037B073 /* LGAlertViewFramework */, + 4AF138EF1BF383540037B073 /* Products */, + ); + sourceTree = ""; + }; + 4AF138EF1BF383540037B073 /* Products */ = { + isa = PBXGroup; + children = ( + 4AF138EE1BF383540037B073 /* LGAlertViewFramework.framework */, + ); + name = Products; + sourceTree = ""; + }; + 4AF138F01BF383540037B073 /* LGAlertViewFramework */ = { + isa = PBXGroup; + children = ( + 4AF138F11BF383540037B073 /* LGAlertViewFramework.h */, + 4AF138F31BF383540037B073 /* Info.plist */, + ); + path = LGAlertViewFramework; + sourceTree = ""; + }; + 4AF139E01BF385380037B073 /* LGAlertView */ = { + isa = PBXGroup; + children = ( + 4AF139E11BF385380037B073 /* LGAlertView.h */, + 4AF139E21BF385380037B073 /* LGAlertView.m */, + 4AF139E31BF385380037B073 /* LGAlertViewButtonProperties.h */, + 4AF139E41BF385380037B073 /* LGAlertViewButtonProperties.m */, + 4AF139E51BF385380037B073 /* LGAlertViewCell.h */, + 4AF139E61BF385380037B073 /* LGAlertViewCell.m */, + 4AF139E71BF385380037B073 /* LGAlertViewController.h */, + 4AF139E81BF385380037B073 /* LGAlertViewController.m */, + 4AF139E91BF385380037B073 /* LGAlertViewShared.h */, + 4AF139EA1BF385380037B073 /* LGAlertViewTextField.h */, + 4AF139EB1BF385380037B073 /* LGAlertViewTextField.m */, + 4AF139EC1BF385380037B073 /* LGAlertViewWindow.h */, + 4AF139ED1BF385380037B073 /* LGAlertViewWindow.m */, + 4AF139EE1BF385380037B073 /* UIWindow+LGAlertView.h */, + 4AF139EF1BF385380037B073 /* UIWindow+LGAlertView.m */, + ); + name = LGAlertView; + path = ../LGAlertView; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 4AF138EB1BF383540037B073 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 4AF139F21BF385380037B073 /* LGAlertViewButtonProperties.h in Headers */, + 4AF139F01BF385380037B073 /* LGAlertView.h in Headers */, + 4AF139FD1BF385380037B073 /* UIWindow+LGAlertView.h in Headers */, + 4AF139F41BF385380037B073 /* LGAlertViewCell.h in Headers */, + 4AF139F61BF385380037B073 /* LGAlertViewController.h in Headers */, + 4AF139F81BF385380037B073 /* LGAlertViewShared.h in Headers */, + 4AF139F91BF385380037B073 /* LGAlertViewTextField.h in Headers */, + 4AF139FB1BF385380037B073 /* LGAlertViewWindow.h in Headers */, + 4AF138F21BF383540037B073 /* LGAlertViewFramework.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 4AF138ED1BF383540037B073 /* LGAlertViewFramework */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4AF138F61BF383540037B073 /* Build configuration list for PBXNativeTarget "LGAlertViewFramework" */; + buildPhases = ( + 4AF138E91BF383540037B073 /* Sources */, + 4AF138EA1BF383540037B073 /* Frameworks */, + 4AF138EB1BF383540037B073 /* Headers */, + 4AF138EC1BF383540037B073 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = LGAlertViewFramework; + productName = LGAlertViewFramework; + productReference = 4AF138EE1BF383540037B073 /* LGAlertViewFramework.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 4AF138E51BF383530037B073 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0710; + ORGANIZATIONNAME = "Grigory Lutkov"; + TargetAttributes = { + 4AF138ED1BF383540037B073 = { + CreatedOnToolsVersion = 7.1.1; + }; + }; + }; + buildConfigurationList = 4AF138E81BF383530037B073 /* Build configuration list for PBXProject "LGAlertViewFramework" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 4AF138E41BF383530037B073; + productRefGroup = 4AF138EF1BF383540037B073 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 4AF138ED1BF383540037B073 /* LGAlertViewFramework */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 4AF138EC1BF383540037B073 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 4AF138E91BF383540037B073 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4AF139FC1BF385380037B073 /* LGAlertViewWindow.m in Sources */, + 4AF139F71BF385380037B073 /* LGAlertViewController.m in Sources */, + 4AF139F11BF385380037B073 /* LGAlertView.m in Sources */, + 4AF139FA1BF385380037B073 /* LGAlertViewTextField.m in Sources */, + 4AF139F31BF385380037B073 /* LGAlertViewButtonProperties.m in Sources */, + 4AF139F51BF385380037B073 /* LGAlertViewCell.m in Sources */, + 4AF139FE1BF385380037B073 /* UIWindow+LGAlertView.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 4AF138F41BF383540037B073 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 4AF138F51BF383540037B073 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 4AF138F71BF383540037B073 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = LGAlertViewFramework/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.Friend-LGA.LGAlertViewFramework"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 4AF138F81BF383540037B073 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = LGAlertViewFramework/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.Friend-LGA.LGAlertViewFramework"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 4AF138E81BF383530037B073 /* Build configuration list for PBXProject "LGAlertViewFramework" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4AF138F41BF383540037B073 /* Debug */, + 4AF138F51BF383540037B073 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4AF138F61BF383540037B073 /* Build configuration list for PBXNativeTarget "LGAlertViewFramework" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4AF138F71BF383540037B073 /* Debug */, + 4AF138F81BF383540037B073 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 4AF138E51BF383530037B073 /* Project object */; +} diff --git a/Framework/LGAlertViewFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Framework/LGAlertViewFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..72c91cb --- /dev/null +++ b/Framework/LGAlertViewFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Framework/LGAlertViewFramework.xcodeproj/xcshareddata/xcschemes/LGAlertViewFramework.xcscheme b/Framework/LGAlertViewFramework.xcodeproj/xcshareddata/xcschemes/LGAlertViewFramework.xcscheme new file mode 100644 index 0000000..0afa199 --- /dev/null +++ b/Framework/LGAlertViewFramework.xcodeproj/xcshareddata/xcschemes/LGAlertViewFramework.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Framework/LGAlertViewFramework/Info.plist b/Framework/LGAlertViewFramework/Info.plist new file mode 100644 index 0000000..d3de8ee --- /dev/null +++ b/Framework/LGAlertViewFramework/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/Framework/LGAlertViewFramework/LGAlertViewFramework.h b/Framework/LGAlertViewFramework/LGAlertViewFramework.h new file mode 100644 index 0000000..31e6dea --- /dev/null +++ b/Framework/LGAlertViewFramework/LGAlertViewFramework.h @@ -0,0 +1,26 @@ +// +// LGAlertViewFramework.h +// LGAlertViewFramework +// +// Created by Grigory Lutkov on 11.11.15. +// Copyright © 2015 Grigory Lutkov. All rights reserved. +// + +#import + +//! Project version number for LGAlertViewFramework. +FOUNDATION_EXPORT double LGAlertViewFrameworkVersionNumber; + +//! Project version string for LGAlertViewFramework. +FOUNDATION_EXPORT const unsigned char LGAlertViewFrameworkVersionString[]; + +#pragma mark - + +#import +#import +#import +#import +#import +#import +#import +#import diff --git a/LGAlertView.podspec b/LGAlertView.podspec index 82d8d6e..a14e63f 100644 --- a/LGAlertView.podspec +++ b/LGAlertView.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'LGAlertView' - s.version = '2.0.5' + s.version = '2.0.6' s.platform = :ios, '6.0' s.license = 'MIT' s.homepage = 'https://github.com/Friend-LGA/LGAlertView' diff --git a/LGAlertView/LGAlertViewButtonProperties.h b/LGAlertView/LGAlertViewButtonProperties.h index fd64c38..ef9abc5 100644 --- a/LGAlertView/LGAlertViewButtonProperties.h +++ b/LGAlertView/LGAlertViewButtonProperties.h @@ -1,12 +1,33 @@ // // LGAlertViewButtonProperties.h -// Pods +// LGAlertView // -// Created by Grigory Lutkov on 09.11.15. // +// The MIT License (MIT) +// +// Copyright (c) 2015 Grigory Lutkov +// (https://github.com/Friend-LGA/LGAlertView) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. // -#import +#import @interface LGAlertViewButtonProperties : NSObject @@ -24,18 +45,18 @@ @property (assign, nonatomic, getter=isAdjustsFontSizeToFitWidth) BOOL adjustsFontSizeToFitWidth; @property (assign, nonatomic, getter=isEnabled) BOOL enabled; -@property (assign, nonatomic, readonly, getter=isUserTitleColor) BOOL userTitleColor; -@property (assign, nonatomic, readonly, getter=isUserTitleColorHighlighted) BOOL userTitleColorHighlighted; -@property (assign, nonatomic, readonly, getter=isUserTitleColorDisabled) BOOL userTitleColorDisabled; -@property (assign, nonatomic, readonly, getter=isUserTextAlignment) BOOL userTextAlignment; -@property (assign, nonatomic, readonly, getter=isUserFont) BOOL userFont; -@property (assign, nonatomic, readonly, getter=isUserBackgroundColor) BOOL userBackgroundColor; +@property (assign, nonatomic, readonly, getter=isUserTitleColor) BOOL userTitleColor; +@property (assign, nonatomic, readonly, getter=isUserTitleColorHighlighted) BOOL userTitleColorHighlighted; +@property (assign, nonatomic, readonly, getter=isUserTitleColorDisabled) BOOL userTitleColorDisabled; +@property (assign, nonatomic, readonly, getter=isUserTextAlignment) BOOL userTextAlignment; +@property (assign, nonatomic, readonly, getter=isUserFont) BOOL userFont; +@property (assign, nonatomic, readonly, getter=isUserBackgroundColor) BOOL userBackgroundColor; @property (assign, nonatomic, readonly, getter=isUserBackgroundColorHighlighted) BOOL userBackgroundColorHighlighted; -@property (assign, nonatomic, readonly, getter=isUserBackgroundColorDisabled) BOOL userBackgroundColorDisabled; -@property (assign, nonatomic, readonly, getter=isUserNumberOfLines) BOOL userNumberOfLines; -@property (assign, nonatomic, readonly, getter=isUserLineBreakMode) BOOL userLineBreakMode; -@property (assign, nonatomic, readonly, getter=isUserMinimimScaleFactor) BOOL userMinimumScaleFactor; -@property (assign, nonatomic, readonly, getter=isUserAdjustsFontSizeTofitWidth) BOOL userAdjustsFontSizeTofitWidth; -@property (assign, nonatomic, readonly, getter=isUserEnabled) BOOL userEnabled; +@property (assign, nonatomic, readonly, getter=isUserBackgroundColorDisabled) BOOL userBackgroundColorDisabled; +@property (assign, nonatomic, readonly, getter=isUserNumberOfLines) BOOL userNumberOfLines; +@property (assign, nonatomic, readonly, getter=isUserLineBreakMode) BOOL userLineBreakMode; +@property (assign, nonatomic, readonly, getter=isUserMinimimScaleFactor) BOOL userMinimumScaleFactor; +@property (assign, nonatomic, readonly, getter=isUserAdjustsFontSizeTofitWidth) BOOL userAdjustsFontSizeTofitWidth; +@property (assign, nonatomic, readonly, getter=isUserEnabled) BOOL userEnabled; @end diff --git a/LGAlertView/LGAlertViewButtonProperties.m b/LGAlertView/LGAlertViewButtonProperties.m index 033acd5..5bf1bfe 100644 --- a/LGAlertView/LGAlertViewButtonProperties.m +++ b/LGAlertView/LGAlertViewButtonProperties.m @@ -1,9 +1,30 @@ // // LGAlertViewButtonProperties.m -// Pods +// LGAlertView // -// Created by Grigory Lutkov on 09.11.15. // +// The MIT License (MIT) +// +// Copyright (c) 2015 Grigory Lutkov +// (https://github.com/Friend-LGA/LGAlertView) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. // #import "LGAlertViewButtonProperties.h" diff --git a/README.md b/README.md index e444fe7..abb4ebb 100644 --- a/README.md +++ b/README.md @@ -55,13 +55,21 @@ You can customize every detail. Make AlertView of your dream! :) ### With CocoaPods -[CocoaPods](http://cocoapods.org/) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the "Get Started" section for more details. +CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. To install with cocoaPods, follow the "Get Started" section on [CocoaPods](https://cocoapods.org/). #### Podfile +```ruby +platform :ios, '6.0' +pod 'LGAlertView', '~> 2.0' +``` + +### With Carthage +Carthage is a lightweight dependency manager for Swift and Objective-C. It leverages CocoaTouch modules and is less invasive than CocoaPods. To install with carthage, follow the instruction on [Carthage](https://github.com/Carthage/Carthage/). + +#### Cartfile ``` -platform :ios, '6.0' -pod 'LGAlertView', '~> 2.0.0' +github "Friend-LGA/LGAlertView" ~> 2.0 ``` ## Usage