iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
vagase
V2EX  ›  iDev

如何能够让App支持后台释放Cache?

  •  
  •   vagase · Apr 18, 2012 · 4897 views
    This topic created in 5273 days ago, the information mentioned may be changed or developed.
    最近通过Instruments跟踪App的内存使用情况,发现当系统内存不够用的时候,并不是直接KillApp,而是先尝试去释放后台程序的Cache,直到实在不能释放的时候才“被迫无奈”杀害App。

    因为App是在后台,显然不是相应的didReveiveMemoryWarning,那么怎么才能让App即使在后台情况下Cache仍然可以被清理呢?
    2 replies  •  1970-01-01 08:00:00 +08:00
    ultragtx
        1
    ultragtx  
       Apr 18, 2012
    – applicationDidReceiveMemoryWarning: 这个应该能收到吧
    ultragtx
        2
    ultragtx  
       Apr 18, 2012
    呃 我指的是多任务(voip/定位)那种的后台, 貌似你的app在后台没有工作,那样就收不到了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2907 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 03:15 · PVG 11:15 · LAX 20:15 · JFK 23:15
    ♥ Do have faith in what you're doing.