diff --git a/GJAlertController/README.md b/GJAlertController/README.md index 35ed884..b941d0d 100644 --- a/GJAlertController/README.md +++ b/GJAlertController/README.md @@ -1,3 +1,3 @@ -#GJAlertController +# GJAlertController 该类库实现了一个简单的功能:在代码中使用UIAlertController,而不用担心iOS7及其一下系统的兼容问题。实现思路是在iOS7系统下面自动添加UIAlertController类的子类GJAlertController,在GJAlertController内部实现了一系列UIAlertController的API,当运行的当前版本的系统中有UIAlerController时调用系统的实现,当运行的当前版本的系统中没有UIAlertController的时候,系统会调用GJAlertController中的类似UIAlertController的API去实现弹出alert的功能。 \ No newline at end of file diff --git a/README.md b/README.md index fa3cb83..c1e27b1 100644 --- a/README.md +++ b/README.md @@ -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文件拷贝到工程中即可。__ @@ -21,7 +21,7 @@ __然后重新update。__ -###用法:就是直接用UIAlertController,不用考虑版本兼容的问题。 +### 用法:就是直接用UIAlertController,不用考虑版本兼容的问题。 ```C