-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Custom space
- Loading branch information
Showing
6 changed files
with
219 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,39 @@ | ||
### 一款高度定制化AlertView弹窗 | ||
> 使用方法和UIAlertView一样,详见sample | ||
### - Usage | ||
ZFAlertController is a Highly customizable AlertController for iOS. | ||
Choose ZFAlertController for your next project, or migrate over your existing projects—you'll be happy you did! | ||
|
||
### Installation with CocoaPods | ||
##### Podfile | ||
To integrate ZFAlertController into your Xcode project using CocoaPods, specify it in your Podfile: | ||
``` | ||
source 'https://github.com/CocoaPods/Specs.git' | ||
platform :ios, '8.0' | ||
target 'TargetName' do | ||
pod 'ZFAlertController', '~> 0.1.1' | ||
end | ||
``` | ||
Then, run the following command: | ||
``` | ||
pod 'ZFAlertController' | ||
pod install --repo-update | ||
``` | ||
|
||
### Usage | ||
All the usages are equal with UIAlertController | ||
#### ZFAlertControllerStyleAlert | ||
``` | ||
ZFAlertController *alertVC = [ZFAlertController alertWithTitle:@"ZFAlertController" message:@"alertWithTitle:message:style:" style:ZFAlertControllerStyleAlert]; | ||
ZFAlertAction *ok = [ZFAlertAction actionWithTitle:@"ok" action:^{ | ||
NSLog(@"ok"); | ||
[self testFunc]; | ||
}]; | ||
ZFAlertAction *cancel = [ZFAlertAction actionWithTitle:@"cancel" action:^{ | ||
NSLog(@"cancel"); | ||
}]; | ||
[alertVC addAction:ok]; | ||
[alertVC addAction:cancel]; | ||
[self presentViewController:alertVC animated:YES completion:nil]; | ||
``` | ||
#### ZFAlertControllerStyleActionSheet | ||
``` | ||
ZFAlertController *alertVC = [ZFAlertController alertWithTitle:@"ActionSheet" message:@"alertWithTitle:message:style:" style:ZFAlertControllerStyleActionSheet]; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,13 +9,13 @@ | |
|
||
Pod::Spec.new do |s| | ||
s.name = "ZFAlertController" | ||
s.version = "0.1.0" | ||
s.version = "0.1.1" | ||
s.summary = "No short description of ZFAlertController." | ||
s.homepage = "https://github.com/FranLucky/ZFAlertController" | ||
s.license = { :type => "MIT"} | ||
s.author = { "Pokeey" => "[email protected]" } | ||
s.platform = :ios, "9.0" | ||
s.ios.deployment_target = "9.0" | ||
s.platform = :ios, "8.0" | ||
s.ios.deployment_target = "8.0" | ||
s.source = { :git => "https://github.com/FranLucky/ZFAlertController.git", :tag => "#{s.version}" } | ||
s.source_files = "ZFAlertController/*.{h,m}" | ||
s.frameworks = "Foundation","UIKit" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.