摘要: /**正则匹配关键字高亮 keyword就是需要高亮的关键字 options:NSRegularExpressionCaseInsensitive 不区分大小写 */ NSMutableAttributedString* newString = [[NSMutableAttributedString 阅读全文
posted @ 2017-11-28 09:39 代号姜姜程序员 阅读(1471) 评论(0) 推荐(0) 编辑
摘要: //按照属性type的值进行排序 self.groupArr = [NSMutableArray array];//分组后的数组 NSArray *typesArray = [self.listArray valueForKey:@"type"];//得到的属性type对应的value数组 ,lis 阅读全文
posted @ 2017-11-20 16:14 代号姜姜程序员 阅读(3187) 评论(0) 推荐(0) 编辑
摘要: 可以根据返回的字典 继续解析 例:model.value = [dic objectForKey@"返回的value值"]; 方法: + (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString { if (jsonString 阅读全文
posted @ 2017-11-06 11:24 代号姜姜程序员 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1.首先导入类库 #import <JavaScriptCore/JavaScriptCore.h> 2.声明属性 @property (nonatomic, strong) JSContext *jsContext; 3.在webviewDidFinshLoad中实现截获JS返回的方法做进一步的本 阅读全文
posted @ 2017-11-06 11:10 代号姜姜程序员 阅读(1042) 评论(0) 推荐(0) 编辑
摘要: 1.UIImageView的属性就可以实现中心裁剪 只需要两句代码 xib也可以找到对应属性直接设置 ImageView.contentMode = UIViewContentModeScaleAspectFill; ImageView.clipsToBounds = YES; 2.SDWebImg 阅读全文
posted @ 2017-11-06 10:32 代号姜姜程序员 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 解决UITableview点击事件与手势的冲突 1.签手势代理 <UIGestureRecognizerDelegate> 2.是tableview点击事件则屏蔽手势 - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer 阅读全文
posted @ 2017-09-27 17:51 代号姜姜程序员 阅读(259) 评论(0) 推荐(0) 编辑
摘要: #pragma mark section不悬停 static CGFloat const sectionHeight = 12.0f;//section的高度值 - (void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat sect 阅读全文
posted @ 2017-09-27 17:34 代号姜姜程序员 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 注册cell常用方法: 设置全局变量static NSString *identifier = @"videoIdentifier"; 1.viewDidLoad注册cell [self.tableView registerNib:[UINib nibWithNibName:@"VideoCell" 阅读全文
posted @ 2017-09-27 17:04 代号姜姜程序员 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-06-07 13:51 代号姜姜程序员 阅读(181) 评论(0) 推荐(0) 编辑
摘要: iOS开发推送功能 在这里整理一下推送的步骤希望对大家有所帮助推送证书,有效期限制一般为一年。当我们证书过期的时候,就需要重新生成证书了 。我从头开始,也就是,你的开发者账号是空空的,什么都没有开始,以免新手小白不明白。 1、登陆 https://developer.apple.com进⼊入开发者中 阅读全文
posted @ 2017-06-07 13:19 代号姜姜程序员 阅读(1152) 评论(0) 推荐(0) 编辑