上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页

iOS 9.0 设置状态栏颜色 和隐藏

摘要: - (UIStatusBarStyle)preferredStatusBarStyle { //设置样式 return UIStatusBarStyleLightContent; } - (BOOL)prefersStatusBarHidden { //设置隐藏 return YES; } 阅读全文
posted @ 2016-04-01 21:40 哈利波特大 阅读(313) 评论(0) 推荐(0)

UIPageViewController用法

摘要: 1.实例化控制器 self.pageViewController = [[UIPageViewController alloc]initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll navigationOrientatio 阅读全文
posted @ 2016-03-30 19:15 哈利波特大 阅读(1677) 评论(0) 推荐(0)

UICollectionView

摘要: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. CGFloat itemWidth = (self.view.bou 阅读全文
posted @ 2016-03-23 23:01 哈利波特大 阅读(113) 评论(0) 推荐(0)

iOS 归档宏

摘要: 1.归档的宏 #define OBJC_STRINGIFY(x) @#x #define encodeObject(x) [aCoder encodeObject:x forKey:OBJC_STRINGIFY(x)] #define decodeObject(x) x = [aDecoder de 阅读全文
posted @ 2016-03-23 17:38 哈利波特大 阅读(280) 评论(0) 推荐(0)

iOS MJRefresh 刷新

该文被密码保护。 阅读全文
posted @ 2016-03-23 15:20 哈利波特大 阅读(1) 评论(0) 推荐(0)

UITableView 取得点击的cell

摘要: NSInteger row = [_tableView indexPathForCell:cell].row; // 取得点击的cell SIFilmComment* filmComment = [_comments objectAtIndex:row]; // 赋值 SIUser* user = 阅读全文
posted @ 2016-03-23 14:16 哈利波特大 阅读(291) 评论(0) 推荐(0)

ios SizeClass

摘要: SizeClass本质是对屏幕进行了适配,把宽和高分为了三类1》 compact (紧凑,小)用-表示,2》regular (正常,大)用+表示,3》any (任意,包含 compact、和 regular)用*表示。 阅读全文
posted @ 2016-03-06 23:53 哈利波特大 阅读(197) 评论(0) 推荐(0)

iOSUITableView自动布局 ----动态cell

摘要: 动态设置cell的高度 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { if (_testCell == nil) { _testCell = [Test 阅读全文
posted @ 2016-03-06 22:58 哈利波特大 阅读(495) 评论(0) 推荐(0)

ios XMPP

摘要: 本文转发自:http://www.bkjia.com/IOSjc/965129.html xmpp整理笔记:发送图片信息和声音信息,xmpp图片信息 图片和音频文件发送的基本思路就是: 先将图片转化成二进制文件,然后将二进制文件进行base64编码,编码后成字符串。在即将发送的message内添加一 阅读全文
posted @ 2016-03-06 20:24 哈利波特大 阅读(219) 评论(0) 推荐(0)

ios自动布局实现动画

摘要: 第一步修改约束的值 , 第二步调用 [self.view layoutIfNeeded]; - (IBAction)buttonClick:(UIButton *)sender { self.topViewC.constant += 70; // [self.topView setNeedsUpda 阅读全文
posted @ 2016-03-06 19:49 哈利波特大 阅读(789) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页