升级到xcode 4.5后,我收到一条警告,即不推荐使用dismissViewControllerAnimated。我将代码更改为推荐的dismissViewControllerAnimated:completion:并且我收到一条警告,表示dismissViewControllerAnimated:completion:未找到。知道为什么吗?
答案 0 :(得分:0)
剪切和粘贴错误。
问题是当我用dismissModalViewControllerAnimated替换它时,我在调用中离开了Modal:completed:而不是dismissViewControllerAnimated:completed: