iPhone开发技巧之私有API(7)— 用UIWebView访问BASIC认证的页面
iPhone开发技巧之私有API(7)--- 用UIWebView访问BASIC认证的页面
比如类似下面的 URL,
1
http://user:password@www.example.com/
需要用户的认证,如果用 UIWebView 访问这样的页面,可以使用下面的[......]
iPhone开发技巧之私有API(6)— 设置UIWebView中的User-Agent
iPhone开发技巧之私有API(6)--- 设置UIWebView中的User-Agent
现在许多网站专门针对iPhone做了专用的页面,比如用Safari访问雅虎看到的是iPhone的页面,可是在自己的程序中用UIWebView,却是一般在PC上表示的页面。
像这样的网站,都是通过[......]
iPhone开发技巧之私有API(5)— UISegmentedControl
iPhone开发技巧之私有API(5)--- UISegmentedControl
直接指定 UISegmentedControl 的 segmentedControlStyle 属性值,可以得到一些非公开的设置。
1 2 3 4
UISegmentedControl *seg[......]
iPhone开发技巧之私有API(4)— UIBarButtonItem
iPhone开发技巧之私有API(4)--- UIBarButtonItem
今天介绍一下 UIBarButtonItem 的特殊用法。
如上所示,UIBarButtonSystemItem 的 100 ~ 110 就是系统提供的一些未公开的标准icon。
iPhone开发技巧之私有API(3)— UIButton
iPhone开发技巧之私有API(3)--- UIButton
如下图所示,指定 100 以上的UIButton的buttonWithType:就可以得到非公开的按钮风格。
- 其中 100 ~ 102 是 UINavigationButton 风格的按钮
iPhone开发技巧之数据篇(1)— 使用正则表达式
iPhone开发技巧之数据篇(1)--- 使用正则表达式
在处理字符串的时候,常常会用到正则表达式,在iphone os上也不例外。使用 RegexKit Framework 就可以了。在这里下载RegexKitLite。
解压 Regex[......]
iPhone开发技巧之私有API(2)— UITableView
iPhone开发技巧之私有API(2)--- UITableView
像下面 UITableView 中实现复数选择的设置,需要用到 Undocumented API。
首先,如下所示,在实现了 UITableViewDelegate 的类中实现下面的方法。
iPhone开发技巧之私有API(1) — 设备相关信息
iPhone开发技巧之私有API(1) --- 设备相关信息
在iPhone开发技巧之环境篇(8)--- 使用非公开的API一章中我们已经学会了怎样得到非公开PAI头文件的方法。这里将手头收集到的各种应用方法做一个总结,希望对您[......]
iPhone开发技巧之网络篇(5)— 使用libcurl连接https服务器
iPhone开发技巧之网络篇(5)--- 使用libcurl连接https服务器
问题
你是否也想让自己的 iPho[......]
iPhone开发技巧之网络篇(4)— 确认网络环境 3G/WIFI
iPhone开发技巧之网络篇(4)--- 确认网络环境 3G/WIFI
开发Web等网络应用程序的时候,需要确认网络环境,连接情况等信息。如果没有处理它们,是不会[......]


