05 2016 档案

IOS 网络https 配置
摘要:<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> 阅读全文

posted @ 2016-05-30 12:36 钰郡马 阅读(76) 评论(0) 推荐(0)

图片的部分拉伸
摘要:- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight: (NSInteger)topCapHeight 这个函数是UIImage的一个实例函数,它的功能是创建一个内容可拉伸,而边角不拉伸的 阅读全文

posted @ 2016-05-16 10:24 钰郡马 阅读(328) 评论(0) 推荐(0)

scrollView 在viewdidload 设置了contentsize之后无法滚动解决方法
摘要:因为在加载视图的时候根据xib的大小修改了contentsize 所以要在以下方法设置,即在视图已经出现的时候再设置一次 -(void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; contentScroll.conte 阅读全文

posted @ 2016-05-15 15:41 钰郡马 阅读(228) 评论(0) 推荐(0)

关于时间暂停与开始
摘要:[timer setFireDate:[NSDate distantPast]]; 这是开始(距离过去) [timer setFireDate:[NSDate distantFuture]]; -- 这是结束 阅读全文

posted @ 2016-05-13 15:45 钰郡马 阅读(124) 评论(0) 推荐(0)

怎么在模态推出的controller 上添加一个navigation
摘要:SetViewController * vc = [[SetViewController alloc] init]; navigation = [[UINavigationController alloc] initWithRootViewController:vc]; // [self.navig 阅读全文

posted @ 2016-05-12 18:08 钰郡马 阅读(137) 评论(0) 推荐(0)

模态推出方式
摘要:2、Modal Presentation Styles(弹出风格) 通过设置presenting VC的modalPresentationStyle属性,我们可以设置弹出View Controller时的风格,有以下四种风格,其定义如下: 复制代码代码如下: typedef enum { UIMod 阅读全文

posted @ 2016-05-12 17:35 钰郡马 阅读(105) 评论(0) 推荐(0)