03 2016 档案

摘要:NSMutableDictionary *dic = [[NSMutableDictionary alloc] init]; [dic setValue:@"标签内容" forKey:@"content"]; [dic setValue:@257 forKey:@"x"]; [dic setValu 阅读全文
posted @ 2016-03-31 14:19 徒步阳光855 阅读(142) 评论(0) 推荐(0)
摘要:// 信号栏 设置 [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; [self setNeedsStatusBarAppearanceUpdate]; self.view.back 阅读全文
posted @ 2016-03-29 16:15 徒步阳光855 阅读(185) 评论(0) 推荐(0)
摘要:UILabel *textLabel = [[UILabel alloc] init]; // 红色是 label fram (VFL) [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-1 阅读全文
posted @ 2016-03-29 15:57 徒步阳光855 阅读(140) 评论(0) 推荐(0)
摘要:UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init]; CGFloat itemWidth = (kScreenWidth - 30) / 2; CGFloat itemHeight = 260; 阅读全文
posted @ 2016-03-25 15:34 徒步阳光855 阅读(112) 评论(0) 推荐(0)
摘要:我们讲讲最后的两条新的 VFL 语句: H:[view]-[view2(>=50)] 从开始的 H: 我们可以判断出这是水平方向的布局,换句话说就是设置视图的 x 和 width。接着的 [view],说明后面的所有视图都是在 view 的右侧;接着是 -,说明后一个视图和 view之间有一个标准距 阅读全文
posted @ 2016-03-10 17:31 徒步阳光855 阅读(187) 评论(0) 推荐(0)
摘要:图片 写入沙盒 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSInteger photoNumber = [SingleClass sharedG 阅读全文
posted @ 2016-03-01 16:11 徒步阳光855 阅读(208) 评论(0) 推荐(0)