上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: //根据文字获取size - (CGSize)getSizeWithstring:(NSString *)string { CGSize maxSize = CGSizeMake(320, 320); NSDictionary *dict = @{NSFontAttributeName : [UIF 阅读全文
posted @ 2016-04-01 14:57 偏执Dog 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 在Info.plist文件中添加如下配置: //始终允许访问位置信息 (1)NSLocationAlwaysUsageDescription //使用应用程序期间允许访问位置数据 (2)NSLocationWhenInUseUsageDescription //创建一个管理者 - (CLLocati 阅读全文
posted @ 2016-03-18 12:06 偏执Dog 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 假如你是类似于这样跳转过来的self presentViewController: animated: completion:那么你回去的时候就要dismiss假如你是这样跳转过来的 self.navigationController pushViewController: animated: 那么 阅读全文
posted @ 2016-03-15 18:45 偏执Dog 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 文件下载链接:http://pan.baidu.com/s/1eRp8B6q 阅读全文
posted @ 2016-03-13 14:24 偏执Dog 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 搬瓦工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) 编辑
摘要: 使用Quartz2D前 先导入QuartzCore.framework //划线 常用拼接路径函数 新建一个起点void CGContextMoveToPoint(CGContextRef c, CGFloat x, CGFloat y) 添加新的线段到某个点void CGContextAddLin 阅读全文
posted @ 2015-12-15 21:01 偏执Dog 阅读(139) 评论(0) 推荐(0) 编辑
摘要: $(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 阅读(155) 评论(0) 推荐(0) 编辑
摘要: /** * 修改状态栏颜色 * UIStatusBarStyleDefault 默认黑色,在浅色的背景上使用 * UIStatusBarStyleLightContent 亮白,在深色的背景上使用 * UIStatusBarStyleDefault IOS7之后淘汰 * UIStatusBarSty 阅读全文
posted @ 2015-12-15 11:28 偏执Dog 阅读(157) 评论(0) 推荐(0) 编辑
摘要: UILabel *label = [[UILabel alloc] init]; label.backgroundColor = [UIColor blackColor]; [self.view addSubview:label]; label.text = @"这是文字"; label.textC 阅读全文
posted @ 2015-12-11 20:31 偏执Dog 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 1.模型类中定义好属性 2.用AFN请求下来的数据保存到字典中 3.从字典中取出微博字典数组 //微博字典数组 NSArray *restrictArray = responseObject[@"statuses"]; 4.用MJExtension把微博字典数组转成微博模型数组 //微博模型数组 N 阅读全文
posted @ 2015-12-03 16:26 偏执Dog 阅读(433) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页