能够在ios桌面的程序icon右上角显示数字(badge number)的方法
在ViewController中的viewDidLoad方法中添加如下代码即可
- (void)viewDidLoad { [super viewDidLoad]; [UIApplication sharedApplication].applicationIconBadgeNumber = 2; }
Powered by: 博客园 Copyright © 2024 nugao Powered by .NET 9.0 on Kubernetes