Ojective C 中编写的ios程序,强制用户在按下home键的时候,退出应用程序
2012-01-04 14:20
465 查看
On iOS 4, multitasking is enabled in Xcode projects by default. This prevents the
file and check the checkbox. If you do want to support it, place any code in the
在IOS4中,Xcode项目的缺省属性是 多任务支持。如果你不想支持多任务,那么就在 MyAppName-Info.plist 文件中放置 Application does not run in background 属性,并且设置成YES。
applicationWillTerminatemethod from being called. If you do not want to support multitasking, place
UIApplicationExitsOnSuspendin your MyAppName-Info.plist
file and check the checkbox. If you do want to support it, place any code in the
applicationDidEnterBackgrounddelegate method that you want to execute before the application enters an inactive state.
在IOS4中,Xcode项目的缺省属性是 多任务支持。如果你不想支持多任务,那么就在 MyAppName-Info.plist 文件中放置 Application does not run in background 属性,并且设置成YES。
相关文章推荐
- ios用户程序设置 Settings应用程序
- 编写一个单文档界面应用程序,该程序可以测试在鼠标左键按下时鼠标光标的位置是否处在某规定的矩形框内,如果不在该矩形内则计算机的扬声器会发出“叮”的声音,反之则会在用户区显示光标的位置。
- 当程序用ado的jet4.0方式连接的时候,对于设有access数据库密码的mdb的访问居然报错“无法启动应用程序,工作组信息文件丢失,或是已被其他用户已独占方式打开”,而用odbc方式不报错,小阴沟里翻船,郁闷中然后查文档解决之
- 同时启动了多个word的exe,word退出的时候,会报警告“此文件正由另一个应用程序或用户使用” normal.dot
- 编写一个单文档应用程序,程序启动后在用户区显示一个方形,当用鼠标左键单击用户区后,该方形会变成圆形,如果再单击则又变回方形
- 编写代码实现,模拟用户登录情景,并且只能登录三次。 只允许输入三次密码,如果密码正确则提示登录成,如果三次均输入错误,则退出程序。
- lesson 9:编写一个应用程序,用户分别从两个文本框输入学术的姓名和分数,程序按成绩排序将这些学生的姓名和分数显示在一个文本区中。
- 当程序用ado的jet4.0方式连接的时候,对于设有access数据库密码的mdb的访问居然报错“无法启动应用程序,工作组信息文件丢失,或是已被其他用户已独占方式打开”,而用odbc方式不报错,小阴沟里翻船,郁闷中然后查文档解决之
- 编写程序强制用户通过SSL访问网站
- iOS应用程序按Home键退出后,怎么设置打开程序时重新开始
- 编写一个应用程序,用户分别从两个文本框输入学术的姓名和分数,程序按成绩排序将这些学生的姓名和分数显示在一个文本区中。
- iOS程序退出的时候不执行dealloc函数的疑惑
- 黑马程序员之C#编程基础学习笔记:不断要求用户输入一个数字,然后打印这个数字的二倍,当用户输入q的时候程序退出。
- 编写一个单文档界面的应用程序,程序启动后在用户区显示一个圆,用鼠标可以拖动这个圆。
- 8.不断 要求用户输入一个数字,然后打印这个数字的二倍,当用户输入q的时候程序退出(return)
- 编写一个应用程序,用户分别从两个文本框输入学术的姓名和分数,程序按成绩排序将这些学生的姓名和分数显示在一个文本区中
- 用户按下home键时如何退出程序而不是在后台挂起
- 编写程序强制用户通过SSL访问网站
- 编写一个应用程序,用户分别从两个文本框输入学术的姓名和分数,程序按成绩排序将这些学生的姓名和分数显示在一个文本区中。
- iOS代码强制退出程序