最常用的框架和main分析
2016-03-13 15:33
483 查看
最常用框架
1.MJRefresh 上下拉刷新 -XListView/Android-PullToRefresh
2.MJExtension Json解析 --gson
3.Masonry 自动布局框架 --
4.AFNetWorking 网络请求的框架 --android-async-http-with-sources/Okhttp
5.SDWebImage 图片异步加载 --universal-image-loader
6.MBProgressHUD 动态提示框 --
项目框架:
1.图片的异步加载框架:SDWebImage https://github.com/rs/SDWebImage
2.网络请求的框架:AFNetworking https://github.com/AFNetworking/AFNetworking
3.Json解析框架:MJExtension https://github.com/CoderMJLee/MJExtension
4.下拉刷新和上拉加载框架:MJRefresh https://github.com/CoderMJLee/MJRefresh
5.动态提示框:MBProgressHUD https://github.com/jdg/MBProgressHUD
6.自动布局框架 Masonry https://github.com/SnapKit/Masonry Swift的自动布局SnapKit https://github.com/SnapKit/SnapKit
1.注释插件VVDocumenter-Xcode
使用地址:http://jingyan.baidu.com/album/d169e186522650436711d855.html?picindex=2
2.加载图片写图片名的时候没有提示 用插件KSImageNamed-Xcode-master
3.JSon到实体类ESJsonFormat-Xcode https://github.com/EnjoySR/ESJsonFormat-Xcode
4.MLAutoReplace 自动生成一部分代码 https://github.com/molon/MLAutoReplace 比如 @a/ - - ts
- (UIImageView *)xxx///
其他控件类似get
Main分析
/**
int UIApplicationMain(int argc, char *argv[], NSString *principalClassName, NSString *delegateClassName);
1.argc、argv:直接传递给UIApplicationMain进行相关处理即可
2.principalClassName:指定应用程序类名(app的象征),该类必须是UIApplication(或子类)。如果为nil,则用UIApplication类作为默认值
3.delegateClassName:指定应用程序的代理类,该类必须遵守UIApplicationDelegate协议
*
* @param argc <#argc description#>
* @param argv <#argv description#>
*
* @return <#return value description#>
*/
int main(int argc,char * argv[]) {
@autoreleasepool {
//AppDelegate
就是UIApplicationMain的代理
//第三个参数nil 是UIApplication或者子类,如果是nil就是默认UIApplication
returnUIApplicationMain(argc, argv,
nil,NSStringFromClass([AppDelegateclass]));
}
}
1.MJRefresh 上下拉刷新 -XListView/Android-PullToRefresh
2.MJExtension Json解析 --gson
3.Masonry 自动布局框架 --
4.AFNetWorking 网络请求的框架 --android-async-http-with-sources/Okhttp
5.SDWebImage 图片异步加载 --universal-image-loader
6.MBProgressHUD 动态提示框 --
项目框架:
1.图片的异步加载框架:SDWebImage https://github.com/rs/SDWebImage
2.网络请求的框架:AFNetworking https://github.com/AFNetworking/AFNetworking
3.Json解析框架:MJExtension https://github.com/CoderMJLee/MJExtension
4.下拉刷新和上拉加载框架:MJRefresh https://github.com/CoderMJLee/MJRefresh
5.动态提示框:MBProgressHUD https://github.com/jdg/MBProgressHUD
6.自动布局框架 Masonry https://github.com/SnapKit/Masonry Swift的自动布局SnapKit https://github.com/SnapKit/SnapKit
1.注释插件VVDocumenter-Xcode
使用地址:http://jingyan.baidu.com/album/d169e186522650436711d855.html?picindex=2
2.加载图片写图片名的时候没有提示 用插件KSImageNamed-Xcode-master
3.JSon到实体类ESJsonFormat-Xcode https://github.com/EnjoySR/ESJsonFormat-Xcode
4.MLAutoReplace 自动生成一部分代码 https://github.com/molon/MLAutoReplace 比如 @a/ - - ts
- (UIImageView *)xxx///
其他控件类似get
Main分析
/**
int UIApplicationMain(int argc, char *argv[], NSString *principalClassName, NSString *delegateClassName);
1.argc、argv:直接传递给UIApplicationMain进行相关处理即可
2.principalClassName:指定应用程序类名(app的象征),该类必须是UIApplication(或子类)。如果为nil,则用UIApplication类作为默认值
3.delegateClassName:指定应用程序的代理类,该类必须遵守UIApplicationDelegate协议
*
* @param argc <#argc description#>
* @param argv <#argv description#>
*
* @return <#return value description#>
*/
int main(int argc,char * argv[]) {
@autoreleasepool {
//AppDelegate
就是UIApplicationMain的代理
//第三个参数nil 是UIApplication或者子类,如果是nil就是默认UIApplication
returnUIApplicationMain(argc, argv,
nil,NSStringFromClass([AppDelegateclass]));
}
}
相关文章推荐
- C. Mail Stamps---cf29c(离散化,图)
- [LeetCode] Palindrome Pairs 回文对
- CSU 1685-Entertainment Box(set+二分)
- 【CodeForces19E】Fairy
- opencv haartraining训练过程总结dir /b > info.txt
- Codeforces Round #345 (Div. 2) B. Beautiful Paintings
- TaintDroid下载与编译(六):(常出现的error)
- 关于main参数 *argv[] 指向空间放在哪的疑问
- 人工智能随想
- HDU1021Fibonacci Again
- 在RHEL7或者OL7上,Documents Fail to Index with DRG-11207: user filter command exited with status 127
- Ordered Fractions--最大公约数+pair
- 【leetcode】Array——Contains Duplicate II(219)
- 使用 flask-mail 扩展发送邮件
- sakai的工程
- pthread_cond_wait()条件变量
- [leetcode] 256. Paint House 解题报告
- AI和IA之随想
- 阿尔法完胜,人类怎么办?
- OC高效率52不要使用retainCount