惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Spread Privacy
Spread Privacy
H
Hacker News: Front Page
PCI Perspectives
PCI Perspectives
Webroot Blog
Webroot Blog
罗磊的独立博客
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
Last Week in AI
Last Week in AI
美团技术团队
Help Net Security
Help Net Security
The Hacker News
The Hacker News
C
Cisco Blogs
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
The Register - Security
The Register - Security
IT之家
IT之家
WordPress大学
WordPress大学
Jina AI
Jina AI
Recent Commits to openclaw:main
Recent Commits to openclaw:main
H
Help Net Security
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
NISL@THU
NISL@THU
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
Scott Helme
Scott Helme
V
Vulnerabilities – Threatpost
B
Blog
T
Tenable Blog
博客园 - 三生石上(FineUI控件)
T
The Exploit Database - CXSecurity.com
S
Security Affairs
小众软件
小众软件
Hacker News: Ask HN
Hacker News: Ask HN
Security Latest
Security Latest
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
W
WeLiveSecurity
A
Arctic Wolf
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence

博客园 - hai

会移动的文字(Marquee)学习 How To Share The Internet Connection Between Mac and PC Mac OSX 下配置 Google Android 开发环境 Mac OSX Eclipse3.6下安装erlide搭建erlang集成开发环境 Installing Erlang on Mac OS X 浏览器解析 XML DOM How to set the JAVA_HOME variable in Mac OS X – Snow Leopard code sign error doesn't match any valid certificate private key pair in the default keych 错误的解决办法 CSS的跨浏览器代码准则 Google Maps API详解--02 Google Earth API 讲解--02 Google Maps API 详解--01 Network Programming Using Properties And Synthesize In Objective-C 2.0 For Getters And Setters Tutorial: Networking and Bonjour on iPhone 5个必看的cocos2d 开源游戏 有机会都学习下 Google Earth API 讲解--04 Google Earth API 讲解--05 浏览器获取地理位置
iPhone开发技巧之工具篇(1)— 将XIB文件转换为Objective-C源程序
hai · 2010-07-20 · via 博客园 - hai

通常,考虑到程序的效率时,才将XIB直接转换为源代码文件。但是这样一来,通过Interface Builder设定的实例变量与行为方法的接续也没有了,需要从新手写。但是,该工具的源代码是公开的,稍加修饰,就能完成大部分工作。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
UIBarButtonItem *view39 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
view39.frame = CGRectMake(0.0, 0.0, 0.0, 0.0);
view39.enabled = YES;
view39.style = UIBarButtonItemStylePlain;
view39.tag = 0;
view39.width = 0.000;

UIBarButtonItem *view64 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:nil action:nil];
view64.frame = CGRectMake(0.0, 0.0, 0.0, 0.0);
view64.enabled = YES;
view64.style = UIBarButtonItemStylePlain;
view64.tag = 0;
view64.width = 0.000;

UIBarButtonItem *view57 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
view57.frame = CGRectMake(0.0, 0.0, 0.0, 0.0);
view57.enabled = YES;
view57.style = UIBarButtonItemStylePlain;
view57.tag = 0;
view57.width = 0.000;

UIBarButtonItem *view33 = [[UIBarButtonItem alloc] initWithTitle:(null) style:UIBarButtonItemStylePlain target:nil action:nil];
view33.frame = CGRectMake(0.0, 0.0, 0.0, 0.0);
view33.enabled = YES;
view33.image = nil;
view33.style = UIBarButtonItemStylePlain;
view33.tag = 0;
view33.width = 0.000;

UIBarButtonItem *view66 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
view66.frame = CGRectMake(0.0, 0.0, 0.0, 0.0);
view66.enabled = YES;
view66.style = UIBarButtonItemStylePlain;
view66.tag = 0;
view66.width = 0.000;

