自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (9)
  • 问答 (2)
  • 收藏
  • 关注

原创 UIWebView 的基本用法 浏览网页

@interface DetailViewController ()UIWebViewDelegate> @end @implementation DetailViewController - (void)viewDidLoad {     [super viewDidLoad];     // Do any additional s

2015-11-27 09:51:07 274

原创 KVO的简单用法

//  Created by wjn on 15/9/30. //  Copyright © 2015年 wlm. All rights reserved. // #import "ViewController.h" @interface ViewController () @property (nonatomic, reta

2015-11-27 09:44:54 235

原创 NSURLSession 数据解析

//  Created by dllo on 15/9/25. //  Copyright © 2015年 WLM. All rights reserved. // #import "ViewController.h" @interface ViewController ()NSURLSessionDataDelegate>

2015-11-27 09:28:23 530

翻译 交互设计的标准法则

作为交互设计之父的阿兰·库珀最为人熟知的或许就是这句“除非有更好的选择,否则就遵从标准”了,在交互设计领域有很多经过了时间的验证的法则定律被认作了标准,那么你都知道都有哪些吗? 1. Fitts’ Law / 菲茨定律(费茨法则) 定律内容:从一个起始位置移动到一个最终目标所需的时间由两个参数来决定,到目标的距离和目标的大小(上图中的 D

2015-11-27 09:17:54 450

贝塞尔 UIBezierPath

UIBezierPath CGRect rect = CGRectMake(50, 50, 50, 50); // UIBezierPath *bezierPath = [UIBezierPath bezierPath]; // //CALayer的子类 // CAShapeLayer *layer = [CAShapeLayer new]; // //轮廓的颜色 // layer.strokeColor = [UIColor greenColor].CGColor; // //填充颜色 // layer.fillColor = [UIColor yellowColor].CGColor; // //轮廓线宽度

2016-01-18

DownLoad 下载练习

DownLoad - (IBAction)buttonDidPress:(id)sender { if (self.downLoad) { if (self.boolen) { [self.downLoad pause]; self.boolen = NO; } else { [self.downLoad resume]; self.boolen = YES; } } else { // 文件路径 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *path = [paths lastObject]; path = [path stringByAppendingFormat:@"%@\aa", path]; NSLog(@"*********** %@", path); self.downLoad = [[DownLoadTask alloc] init]; [self.downLoad downLoadTaskWithURL:[NSURL URLWithString:@"http://61.155.212.122/hc.yinyuetai.com/uploads/videos/common/5B86014C1334A89EB08B30D386FAA9C1.flv?sc=1c7a66a8a8bf0612&br=783&rd=iOS"] WithLocation:path]; } }

2016-01-05

音乐播放器

//初始化音乐 //创建音乐文件路径 NSString *musicFilePath = [[NSBundle mainBundle] pathForResource:@"myMusic" ofType:@"mp3"]; //判断文件是否存在 if ([[NSFileManager defaultManager] fileExistsAtPath:musicFilePath]) { NSURL *musicURL = [NSURL fileURLWithPath:musicFilePath]; NSError *myError = nil; //创建播放器 _myBackMusic = [[AVAudioPlayer alloc] initWithContentsOfURL:musicURL error:&myError];

2015-11-26

关灯游戏(view)

用view 做的关灯游戏 都是以前做的简单游戏 谁喜欢拿去用吧

2015-11-18

关灯的游戏

用按钮做的关灯游戏,还有一个用view做的下面发出来

2015-11-18

URLConnection 数据解析

URLConnection 数据解析 数据的同步请求 数据的异步请求 #pragma mark -- 异步Block - (void)buttonBlock:(UIButton *)sender { NSLog(@"异步Block"); // 1. 创建网址 NSString *string = kTtpodHomPageURL; NSURL *url = [NSURL URLWithString:string]; // 2.设置网络请求 NSURLRequest *requst = [NSURLRequest requestWithURL:url]; // 建立异步连接,通过Block接受数据 [NSURLConnection sendAsynchronousRequest:requst queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse * _Nullable response, NSData * _Nullable data, NSError * _Nullable connectionError) { if (!connectionError) { //data 就是网络请求返回的数据 // 数据处理 id result = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil]; NSLog(@"%@", result); } }]; NSLog(@"同步?异步?"); }

2015-11-18

XML解析数据

XML解析数据 iOS 中对xml格式的文件进行解析,取出当中的数据。

2015-11-12

GestureRcognizer

GestureRcognizer UI手势 iOS

2015-10-30

OC中的内存管理

OC内存管理:采用引用计数的方式管理内存 MRC :手动管理内存(手动管理引用计数) ARC:自动管理内存(自动管理引用计数)--系统默认

2015-10-21

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除