2016年4月5日

4.戴帽子,拉伸图片的API(见效果图)

摘要: UIImage *img=[UIImage imageNamed:@"bubbleSelf.png"]; img=[img stretchableImageWithLeftCapWidth:15 topCapHeight:12]; UIImageView *imgView=[[UIImageView 阅读全文

posted @ 2016-04-05 00:25 aLonelyRoot3 阅读(109) 评论(0) 推荐(0) 编辑

2015年12月25日

3.判断当前设备

摘要: #pragma mark 判断当前设备#define IS_IPHONE4 (([[UIScreen mainScreen] bounds].size.height == 480) ? YES : NO)#define IS_IPHONE5 (([[UIScreen mainScreen] boun... 阅读全文

posted @ 2015-12-25 23:49 aLonelyRoot3 阅读(139) 评论(0) 推荐(0) 编辑

2015年9月3日

2. GCD的使用(线程间通信---子线程执行耗时操作/主线程更新UI)

摘要: //// ViewController.m// 07-线程间通信(加载图片,在主线程中更新UI)//// Created by Jasperay on 15/9/3.// Copyright (c) 2015年 @aLonelyRoot3. All rights reserved.//#im... 阅读全文

posted @ 2015-09-03 15:43 aLonelyRoot3 阅读(383) 评论(0) 推荐(0) 编辑

1. 关于GCD的使用(串并行队列和同步异步函数的问题)

摘要: /*------------------------------ GCD使用 1.队列和任务------------------------------------------*/重点:1."串行队列"? "并发队列"? 2.block?{ 1.GCD(Grand Central Dispat... 阅读全文

posted @ 2015-09-03 14:58 aLonelyRoot3 阅读(247) 评论(0) 推荐(0) 编辑

导航