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
xi_lin
V2EX  ›  iDev

setApplicationIconBadgeNumber 与消除通知栏消息的关系

  •  
  •   xi_lin · Sep 22, 2017 · 4587 views
    This topic created in 3291 days ago, the information mentioned may be changed or developed.

    见 https://stackoverflow.com/a/9225972/535374

    UIApplication:setApplicationIconBadgeNumber:这个方法有着诡异的 side effect:

    1. 如果调用前 badge 不为 0,调用时设置为 0,则会清空本 app 的所有通知;

    2. 如果调用前 badge 为 0,调用时再设置为 0,则不会变更本 app 的通知栏显示。

    1 replies  •  2017-09-22 17:31:09 +08:00
    popbones
        1
    popbones  
       Sep 22, 2017 via iPhone
    最近也在做这块,只能说 It's a mess
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2545 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 09:25 · PVG 17:25 · LAX 02:25 · JFK 05:25
    ♥ Do have faith in what you're doing.