Skip to content

Commit

Permalink
Now LGAlertView combine UIAlertViewController, UIAlertView and UIActi…
Browse files Browse the repository at this point in the history
…onSheet. Added new abilities. Fixed some bugs.
  • Loading branch information
Grigory Lutkov authored and Grigory Lutkov committed Nov 2, 2015
1 parent e25b644 commit 1cc440f
Show file tree
Hide file tree
Showing 24 changed files with 3,029 additions and 1,141 deletions.
30 changes: 30 additions & 0 deletions Demo/LGAlertViewDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
4A3B788B1AD2A93D00DB8642 /* TableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A3B788A1AD2A93D00DB8642 /* TableViewController.m */; };
4A3B788E1AD2B29F00DB8642 /* NavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A3B788D1AD2B29F00DB8642 /* NavigationController.m */; };
4ABF191C1BDA895200A12B6E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4ABF191B1BDA895200A12B6E /* LaunchScreen.storyboard */; };
4ACDE4C11BE10A4000CC8926 /* TableViewControllerAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = 4ACDE4BE1BE10A4000CC8926 /* TableViewControllerAlert.m */; };
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 */; };
/* End PBXBuildFile section */

Expand All @@ -28,6 +32,14 @@
4A3B788C1AD2B29F00DB8642 /* NavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NavigationController.h; sourceTree = "<group>"; };
4A3B788D1AD2B29F00DB8642 /* NavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NavigationController.m; sourceTree = "<group>"; };
4ABF191B1BDA895200A12B6E /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = "<group>"; };
4ACDE4BD1BE10A4000CC8926 /* TableViewControllerAlert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TableViewControllerAlert.h; sourceTree = "<group>"; };
4ACDE4BE1BE10A4000CC8926 /* TableViewControllerAlert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TableViewControllerAlert.m; sourceTree = "<group>"; };
4ACDE4BF1BE10A4000CC8926 /* TableViewControllerActionSheet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TableViewControllerActionSheet.h; sourceTree = "<group>"; };
4ACDE4C01BE10A4000CC8926 /* TableViewControllerActionSheet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TableViewControllerActionSheet.m; sourceTree = "<group>"; };
4ACDE4C31BE10F7100CC8926 /* TableViewControllerCustomAlert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TableViewControllerCustomAlert.h; sourceTree = "<group>"; };
4ACDE4C41BE10F7100CC8926 /* TableViewControllerCustomAlert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TableViewControllerCustomAlert.m; sourceTree = "<group>"; };
4AEEC7521BE5381300ED5D90 /* TableViewControllerCustomActionSheet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TableViewControllerCustomActionSheet.h; sourceTree = "<group>"; };
4AEEC7531BE5381300ED5D90 /* TableViewControllerCustomActionSheet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TableViewControllerCustomActionSheet.m; sourceTree = "<group>"; };
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 = "<group>"; };
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 = "<group>"; };
Expand Down Expand Up @@ -72,6 +84,14 @@
4A3B788D1AD2B29F00DB8642 /* NavigationController.m */,
4A3B78891AD2A93D00DB8642 /* TableViewController.h */,
4A3B788A1AD2A93D00DB8642 /* TableViewController.m */,
4ACDE4BD1BE10A4000CC8926 /* TableViewControllerAlert.h */,
4ACDE4BE1BE10A4000CC8926 /* TableViewControllerAlert.m */,
4ACDE4BF1BE10A4000CC8926 /* TableViewControllerActionSheet.h */,
4ACDE4C01BE10A4000CC8926 /* TableViewControllerActionSheet.m */,
4ACDE4C31BE10F7100CC8926 /* TableViewControllerCustomAlert.h */,
4ACDE4C41BE10F7100CC8926 /* TableViewControllerCustomAlert.m */,
4AEEC7521BE5381300ED5D90 /* TableViewControllerCustomActionSheet.h */,
4AEEC7531BE5381300ED5D90 /* TableViewControllerCustomActionSheet.m */,
4A3B78701AD2A28300DB8642 /* Images.xcassets */,
4A3B78631AD2A28200DB8642 /* Supporting Files */,
4ABF191B1BDA895200A12B6E /* LaunchScreen.storyboard */,
Expand Down Expand Up @@ -225,8 +245,12 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
4ACDE4C21BE10A4000CC8926 /* TableViewControllerActionSheet.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 */,
4A3B788B1AD2A93D00DB8642 /* TableViewController.m in Sources */,
);
Expand Down Expand Up @@ -320,11 +344,14 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
INFOPLIST_FILE = LGAlertViewDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.test.$(PRODUCT_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
};
name = Debug;
};
Expand All @@ -334,11 +361,14 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
INFOPLIST_FILE = LGAlertViewDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.test.$(PRODUCT_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
};
name = Release;
};
Expand Down
2 changes: 2 additions & 0 deletions Demo/LGAlertViewDemo/NavigationController.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ - (void)viewDidLoad
{
[super viewDidLoad];

self.navigationBar.translucent = YES;
self.navigationBar.barTintColor = [UIColor colorWithRed:0.f green:0.5 blue:1.f alpha:1.f];
self.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName: [UIColor whiteColor]};
self.navigationBar.tintColor = [UIColor colorWithWhite:1.f alpha:0.5];
}

- (BOOL)shouldAutorotate
Expand Down
Loading

0 comments on commit 1cc440f

Please sign in to comment.