- 浏览: 236826 次
- 性别:
- 来自: 天津
文章分类
最新评论
-
yulanlian:
...
实现在删除数据后,自增列的值连续 -
RonQi:
楼主写的很好,支持原创!
Google Protocol Buffers
iPhone App 现在进入到了iOS4时代,内存问题越来越重要了,以前的iOS都是单任务的,内存还算够用,现在iOS4推出了多任务系统,越来越多的程序占了内存以后,在后台又不释放,使用者也往往会忘记在后台杀掉其他程序的进程,导致现在的程序经常会遇到内存不够用的情况,真不知道这个多任务系统是好是坏丫。
总之,作为一个程序员,有bug就得处理,没办法。。。
接收到内存不够警告很有必要,使用
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
//TO DO:
}
如果内存不够用,这个方法就能触发了。这时候,建议你释放一些必不要的数据以便腾出足够的内存。
好吧,我承认前面都是废话,下面写点有用的, 关于内存警告级别的解释:
There are 4 levels of warnings (0 to 3). These are set from the kernel memory watcher, and can be obtained by the not-so-public function OSMemoryNotificationCurrentLevel().
typedef enum {
OSMemoryNotificationLevelAny = -1,
OSMemoryNotificationLevelNormal = 0,
OSMemoryNotificationLevelWarning = 1,
OSMemoryNotificationLevelUrgent = 2,
OSMemoryNotificationLevelCritical = 3
} OSMemoryNotificationLevel;
How the levels are triggered is not documented. SpringBoard is configured to do the following in each memory level:
1. Warning (not-normal) — Relaunch, or delay auto relaunch of nonessential background apps e.g. Mail.
2. Urgent — Quit all background apps, e.g. Safari and iPod.
3. Critical and beyond — The kernel will take over, probably killing SpringBoard or even reboot.
Killing the active app (jetsam) is not handled by SpringBoard, but launchd.
根据我的理解,2级以前的警告都可以无视,2级的警告老实说,有点危险,但是我个人的体会是,其实也可以凑合了^_^
因为你如果使用了照相机的话,2级警告其实比较常见
发表评论
-
ios 国际化相关
2011-10-08 18:49 1415添加国际化 1. 代码中使用字符串的地方 使用 NS ... -
iPhone开发笔记
2011-09-26 21:52 1064退回输入键盘: - (BOOL) textFie ... -
ios开发基础知识 - 1
2011-09-26 21:51 1089输出 command+shift+r NSLog(@& ... -
ios---超链接的UILabel教程
2011-09-26 21:50 1493超链接的UILabel教程 -
ios开发基础问题总结
2011-09-26 21:49 1246订阅 1,如何进入应用后首 ... -
UILabel用法
2011-09-26 20:45 1783/设置换行 UILabel*label; / ... -
IPhone之UIScrollView [转载]
2011-09-22 15:55 863原文地址:IPhone之UIScrollView作者:飞 ... -
手势识别
2011-09-03 17:19 861注册: UISwipeGestureReco ... -
“碰撞”探测
2011-08-21 14:28 811首先要向大家说明的是,所谓“碰撞”探测没有大家想想 ... -
coco2d地图显示相关类
2011-08-21 07:55 1553摘自:知易教程 Cocos2d-iPhone 实现地图 ... -
Cocos2D 的事件处理机制
2011-08-21 07:21 1564摘自:知易教程 系统当前场景对象包含多个层 ... -
cocos2d游戏开发,常用工具集合
2011-08-20 19:40 802位图字体工具Bitmap Font ToolsBMFon ... -
iPhone OS 的 Touche 事件
2011-08-20 19:34 1307知易教程 基础知识 在开始介绍 iPhone OS ... -
iPad, iPhone, and Aspect Ratio
2011-08-05 11:58 919好,现在处理iphone上 ... -
Retina Display and Cocos2D
2011-08-05 11:57 1299最新版本的cocos2d完全 ... -
网络编程总结
2011-08-04 15:41 797一:确认网络环境3G/WIFI 1. 添加源文件和fra ... -
Cocos2D界面切换方式
2011-08-04 15:37 1602CCTransitionFade, //渐隐 ... -
Protocol协议的用法
2011-08-04 15:30 1221一、说明 两个类进行通讯,用协议就比较方便。 (书 ... -
IOS开源项目和官方例子汇总
2011-08-04 14:22 1814开源项目: 扫描wifi信息:http://code. ... -
cocos2d场景和UIViewController视图的切换
2011-08-04 14:20 1585cocos2d中从场景切换到UIViewController视 ...
相关推荐
iPhone App Design For Entrepreneurs,Find Success on the App Store without Coding,2019年新书,介绍iPhone App开发
目前市面上不乏iPhone App开发的书籍,但要做出成功的产品,需要的绝不仅仅是开发优秀的软件。本书将向你展示完整的开发过程,从下载工具,开发应用,进行测试,通过苹果的审核,到推销和维护你的产品。本书适合...
iphone_app发布到appstore步骤.详细描述了将iphone_app发布到appstore步骤,有截图,是比较详细的文档,希望能给需要的人提供帮助
Anyone with programming experience can learn how to write an iPhone app. But if you want to build a great app, there’s a lot more to it than simple coding: you also need to know how design and ...
IPhone 6/6s IOS 经典app列表,好用的经典,大家不用找来找去啦!
iphone 上的 AppStore
this is sample code for developing iPhone App.
NULL 博文链接:https://bengan.iteye.com/blog/1431683
苹果ios iphone app programming guide
一个最简单的ios app源代码,希望对刚入门的兄弟有帮助
苹果iPhone APP开发教程 iOS教程.zip 1.如何注册成为苹果开发者 10.通用应用程序(非手机app) 12.相机管理 13.定位操作 2.下载IDE 3.Xcode 4.Objective-C 5.创建第一款iPhone应用程序 6.操作和输出口 7.委托...
Foundation iPhone App Development
Elven iPhone App Ui kit
iPhone App Programming Guide
iPhone有自己的特点和气质,因此 iPhone App(应用软件)不同于其他键盘手机甚至Android这种触屏手机。 iphone APP 特点...
iPhone app发布到appstore的步骤 1.要在苹果网站上注册APP ID,以及购买iPhone Develop Program(iDP) 开发者授权,99美元。 2.创建发布程序的证书。 步骤如下: 如果已经购买了开发账号IDP, 登录进去后会看到如下...
iphone app企业官网模板是一款黑色大气的iphone app企业官网模板下载。.rar
iphone web app 开发. rt rt
ios学习资料 iPhone+App开发实战手册,又相关基础可以看看写的很全