摘要: 添加WebView的代理方法,在webViewDidFinishLoad方法里面调用 stringByEvaluatingJavaScriptFromString方法得到webView的高度。[使用 stringByEvaluatingJavaScriptFromString方法,需要等UIWebView中的页面加载完成之后去调用]#pragma mark ---- 数据加载完调用webView代理方法- (void)webViewDidFinishLoad:(UIWebView *)aWebView { [UIApplication sharedApplication].network... 阅读全文
posted @ 2014-04-03 00:16 andy_shen 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 有时候只需要刷新某行的cell的数据,完全没必要调用[tableView reloadData]刷新整个列表的数据,调用以下方法即可。NSIndexPath *indexPath_1=[NSIndexPath indexPathForRow:1 inSection:0]; NSArray *indexArray=[NSArray arrayWithObject:indexPath_1]; [myTableView reloadRowsAtIndexPaths:indexArray withRowAnimation:UITableViewRowAnimationAutomat... 阅读全文
posted @ 2014-04-03 00:13 andy_shen 阅读(284) 评论(0) 推荐(0) 编辑