iOS项目开发常用功能静态库

YHDeveloperTools

iOS项目开发常用功能静态库

查看源码

功能方法:

1.字符检查


  [NSString checkStringWithType:Email andTargetString:@"1311" resultBlock:^(BOOL result, NSString *message) {
        NSLog(@"result =%@ message = %@",result?@"验证成功!":@"验证失败!",message);
    }];

2.自定义系统弹出窗


 [UIAlertController showTipsAlertWithTitle:@"虎哥" subTitle:@"就是帅" cAction:nil hasCancel:YES addTarget:self];

3.网络请求

使用方法

1.下载代码

image.png

2.引入工程,xcode9以上版本注意勾选target选项

image.png

3.修改target ->bulid settings ->other linker flag ->添加-ObjC

image.png

4.引入头文件YHDeveloperTools.h

image.png

5.开始调用对应方法

原文地址:https://www.cnblogs.com/tig666666/p/7815986.html