摘要: 下拉刷新:EGOTableViewPullRefresh 网络应用:ASIHTTPRequest 等待特效:MBProgressHUD JSON解释:json-framework --------------------- 纵向表格: https://github.com/danielctull/DTGridView/ http://www.cocoachina.com/bbs/simple/?t47282.html 扫描wifi信息: http://code.google.com/p/uwecaugmentedrealityproject/ http://code.google.com/p/ 阅读全文
posted @ 2014-01-13 19:48 徐坤很无聊 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 我的下拉刷新使用了系统在tableviewcontroller中自带的属性.使用了UIRefreshController这个类.如下为代码,其中RootViewControl继承自UITableViewController.以下为代码.非常简单的一个示例以下为.m中代码#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (id)initWithStyle:(UITableViewStyle)style{ self = [su 阅读全文
posted @ 2014-01-13 18:03 徐坤很无聊 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 类似于微博、博客这样的应用,通常都需要数据分页。而数据分页常用的做法是在UITableView控件上追加新的数据。从而有效提高用户体验。接下来将介绍其实现过程。一、实现思路基本上就是数据源里先只放10条, 点击最后一个cell时, 添加更多的数据到数据源中。1)取得数据1234567891011- (void)viewDidLoad{[super viewDidLoad];[self _infoNavTabBar];num=15;//表格数据[self loadData];}loadData方法用于拉取API数据1234567891011121314151617181920212223//下载 阅读全文
posted @ 2014-01-13 16:54 徐坤很无聊 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 原理:先数据放到一个table中,先显示10条,table底部有一察看更多选项,点击察看更多查看解析的剩余数据。基本上就是数据源里先只放10条, 点击最后一个cell时, 添加更多的数据到数据源中. 比如:数据源是个array:NSMutableArray *items;ViewController的这个方法返回数据条数: +1是为了显示"加载更多"的那个cell- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { int count = [ite 阅读全文
posted @ 2014-01-13 11:47 徐坤很无聊 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 使用Block遍历数组和字典数组:NSArray* aa = @[@"123",@123,@YES];[aa enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { NSLog(@"%d,%@",idx,obj); }];字典:NSDictionary* dic = @{@"zc":@100,@"yy":@120}; [dic enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL 阅读全文
posted @ 2014-01-13 09:43 徐坤很无聊 阅读(157) 评论(0) 推荐(0) 编辑