在ios6 中presentModalViewController 方法已经不使用了,所以出现warning
product ->Build For -> Profiling 编译出现大量的warning。
presentModalViewController:animated: is deprecated :first deprecated in iOS6.0 。
[self presentModalViewController:pNewController animated:YES];
替换为
[self presentViewController:pNewController animated:YES completion:nil];
相对应的
dismissModalViewControllerAnimated :animated: is deprecated :first deprecated in iOS6.0
[self dismissModalViewControllerAnimated:YES];
替换为
[self dismissViewControllerAnimated:YES completion:nil];