会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
偏执Code
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
下一页
2016年4月1日
UI基础 - UILabel
摘要: //根据文字获取size - (CGSize)getSizeWithstring:(NSString *)string { CGSize maxSize = CGSizeMake(320, 320); NSDictionary *dict = @{NSFontAttributeName : [UIF
阅读全文
posted @ 2016-04-01 14:57 偏执Dog
阅读(166)
评论(0)
推荐(0)
2016年3月18日
iOS8之后CoreLocation定位的使用
摘要: 在Info.plist文件中添加如下配置: //始终允许访问位置信息 (1)NSLocationAlwaysUsageDescription //使用应用程序期间允许访问位置数据 (2)NSLocationWhenInUseUsageDescription //创建一个管理者 - (CLLocati
阅读全文
posted @ 2016-03-18 12:06 偏执Dog
阅读(294)
评论(0)
推荐(0)
2016年3月15日
关于什么时候用pop什么时候用dismiss
摘要: 假如你是类似于这样跳转过来的self presentViewController: animated: completion:那么你回去的时候就要dismiss假如你是这样跳转过来的 self.navigationController pushViewController: animated: 那么
阅读全文
posted @ 2016-03-15 18:45 偏执Dog
阅读(237)
评论(0)
推荐(0)
2016年3月13日
控制台输出文字改中文
摘要: 文件下载链接:http://pan.baidu.com/s/1eRp8B6q
阅读全文
posted @ 2016-03-13 14:24 偏执Dog
阅读(380)
评论(0)
推荐(0)
2016年1月25日
搬瓦工搭建VPN
摘要: 搬瓦工VPS的PPTP VPN搭建其实和上面都是很简单的,这个要用到上面的搬瓦工VPS控制面板。Root shell - advanced下载 centos 6 一键安装包wget --no-check-certificate https://raw.githubusercontent.com/te...
阅读全文
posted @ 2016-01-25 14:49 偏执Dog
阅读(273)
评论(0)
推荐(0)
2015年12月15日
Quartz2D使用
摘要: 使用Quartz2D前 先导入QuartzCore.framework //划线 常用拼接路径函数 新建一个起点void CGContextMoveToPoint(CGContextRef c, CGFloat x, CGFloat y) 添加新的线段到某个点void CGContextAddLin
阅读全文
posted @ 2015-12-15 21:01 偏执Dog
阅读(147)
评论(0)
推荐(0)
新建PCH文件以及常用宏定义
摘要: $(SRCROOT)/项目名/pch文件名.pch //0-255的随机数 #define randint arc4random() % 256 //随机色 #define randColor [UIColor colorWithRed:randint/255.0 green:randint/255
阅读全文
posted @ 2015-12-15 20:59 偏执Dog
阅读(166)
评论(0)
推荐(0)
修改状态栏的颜色
摘要: /** * 修改状态栏颜色 * UIStatusBarStyleDefault 默认黑色,在浅色的背景上使用 * UIStatusBarStyleLightContent 亮白,在深色的背景上使用 * UIStatusBarStyleDefault IOS7之后淘汰 * UIStatusBarSty
阅读全文
posted @ 2015-12-15 11:28 偏执Dog
阅读(162)
评论(0)
推荐(0)
2015年12月11日
UILabel的size根据文字的长短变化
摘要: UILabel *label = [[UILabel alloc] init]; label.backgroundColor = [UIColor blackColor]; [self.view addSubview:label]; label.text = @"这是文字"; label.textC
阅读全文
posted @ 2015-12-11 20:31 偏执Dog
阅读(367)
评论(0)
推荐(0)
2015年12月3日
仿微博——MJExtension之字典转模型
摘要: 1.模型类中定义好属性 2.用AFN请求下来的数据保存到字典中 3.从字典中取出微博字典数组 //微博字典数组 NSArray *restrictArray = responseObject[@"statuses"]; 4.用MJExtension把微博字典数组转成微博模型数组 //微博模型数组 N
阅读全文
posted @ 2015-12-03 16:26 偏执Dog
阅读(450)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
下一页
公告