当app重新打开或切换到前台时,在app委托applicationWillEnterForeground:方法里实现
清除泡泡计数
- (void)applicationWillEnterForeground:(UIApplication *)application { // clear badage [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]; }
在app被激活时,设置泡泡计数
- (void)applicationDidBecomeActive:(UIApplication *)application {
NSInteger testBadgeNum = 10;
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:testBadgeNum];
}
再议mysql 主从配置
CentOS 如何将.deb 文件 转换.rpm
scp命令[转]
安装samba服务器
xdebug影响php运行速度
PHP中VC6、VC9、TS、NTS版本的区别与用法详解
将Centos的yum源更换为国内的阿里云源
centos网卡错误Device eth0 does not seem to be present
虚拟机VirtualBox中centos6.5网络设置