摘要: 第三方库CocoaPodCocoaPod并不是iOS上的第三方库 而是大名鼎鼎的第三方库的管理工具在CocoaPod没有出现之前 第三方库的管理是非常痛苦的 尤其是一些大型的库(比如nimbus) 每次对库进行更新 都可能会非常的痛苦CocoaPod的出现解决了这些问题 以Framework的方式引... 阅读全文
posted @ 2015-12-16 16:17 death3721 阅读(204) 评论(0) 推荐(1) 编辑
摘要: 1.基础框架的搭建1.1 pod引入常用的第三方类库1.2 创建基础文件夹结构/目录结构Resource———存放声音/图片/xib/storyboard 等资源文件Define——宏定义, 常用的常量/常用的方法Category——类别, 主要是对第三方框架的封装/对系统类的方法的额外增加View... 阅读全文
posted @ 2015-12-16 13:16 death3721 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #pragma mark 实现NSURLSessionDataDelegate代理@interface ViewController (){ UIButton* sessionPostButton; UIButton* sessionDelegatePostButton; UITa... 阅读全文
posted @ 2015-12-16 13:03 death3721 阅读(330) 评论(0) 推荐(0) 编辑
摘要: @interface ViewController (){ UIButton* getButton; UIButton* postButton; UITableView* table; NSMutableArray* array;}@end@implementation Vi... 阅读全文
posted @ 2015-12-16 09:45 death3721 阅读(194) 评论(0) 推荐(0) 编辑
摘要: //同步请求 //创建NSString用来存储请求的网址 NSString* str=@"http://v.juhe.cn/weather/index?format=2&cityname=沈阳&key=41cf6f9685a8776dc8384806c262ca0e"; //用UT... 阅读全文
posted @ 2015-12-15 15:40 death3721 阅读(291) 评论(0) 推荐(0) 编辑
摘要: @interface ViewController (){ UITableView* table; NSMutableArray* parseResult;}@end@implementation ViewController- (void)viewDidLoad { [super... 阅读全文
posted @ 2015-12-15 13:01 death3721 阅读(1588) 评论(0) 推荐(0) 编辑
摘要: @interface ViewController (){ UIImageView* iv; UIButton* btn; UILabel* lbl;}@end@implementation ViewController- (void)viewDidLoad { [super... 阅读全文
posted @ 2015-12-14 16:22 death3721 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 用Cocoa Pods导入控件以后 直接导头文件 复制以下代码[SCNetworkReachability host:@"github.com" reachabilityStatus:^(SCNetworkStatus status){ switch (status) { ... 阅读全文
posted @ 2015-12-14 16:19 death3721 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1:更新系统Ruby 在终端复制以下代码 可能需要输入本机密码 直接输入回车就行 不会显示密码 sudo gem update --system 2:更改镜像 在终端复制以下代码 依次输入 gem sources --removehttps://rubygems.org/ gem sources - 阅读全文
posted @ 2015-12-10 11:27 death3721 阅读(183) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad { [super viewDidLoad]; UIButton* ag=[[UIButton alloc]initWithFrame:CGRectMake(screenWidth/2-75, 174, 150, 150)]; UIIm... 阅读全文
posted @ 2015-12-09 13:48 death3721 阅读(545) 评论(0) 推荐(0) 编辑