小编Cla*_*sen的帖子

不推荐使用UIAlertView:iOS 9.0中不推荐使用

我在Xcode上不断收到错误,我该如何帮助呢?

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
}
Run Code Online (Sandbox Code Playgroud)

在这里,我不赞成使用'presentModalViewController:animated'。在IOS 6.0中首次弃用。

-(IBAction)SetMap:(id)sender {
Run Code Online (Sandbox Code Playgroud)

在这里,我不赞成使用'UIAlertView':在iOS 9.0中不赞成使用-UIAlertView不赞成使用。改用UIAlertController和UIAlertControllerStyleAlert的preferredStyle。

}
Run Code Online (Sandbox Code Playgroud)

在花括号之后,我不赞成使用“ dismissModalViewControllerAnimated:”:在iOS 6.0中首先不赞成使用。

- (IBAction)Aktiekurs:(id)sender {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.euroinvestor.dk/boerser/nasdaq-omx-copenhagen/novozymes-b-a-s/239698"]];
}
Run Code Online (Sandbox Code Playgroud)

最后,我不赞成使用“ dismissModalViewControllerAnimated:”:在iOS 6.0中第一次不赞成使用。

xcode uialertview viewcontroller ios

1
推荐指数
1
解决办法
1270
查看次数

标签 统计

ios ×1

uialertview ×1

viewcontroller ×1

xcode ×1