翻译:31 Days of iPhone SDK Apps - 第01天
来源:互联网 发布:淘宝直通车宝贝在哪里 编辑:程序博客网 时间:2024/04/29 09:32
Just like any good programmers we decided to bite this off the same day Apple lifted the NDA even faced with the time constraints. Needless to say the first app will be VERY simple, however it does demonstrate some stuff I stumbled on the first time I started coding against the iPhone SDK.
The app is "Minutes to Midnight" it is simply a countdown of the time left I have to finish this app before tomorrow :). This idea came from my friend Chris Craft who committed (and completed!) 30 day of Windows Mobile development.
To get started fire up xCode and
From the "New Project" dialog
This project already has a UIView we that will be the main view of or application. I imagine a count down looking like a plastic alarm clock which of cource counts backwards to zero. Let make our text have a red LED look and our back ground black.
First lets open our UIView interface and give it a black background
Now lets add a UILabel that will be the display for our countdown.
We need to reference the label in our code so we can update the label
Now we need to update our class file
Now we need to wire up the Label in Interface Builder to the UILabel in the class file
Return to xCode and rebuild the project
Okay getting closer, we need to do the following to finish up.
Start Timer
-(void)updateLabel {
}
right before the line @end
Update the label
Now just build and run in the simulator.
- 翻译:31 Days of iPhone SDK Apps - 第01天
- iphone Apps of open source
- Examples of well coded cocoa iPhone apps on github
- Developing iPhone Apps with iOS4 SDK, Deploying to 3.x Devices : Base SDK and iPhone OS Deployment T
- 2001.11-day of days
- Conclusion of these days
- 1 OF 100DAYS
- 2 OF 100DAYS
- 3 OF 100DAYS
- 4 OF 100DAYS
- 5 OF 100DAYS
- 6 OF 100DAYS
- 7 OF 100DAYS
- 8 OF 100DAYS
- 9 OF 100DAYS
- 10 OF 100DAYS
- 11 OF 100DAYS
- 12 OF 100DAYS
- 电子学习电子设计竞赛必会元件清单
- matlab web server安装配置过程
- 公交车路线查询系统后台数据库设计—路线查询
- 马化腾关于产品设计与用户体验的培训(1)
- [转] 关于ASP.NET页面打印技术的总结
- 翻译:31 Days of iPhone SDK Apps - 第01天
- 程序设计的定义
- 议程序
- 马化腾关于产品设计与用户体验的培训(2)
- cin cout常用函数
- 建立arm-linux-gcc交叉编译环境
- August 17th Monday
- 【C#】Windows Mobile 通过代码设置GPRS连接,设置网络与接入点
- tar,gunzip,gzip,unzip和zgrep 命令的区别