12 2015 档案

摘要:使用Quartz2D前 先导入QuartzCore.framework //划线 常用拼接路径函数 新建一个起点void CGContextMoveToPoint(CGContextRef c, CGFloat x, CGFloat y) 添加新的线段到某个点void CGContextAddLin 阅读全文
posted @ 2015-12-15 21:01 偏执Dog 阅读(146) 评论(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 阅读(166) 评论(0) 推荐(0)
摘要:/** * 修改状态栏颜色 * UIStatusBarStyleDefault 默认黑色,在浅色的背景上使用 * UIStatusBarStyleLightContent 亮白,在深色的背景上使用 * UIStatusBarStyleDefault IOS7之后淘汰 * UIStatusBarSty 阅读全文
posted @ 2015-12-15 11:28 偏执Dog 阅读(162) 评论(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 阅读(366) 评论(0) 推荐(0)
摘要:1.模型类中定义好属性 2.用AFN请求下来的数据保存到字典中 3.从字典中取出微博字典数组 //微博字典数组 NSArray *restrictArray = responseObject[@"statuses"]; 4.用MJExtension把微博字典数组转成微博模型数组 //微博模型数组 N 阅读全文
posted @ 2015-12-03 16:26 偏执Dog 阅读(450) 评论(0) 推荐(0)
摘要:UIRefreshControl *refresh = [[UIRefreshControl alloc] init]; //这里控制器集成UITableViewController所以是self.tableView [self.tableView addSubview:refresh]; /** 阅读全文
posted @ 2015-12-03 16:00 偏执Dog 阅读(300) 评论(0) 推荐(0)