UIWebView *view31 = [[UIWebView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 460.0)];
view31.frame = CGRectMake(0.0, 0.0, 320.0, 460.0);
view31.alpha = 1.000;
view31.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
view31.backgroundColor = [UIColor colorWithWhite:1.000 alpha:1.000];
view31.clearsContextBeforeDrawing = YES;
view31.clipsToBounds = YES;
view31.contentMode = UIViewContentModeScaleToFill;
view31.detectsPhoneNumbers = NO;
view31.hidden = NO;
view31.multipleTouchEnabled = YES;
view31.opaque = YES;
view31.scalesPageToFit = YES;
view31.tag = 0;
view31.userInteractionEnabled = YES;

UIBarButtonItem *view56 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemStop target:nil action:nil];
view56.frame = CGRectMake(0.0, 0.0, 0.0, 0.0);
view56.enabled = YES;
view56.style = UIBarButtonItemStylePlain;
view56.tag = 0;
view56.width = 0.000;

UIBarButtonItem *view48 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
view48.frame = CGRectMake(0.0, 0.0, 0.0, 0.0);
view48.enabled = YES;
view48.style = UIBarButtonItemStylePlain;
view48.tag = 0;
view48.width = 0.000;

UIToolbar *view32 = [[UIToolbar alloc] initWithFrame:CGRectMake(0.0, 416.0, 320.0, 44.0)];
view32.frame = CGRectMake(0.0, 416.0, 320.0, 44.0);
view32.alpha = 1.000;
view32.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin;
view32.barStyle = UIBarStyleBlackTranslucent;
view32.clearsContextBeforeDrawing = NO;
view32.clipsToBounds = NO;
view32.contentMode = UIViewContentModeScaleToFill;
view32.hidden = NO;
view32.multipleTouchEnabled = NO;
view32.opaque = NO;
view32.tag = 0;
view32.userInteractionEnabled = YES;

UIBarButtonItem *view34 = [[UIBarButtonItem alloc] initWithTitle:(null) style:UIBarButtonItemStylePlain target:nil action:nil];
view34.frame = CGRectMake(0.0, 0.0, 0.0, 0.0);
view34.enabled = YES;
view34.image = nil;
view34.style = UIBarButtonItemStylePlain;
view34.tag = 0;
view34.width = 0.000;

UIBarButtonItem *view36 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
view36.frame = CGRectMake(0.0, 0.0, 0.0, 0.0);
view36.enabled = YES;
view36.style = UIBarButtonItemStylePlain;
view36.tag = 0;
view36.width = 0.000;

UIView *view27 = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 460.0)];
view27.frame = CGRectMake(0.0, 0.0, 320.0, 460.0);
view27.alpha = 1.000;
view27.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleBottomMargin;
view27.backgroundColor = [UIColor colorWithWhite:1.000 alpha:1.000];
view27.clearsContextBeforeDrawing = NO;
view27.clipsToBounds = NO;
view27.contentMode = UIViewContentModeScaleToFill;
view27.hidden = NO;
view27.multipleTouchEnabled = NO;
view27.opaque = YES;
view27.tag = 0;
view27.userInteractionEnabled = YES;

UIBarButtonItem *view38 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
view38.frame = CGRectMake(0.0, 0.0, 0.0, 0.0);
view38.enabled = YES;
view38.style = UIBarButtonItemStylePlain;
view38.tag = 0;
view38.width = 0.000;

UIBarButtonItem *view35 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:nil action:nil];
view35.frame = CGRectMake(0.0, 0.0, 0.0, 0.0);
view35.enabled = YES;
view35.style = UIBarButtonItemStylePlain;
view35.tag = 0;
view35.width = 0.000;

[view27 addSubview:view31];
[view32 addSubview:view33];
[view32 addSubview:view34];
[view32 addSubview:view36];
[view32 addSubview:view38];
[view32 addSubview:view39];
[view32 addSubview:view48];
[view32 addSubview:view57];
[view32 addSubview:view35];
[view32 addSubview:view56];
[view32 addSubview:view64];
[view32 addSubview:view66];
[view27 addSubview:view32];