Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Friend-LGA committed Apr 3, 2017
1 parent 8a8a2d0 commit 352645c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 24 deletions.
6 changes: 3 additions & 3 deletions Demo/LGAlertViewDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
4AF138D31BF381200037B073 /* LGAlertViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = LGAlertViewCell.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
4AF138D41BF381200037B073 /* LGAlertViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = LGAlertViewController.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
4AF138D51BF381200037B073 /* LGAlertViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = LGAlertViewController.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
4AF138D71BF381200037B073 /* LGAlertViewTextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = LGAlertViewTextField.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
4AF138D81BF381200037B073 /* LGAlertViewTextField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = LGAlertViewTextField.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
4AF138D71BF381200037B073 /* LGAlertViewTextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = LGAlertViewTextField.h; sourceTree = "<group>"; };
4AF138D81BF381200037B073 /* LGAlertViewTextField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = LGAlertViewTextField.m; sourceTree = "<group>"; };
4AF138D91BF381200037B073 /* LGAlertViewWindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = LGAlertViewWindow.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
4AF138DA1BF381200037B073 /* LGAlertViewWindow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = LGAlertViewWindow.m; sourceTree = "<group>"; };
4AF138DB1BF381200037B073 /* UIWindow+LGAlertView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = "UIWindow+LGAlertView.h"; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
Expand Down Expand Up @@ -149,13 +149,13 @@
4AF138D51BF381200037B073 /* LGAlertViewController.m */,
4AE5C0011E8A8A8600FA4A35 /* LGAlertViewHelper.h */,
4AE5C0021E8A8A8600FA4A35 /* LGAlertViewHelper.m */,
4AF319DF1E104AC40035FE21 /* LGAlertViewShared.h */,
4AF138D71BF381200037B073 /* LGAlertViewTextField.h */,
4AF138D81BF381200037B073 /* LGAlertViewTextField.m */,
4AF138D91BF381200037B073 /* LGAlertViewWindow.h */,
4AF138DA1BF381200037B073 /* LGAlertViewWindow.m */,
4AF138DB1BF381200037B073 /* UIWindow+LGAlertView.h */,
4AF138DC1BF381200037B073 /* UIWindow+LGAlertView.m */,
4AF319DF1E104AC40035FE21 /* LGAlertViewShared.h */,
);
name = LGAlertView;
path = ../LGAlertView;
Expand Down
46 changes: 25 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ You can customize every detail. Make AlertView of your dream! :)

### Default Alert View Style

<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/Preview.gif" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/1.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/2.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/3.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/4.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/5.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/6.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/7.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/8.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/9.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/10.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/11.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/12.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Alert_View_Style/13.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/Preview.gif" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/1.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/2.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/3.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/4.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/5.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/6.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/7.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/8.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/9.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/10.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/11.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/12.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Alert_View_Style/13.png" width="214"/>

### Default Action Sheet Style

<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Action_Sheet_Style/Preview.gif" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Action_Sheet_Style/1.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Action_Sheet_Style/2.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Action_Sheet_Style/3.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Action_Sheet_Style/4.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Action_Sheet_Style/5.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Action_Sheet_Style/6.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Action_Sheet_Style/7.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Default_Action_Sheet_Style/8.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Action_Sheet_Style/Preview.gif" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Action_Sheet_Style/1.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Action_Sheet_Style/2.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Action_Sheet_Style/3.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Action_Sheet_Style/4.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Action_Sheet_Style/5.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Action_Sheet_Style/6.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Action_Sheet_Style/7.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Default_Action_Sheet_Style/8.png" width="214"/>

### Custom Alert View Styles

<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Custom_Alert_View_Styles/1.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Custom_Alert_View_Styles/2.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Custom_Alert_View_Styles/3.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Custom_Alert_View_Styles/1.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Custom_Alert_View_Styles/2.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Custom_Alert_View_Styles/3.png" width="214"/>

### Custom Action Sheet Styles

<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Custom_Action_Sheet_Styles/1.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Custom_Action_Sheet_Styles/2.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGAlertView/Custom_Action_Sheet_Styles/3.png" width="214"/>
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Custom_Action_Sheet_Styles/1.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Custom_Action_Sheet_Styles/2.png" width="214"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/502ec9002f52270f5a9d531952f3a44bd30a796d/LGAlertView/Custom_Action_Sheet_Styles/3.png" width="214"/>

## Installation

Expand Down Expand Up @@ -208,29 +208,33 @@ More init methods you can find in [LGAlertView.h](https://github.com/Friend-LGA/

You can change properties only before you show alert view, after this to change something is impossible.

Instead of change properties for every new alert view, you can use global class properties to set them all only once and
### Appearance

Instead of change properties for every new alert view, you can use `appearance` to set them all only once and
new alert views will use it by default:

##### Objective-C

```objective-c
LGAlertView.tintColor = UIColor.greenColor;
LGAlertView.cancelOnTouch = NO;
LGAlertView.dismissOnAction = NO;
LGAlertView...
LGAlertView...
[LGAlertView appearance].tintColor = UIColor.greenColor;
[LGAlertView appearance].cancelOnTouch = NO;
[LGAlertView appearance].dismissOnAction = NO;
[LGAlertView appearance]...
[LGAlertView appearance]...
```

##### Swift

```swift
LGAlertView.tintColor = .green
LGAlertView.cancelOnTouch = false
LGAlertView.dismissOnAction = false
LGAlertView...
LGAlertView...
LGAlertView.appearance().tintColor = .green
LGAlertView.appearance().cancelOnTouch = false
LGAlertView.appearance().dismissOnAction = false
LGAlertView.appearance()...
LGAlertView.appearance()...
```

### Buttons

If you want to set properties for each button individually, you can use method:

##### Objective-C
Expand Down Expand Up @@ -259,7 +263,7 @@ alertView.setButtonPropertiesAt(0) { (properties: LGAlertViewButtonProperties) i
}
```

### Enable / Disable
#### Enable / Disable

You can enable and disable buttons:

Expand Down

0 comments on commit 352645c

Please sign in to comment.