摘要: 想去掉哪一行就在那行(if(indexPath.row == 某一行))cell.separatorInset = UIEdgeInsetsMake(0, 0, 0, cell.bounds.size.width - 15); 阅读全文
posted @ 2015-06-26 14:51 Mr.Greg 阅读(1071) 评论(0) 推荐(0) 编辑
摘要: [[UINavigationBar appearance] setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];[[UINavigationBar appearance] setShadowImag... 阅读全文
posted @ 2015-06-26 12:19 Mr.Greg 阅读(556) 评论(2) 推荐(0) 编辑
摘要: 在使用7.0版本进行开发的事后如果没有在xib上清除关联项而是直接手动删除了关联代码会报错:this class is not key value coding-compliant for the key...这个时候手动把关联的项点掉就行了: 阅读全文
posted @ 2015-06-24 10:38 Mr.Greg 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 在iOS8 中, 若使用系统自带的地图, 首先在Plist文件中添加两个字段 :NSLocationAlwaysUsageDescription 和NSLocationWhenInUseUsageDescription 类型均为String类型 其次要注意 :Supported interface ... 阅读全文
posted @ 2015-04-12 13:41 Mr.Greg 阅读(257) 评论(0) 推荐(0) 编辑
摘要: [self.tableView setScrollEnabled:NO]; 阅读全文
posted @ 2015-03-20 19:16 Mr.Greg 阅读(383) 评论(0) 推荐(0) 编辑
摘要: -(void)setExtraCellLineHidden: (UITableView *)tableView{ UIView *view = [UIView new]; view.backgroundColor = [UIColor clearColor]; [tableView... 阅读全文
posted @ 2015-03-20 19:14 Mr.Greg 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 原文:http://blog.csdn.net/l_ch_g/article/details/9399363iphone 4.0以后就开始支持正则表达式的使用了,在ios4.0中正则表达式的使用是使用NSRegularExpression类来调用。下面一个简单的使用正则表达式的一个例子:1.首先新建... 阅读全文
posted @ 2015-03-20 19:04 Mr.Greg 阅读(1064) 评论(0) 推荐(0) 编辑
摘要: 原文 :http://www.cocoachina.com/bbs/read.php?tid=144272&fpage=14Textkit是iOS7新推出的类库,其实是在之前推出的CoreText上的封装,有了这个TextKit,以后不用再拿着CoreText来做累活了,根据苹果的说法,他们开发了两... 阅读全文
posted @ 2015-03-20 17:45 Mr.Greg 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 改变UITableViewCell选中时背景色: cell.selectedBackgroundView=[[[UIImageViewalloc]initWithImage:[UIImageimageNamed:@"cellart.png"]]autorelease]; // 点击背景图片 c... 阅读全文
posted @ 2015-03-20 12:01 Mr.Greg 阅读(926) 评论(0) 推荐(0) 编辑
摘要: 这个东西写在重用池里面NSIndexPath *first = [NSIndexPath indexPathForRow:0 inSection:0];[self.tableView selectRowAtIndexPath:first animated:YES scrollPosition:UIT... 阅读全文
posted @ 2015-03-19 21:03 Mr.Greg 阅读(587) 评论(0) 推荐(0) 编辑