姓名没想好,就暂且叫它 UIMaker

写UIMaker 动机

Masonry 的横空出世,其链式编程的姿态屡试不爽,相比于iOS的书写姿态更见其, Masonry 中能结束这种链式编程办法那么iHTTPOS控件创建也一定能结束这种办法,在iOS看完其内部结束后,在闲余时间决议自己将 UIKit 重写http署理一遍抵达其一样的效果,希望在开发过程中对开发功率和代码的可读性有一定的帮忙。

UIMakphpmyadminerios14 引进

支撑通过 pphpmyadminod UIMaker
可直接下载ios14桌面布局图片引进https安全问题

用法httpwatch示例

现在http署理 支撑创建 UILabel UphpstudyIButton UIImageView UITableView UITextFielhttp署理dUIhttp 500TextView UICollectionViewhttps和http的差异 Aphp文件用什么软件翻开FN 后续还会持续拓展
UITextView 示例能够和 Mansony 协作使用
[[Maker(@"UITextView") maios下载s_make:^(UIMaker * _Nonnull make) {
make.backGroPHPudCohttpclientlor([UIColor orangeColor])
.parios退款ent_component(self.view)
.font([https安全问题UIFont systemFontOfSize:20])ios14桌面布局图片;
}] mas_makeConstraints:^(MASConstraintMaker *make) {ios14
make.top.mas_equalTo(200);
make.left.mas_equalTo(20);
make.right.mas_equalTo(20);
make.height.mas_equalTo(50);
}];
UILabel 示例
[Maker(@"UILabel") mas_make:^(UIMaker * _Nonnull make) {
make.text(@"UIMaker mas_make successed!")
.frame(ios14桌面布局图片CGRechttp 500tMahttps协议ke(100, 100, 200, 80)php面试题)
.backGroudColorPHP([UIColor redColor])
.textColor([UIColphp是前端仍是后端or whiteColor])
.lineBreakMode(NSLineBreakByTruncatingMihttps安全问题ddle)
.radian(CGSizeMake(10, 10))
.parent_comhttp协议ponenthttp://192.168.1.1登录(selfhttps域名.view)
.font([UIFont systemFontOfSize:18])
.tapGephp是什么stureRecognizer(^{
NSLog(@"UIMaker mas_make succhttp协议essed!");
});
}];
AFN 示例
// get
[UIMakerrequest share].url(@"https://zhqd.shiminjiaios14.4.1更新了什么.com/weather.php").tyHTTPSpe(UIMakerrequestTypeGet).respone(^(id  _Nonnullios是什么意思 respone) {
// 成功回调
NSLog(@"respone---- %@",respone);
}, ^(httpclientid  _Nonnull failure) {
// 失利回调
});
// downloadFile
[UIMakerrequest sharhttp协议e].url(@"https:php钱银//zhqd.shimiphpstudynjia.comHTTP/weather.phttpclienthp").downloadphp钱银(^(id  _Nonnull prhttps和http的差异ogress)               // 下载发展
// NSLog(@"progress---- %@",progress);
}, ^(id  _Nonnull respone) {
// 成功回调
NSLog(@"respone---- %@",respone);
}, ^(id  _Nonnull failure) {
});
// uploadFile
[UIMakerrequest share].url(@"https://zhqd.shimiphpmyadminnjia.com/weather.php").fileDatHTTPa([NSData new]).fileName(@"weather.txt").name(@"file").mimeType(@"image/png").uploadFilehttp://www.baidu.com(^(id  _Nonnulphp面试题l progress) {
// 上传发展
}, ^(id  _Nohttp协议nnull respone) {
// 成功回调
}, ^(id  _Nonnull fahttp://www.baidu.comilure) {
// 失利回调
});

版别设计基线

UIMaker中几乎涵盖了日常开发过https和http的差异程中用到的目标,后期还https域名会添加一些拓展,也期盼您有更好的主意为其拓展。

0.5.0 新增功用

对AFN进行拓展,在网络恳求的当地也能够进行链式调用API,支撑事务中常见的 post | get | put | delete 以及 文件上传下载