iOS Dev (2) HelloWorld with .xib
来源:互联网 发布:怎么设置域名跳转 编辑:程序博客网 时间:2024/05/22 07:42
iOS Dev (2) HelloWorld with .xib
- 作者:爱欧艾斯鸟
创建工程
- Cmd + Shift + N
- 选择 Single View Application;
填写options
- Class Prefix可以填HelloWorld
- Product Name也可以填HelloWorld
- company.identifier填com.xxx
- Devices选iPhone
- Use Storyboards、User Automatic Reference Counting、Include Unit Tests不选
看下项目结构
- HelloWorldAppDelegate是代理类
- HelloWorldViewController是视图控制器类
- Supporting Files一般用于存放资源文件
- InfoPlist 应用程序国际化会用到,包含多国语言的翻译
- main.m 是入口函数
- HelloWorld-Info.plist 包含工程信息的属性列表
- Frameworks 引入的系统框架,默认会引入:
- UIKit.framework: UI组件库
- Foundation.framework: 基础类库
- CoreGraphics.framework: 2D绘图类库
HelloWorld
从右下角的拖动一个 Label 组件到 HelloWorldViewController.xib 上,写上 Hello World。
Run it!
(完)
- iOS Dev (2) HelloWorld with .xib
- iOS Dev (3) HelloWorld with codes
- IOS Dev Intro - AVCaptureSession with multiple previews
- iOS: 2 Xib's with the same File's Owner for 1 IBOutlet object?
- ios xib文件加载xib
- iOS 简单基础知识点(2)-xib
- MainWindow.xib absence in Xcode 4.2 beta 4 with iOS 5 SDK
- MainWindow.xib absence in Xcode 4.2 beta 4 with iOS 5 SDK
- IOS HelloWorld
- IOS helloworld
- IOS类关联XIB
- iOS XIB开发技巧
- IOS UITableView 使用xib
- iOS xib 重设Frame
- the xib of iOS
- iOS添加xib
- iOS 加载xib文件
- ios xib文件使用
- 编程方法
- 《启示录:打造用户喜爱的产品》读后总结(一)
- 一位ACMer过来人的心得
- struts文件上传
- HNCU1100:彩票
- iOS Dev (2) HelloWorld with .xib
- Hibernate3.x调用存储过程
- WordPress主题 /交友/社交/婚恋/约会 在线约会 婚恋交友主题面世 会员机制整合国内支付平台
- poj 1789
- 通过CheckBox的状态决定广播接受者是否接受广播
- Lua获取网络时间
- 反思
- Java练习题
- 轻量级前端MVVM框架avalon:整体架构