Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
升级到 xcode 4.5 后,我收到了一个警告,即弃用了 dismissViewControllerAnimated。我将代码更改为推荐的dismissViewControllerAnimated:completion: 并收到一条警告,提示未找到dismissViewControllerAnimated:completion:。知道为什么吗?
剪切和粘贴错误。
问题是当我将 Modal 替换为 dismissModalViewControllerAnimated:completed: 而不是 dismissViewControllerAnimated:completed: 时,我在调用中留下了 Modal