获取应用程序的象征
UIApplication *app = [UIApplication sharedApplication];
1.设置应用程序图标的提醒数字
app.applicationIconBadgeNumber = 10;
创建通知对象
UIUserNotificationSettings *setting = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge categories:nil];
注册用户通知
[app registerUserNotificationSettings: setting];
2.设置联网提示
app.networkActivityIndicatorVisible = YES;
3.设置状态栏
//在iOS7之后,默认交给控制器管理
//app.statusBarHidden = YES;
在viewController里,实现下面方法
- (Bool)prefersStatusBarHidden{ return YES;}
4.打电话,发短信,打开网页
//URL:资源的唯一标识符
[app openURL:[NSURL URLWithString:@“ http://www.baidu.com”]];