摘要: JquerySession是一个基于jquery的用来处理session的库,使用它可以简化我们的工作。在使用之前需要引入jquery。 下载JquerySession 添加数据 删除数据 获取数据 清除数据 阅读全文
posted @ 2016-12-30 11:22 低头捡到蛋 阅读(2212) 评论(0) 推荐(0) 编辑
摘要: 一、找到导航栏下的黑线 二、调用函数找到黑线 三、隐藏和显示黑线 阅读全文
posted @ 2016-10-14 10:43 低头捡到蛋 阅读(1623) 评论(0) 推荐(0) 编辑
摘要: 一、隐藏导航栏 二、显示导航栏 阅读全文
posted @ 2016-10-14 10:32 低头捡到蛋 阅读(1986) 评论(0) 推荐(0) 编辑
摘要: -(void)btnClick:(UIButton *)button{ UITableViewCell *cell = (UITableViewCell *)[[button superview] superview]; // 获取cell的indexPath NSIndexPath *indexPath = [self.tableView indexPathForCel... 阅读全文
posted @ 2016-10-08 10:27 低头捡到蛋 阅读(2990) 评论(0) 推荐(0) 编辑
摘要: NSMutableDictionary *params = [NSMutableDictionary dictionary]; params[@"loginName"] = @"abc"; params[@"password"] = @"123456"; 阅读全文
posted @ 2016-09-13 19:08 低头捡到蛋 阅读(170) 评论(0) 推荐(0) 编辑
摘要: NSArray *originalArray = @[@1,@2666661,@12,@11,@0]; //block比较方法,数组中可以是NSInteger,NSString(需要转换) NSComparator finderSort = ^(id string1,id string2){ if ([string1 integerValue] ... 阅读全文
posted @ 2016-09-12 19:44 低头捡到蛋 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 一、添加标记 (标记不能为0) 二、取出控件 阅读全文
posted @ 2016-09-02 09:28 低头捡到蛋 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 一、GET请求方式: 二、POST请求方式: 阅读全文
posted @ 2016-08-16 20:46 低头捡到蛋 阅读(2623) 评论(0) 推荐(0) 编辑
摘要: 一、配置info.plist 以上代码添加在info.plist文件倒数第三行处 (右击info.plist -> Open As ->Source Code),如下图: 如果使用AFNetworking出现以下错误 在AFURLResponseSerialization.m文件中添加 self.a 阅读全文
posted @ 2016-08-16 20:36 低头捡到蛋 阅读(8084) 评论(0) 推荐(0) 编辑
摘要: function GrabImage($url, $filename = '') { if ($url == ''): return false; endif; if ($filename == '') { $ext = strrchr($url, '.'); if ($ext != '.gif' && $ext != '.... 阅读全文
posted @ 2016-08-12 14:57 低头捡到蛋 阅读(144) 评论(0) 推荐(0) 编辑