会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
钰郡马
ios10 使用刷新会往下偏移20个单位问题
摘要: 解决方案--纯代码:self.automaticallyAdjustsScrollViewInsets = NO xib--: 右侧边栏中找到“ Adjust Scroll View insets”这个属性 不要勾选 不要勾选 不要勾选
阅读全文
posted @ 2016-11-01 09:57 钰郡马
阅读(91)
评论(0)
推荐(0)
编辑
IOS 网络https 配置
摘要: <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
阅读全文
posted @ 2016-05-30 12:36 钰郡马
阅读(74)
评论(0)
推荐(0)
编辑
图片的部分拉伸
摘要: - (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight: (NSInteger)topCapHeight 这个函数是UIImage的一个实例函数,它的功能是创建一个内容可拉伸,而边角不拉伸的
阅读全文
posted @ 2016-05-16 10:24 钰郡马
阅读(320)
评论(0)
推荐(0)
编辑
scrollView 在viewdidload 设置了contentsize之后无法滚动解决方法
摘要: 因为在加载视图的时候根据xib的大小修改了contentsize 所以要在以下方法设置,即在视图已经出现的时候再设置一次 -(void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; contentScroll.conte
阅读全文
posted @ 2016-05-15 15:41 钰郡马
阅读(219)
评论(0)
推荐(0)
编辑
关于时间暂停与开始
摘要: [timer setFireDate:[NSDate distantPast]]; 这是开始(距离过去) [timer setFireDate:[NSDate distantFuture]]; -- 这是结束
阅读全文
posted @ 2016-05-13 15:45 钰郡马
阅读(90)
评论(0)
推荐(0)
编辑
怎么在模态推出的controller 上添加一个navigation
摘要: SetViewController * vc = [[SetViewController alloc] init]; navigation = [[UINavigationController alloc] initWithRootViewController:vc]; // [self.navig
阅读全文
posted @ 2016-05-12 18:08 钰郡马
阅读(131)
评论(0)
推荐(0)
编辑
模态推出方式
摘要: 2、Modal Presentation Styles(弹出风格) 通过设置presenting VC的modalPresentationStyle属性,我们可以设置弹出View Controller时的风格,有以下四种风格,其定义如下: 复制代码代码如下: typedef enum { UIMod
阅读全文
posted @ 2016-05-12 17:35 钰郡马
阅读(92)
评论(0)
推荐(0)
编辑
给 编辑文本添加改变事件TextFiled
摘要: [self.searchTextFiled addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];}- (void)textFieldDidChange...
阅读全文
posted @ 2016-01-13 16:14 钰郡马
阅读(259)
评论(0)
推荐(0)
编辑
导航
博客园
首页
联系
订阅
管理
公告