Message: Connection refused
私有API | YIFEIYANG

YIFEIYANG 易飞扬的博客

5,690 views
18六/100

iPhone开发技巧之私有API(8)— UIApplication

iPhone开发技巧之私有API(8)--- UIApplication

如果我们继承了UIApplication,就可以捕捉到应用程序发生的各种事件。首先,像下面这样实现你的 main 方法。

1
2
3
4
5
6

[......]

Read more

4,915 views
16六/101

iPhone开发技巧之私有API(7)— 用UIWebView访问BASIC认证的页面

iPhone开发技巧之私有API(7)--- 用UIWebView访问BASIC认证的页面

比如类似下面的 URL,

1
http://user:password@www.example.com/

需要用户的认证,如果用 UIWebView 访问这样的页面,可以使用下面的[......]

Read more

7,504 views
14六/100

iPhone开发技巧之私有API(6)— 设置UIWebView中的User-Agent

iPhone开发技巧之私有API(6)--- 设置UIWebView中的User-Agent

现在许多网站专门针对iPhone做了专用的页面,比如用Safari访问雅虎看到的是iPhone的页面,可是在自己的程序中用UIWebView,却是一般在PC上表示的页面。

像这样的网站,都是通过[......]

Read more

5,421 views
11六/100

iPhone开发技巧之私有API(5)— UISegmentedControl

iPhone开发技巧之私有API(5)--- UISegmentedControl

直接指定 UISegmentedControl 的 segmentedControlStyle 属性值,可以得到一些非公开的设置。

1
2
3
4
UISegmentedControl *seg[......]

Read more

7,149 views
9六/100

iPhone开发技巧之私有API(4)— UIBarButtonItem

iPhone开发技巧之私有API(4)--- UIBarButtonItem

今天介绍一下 UIBarButtonItem 的特殊用法。

UIBarButtonItem

如上所示,UIBarButtonSystemItem 的 100 ~ 110 就是系统提供的一些未公开的标准icon。

[......]

Read more

9,820 views
7六/100

iPhone开发技巧之私有API(3)— UIButton

iPhone开发技巧之私有API(3)--- UIButton

如下图所示,指定 100 以上的UIButton的buttonWithType:就可以得到非公开的按钮风格。

其中 100 ~ 102 是 UINavigationButton 风格的按钮

Read more

8,087 views
1六/100

iPhone开发技巧之私有API(2)— UITableView

iPhone开发技巧之私有API(2)--- UITableView

像下面 UITableView 中实现复数选择的设置,需要用到 Undocumented API。

首先,如下所示,在实现了 UITableViewDelegate 的类中实现下面的方法。

[......]

Read more

11,206 views
28五/100

iPhone开发技巧之私有API(1) — 设备相关信息

iPhone开发技巧之私有API(1) --- 设备相关信息

iPhone开发技巧之环境篇(8)--- 使用非公开的API一章中我们已经学会了怎样得到非公开PAI头文件的方法。这里将手头收集到的各种应用方法做一个总结,希望对您[......]

Read more