ios开发
唯菊与石
这个作者很懒,什么都没留下…
展开
-
iOS开发中tableview中cell图片大小自定义方法
有时候tableview图片尺寸会跟自己想象中的出入很大,这时候只能自定义来进行调整。 //重新设置cell中的图片大小 UIImage *icon = [UIImage imageNamed:@"...@2x.png"]; //UIImage *icon = [UIImage imageNamed:[NSString stringWithFormat:@转载 2015-08-03 14:47:18 · 1257 阅读 · 0 评论 -
iOS开发中tableview中cell分隔线与左右的距离
so easy! tableView.separatorInset = UIEdgeInsetsMake(0, 0, 12, 0);分部为上下左右的距离 tableView.separatorInset = UIEdgeInsetsZero;与两侧距离为0原创 2015-08-03 15:15:14 · 747 阅读 · 0 评论 -
view与其他controller和view之间的引用方法
如果要是view与相应的controller互动(暂且这么叫),那么需要在h文件中@class相应的controller,同时在property或者interface里面进行声明,使用的时候用self.xxxviewcontroller即可。 是不是类与类直接引用也是这样 ???原创 2015-08-05 19:15:20 · 651 阅读 · 0 评论 -
使用presentViewController跳转到上上个页面,实现多层跳转的两种方法。
第一种方法 简单容易实现。 [self.presentingViewController.presentingViewController.presentingViewController dismissViewControllerAnimated:NO completion:nil]; 一定要是no才行。 第2种方法: 转自http://blog.csdn.net/xiaof原创 2015-10-09 21:38:11 · 966 阅读 · 0 评论 -
针对xcode7对https请求的问题。
参考http://www.cnblogs.com/dsxniubility/p/4821184.html 解决了一个大问题。 请求的https网站不能获取数据,又试了几个网站,百度和微信的也不能正常获取,而支付宝和苹果的网站都没有问题。报错信息如下: 2015-09-24 10:41:42.933 www[5866:196531] NSURLSession/NSURLCo转载 2015-09-24 14:25:21 · 2161 阅读 · 0 评论