摘要: https://github.com/topfunky/hpplehpple读取html文件内容的代码 更新了下拉刷新功能(在iOS代码库中浏览本帖)让技术开发讨论更纯粹!CocoaChina问答荣誉每周、每月龙虎榜!其实我写的不多,也就是汇集一些开源代码,然后实现了一下功能,搜索水区标题,下拉刷新。代码不好看,大家多批评。下拉刷新用到了EGOTableViewPullRefresh ,论坛里面有下载这里用到了一个开源的框架hpple,https://github.com/topfunky/hpple,很轻便,能读取html和xml数据,在用到一点xPath知识就可以了。先下载hpple然后在 阅读全文
posted @ 2013-01-15 18:07 GreyWolf 阅读(379) 评论(0) 推荐(0) 编辑
摘要: xml,json都有大量的库来解析,我们如何解析html呢?TFHpple是一个小型的封装,可以用来解析html,它是对libxml的封装,语法是xpath。今天我看到一个直接用libxml来解析html,参看:http://www.cocoanetics.com/2011/09/taming-html-parsing-with-libxml-1/#comment-3090那张图画得一目了然,很值得收藏。这个文章中的源码不能遍历所有的html,我做了一点修改可以将html遍历打印出来001// NSData data contains the document data002// encodi 阅读全文
posted @ 2013-01-15 17:54 GreyWolf 阅读(281) 评论(0) 推荐(0) 编辑
摘要: http://www.cocoanetics.com/2011/09/taming-html-parsing-with-libxml-1/For the NSAttributedString+HTML Open Source project I chose to implement parsing of HTML with a set of NSScanner category methods. The resulting code is relatively easy to understand but has a couple of annoying drawbacks. You have 阅读全文
posted @ 2013-01-15 17:53 GreyWolf 阅读(274) 评论(0) 推荐(0) 编辑
摘要: NGTabBarController 是一个定制的 TabBarController控件,可置于顶部、底部和左边。NGTabBarController 利用 iOS 5 的ContainmentAPI,但也可以在iOS 4下使用。该控件可完全进行定制、包括颜色、背景、图片等信息。NOUSguide/NGTabBarControllerWatch199Fork34A custom TabBarController implementation for iPhone and iPad —More...Issues#15TabBar background not set when using res 阅读全文
posted @ 2013-01-15 11:36 GreyWolf 阅读(293) 评论(0) 推荐(0) 编辑