Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GJAlertController/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#GJAlertController
# GJAlertController

该类库实现了一个简单的功能:在代码中使用UIAlertController,而不用担心iOS7及其一下系统的兼容问题。实现思路是在iOS7系统下面自动添加UIAlertController类的子类GJAlertController,在GJAlertController内部实现了一系列UIAlertController的API,当运行的当前版本的系统中有UIAlerController时调用系统的实现,当运行的当前版本的系统中没有UIAlertController的时候,系统会调用GJAlertController中的类似UIAlertController的API去实现弹出alert的功能。
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# GJAlertController
##简介
## 简介
UIAlertController是一个在iOS8才被加入的类,在低于iOS8版本的设备上无法使用,此库可让使用者在低版本中也可以使用UIAlertController。

也就是说,你在开发的时候尽管使用UIAlertController,就当它是iOS很早版本就有的类,不必去在代码中判断如果iOS版本小于8,而去用AlertView或者ActionSheet。

当app运行的iOS版本中没有UIAlertController的时候,GJAlertController这个类库会自动用UIAlertView、UIActionSheet去帮你实现你想要的功能。

###使用:
### 使用:
__第一种 拷贝导入__

__1.直接把GJAlertController文件夹下的GJAlertAction.h/.m、GJAlertController.h/.m、UIViewController+Alert.h/.m文件拷贝到工程中即可。__
Expand All @@ -21,7 +21,7 @@ __然后重新update。__



###用法:就是直接用UIAlertController,不用考虑版本兼容的问题。
### 用法:就是直接用UIAlertController,不用考虑版本兼容的问题。


```C
Expand Down