How does an app work?
来源:互联网 发布:linux more 查找 编辑:程序博客网 时间:2024/05/21 08:39
On iOS, apps are event-driven, which means that the objects listen for certain events tooccur and then process them. As strange as it may sound, an app spends most of its timedoing... absolutely nothing. It just sits there waiting for something to happen. When theuser taps the screen, the app springs to action for a few milliseconds and then it goes backto sleep again until the next event arrives.
Your part in this scheme is that you write the source code that will be performed whenyour objects receive the messages for such events.
In our app, the button’s Touch Up Inside event is connected to the view controller’sshowAlert action. When the button recognizes it has been tapped it sends theshowAlertmessage to our view controller. InsideshowAlert, the view controller sendsthe show message to theUIAlertView object. Your whole app will be made up of objects thatcommunicate in this fashion.
- How does an app work?
- How does an interest-only loan work?
- How does an eCommerce Websites work?
- How does netstat work
- How does XVCL work?
- How does JNA work?
- How does cas work
- how does wifi work?
- How does google work
- How does browsersync work?
- How does maven work?
- iOS Programming Basic: How Does the Hello World App Work?
- How does garbage collector work?
- How does a computer work?
- how does startup code work
- How ARC does its work?
- How Does Cloudera Manager Work
- HOW DOES A DATABASE WORK
- JDBC基础教程之PreparedStatement
- JDBC基础教程之CallableStatement
- 双重检查加锁机制
- Wireshark图解教程
- shell脚本中使用其他用户执行脚本
- How does an app work?
- Java执行顺序
- Box2D v2.1.0用户手册翻译 - 第02章 Hello Box2D
- JavaScript学习基础(一)
- Wireshark用无线网卡抓包
- poj 1276
- Box2D v2.1.0用户手册翻译 - 第03章 公共模块(Common)
- 如何将Oracle 当前日期加一天、一分钟
- 收藏本网址到网站上