xcode6 - Xcode 6 重构 : Can only refactor C and Objective C code

标签 xcode6

我在尝试重命名数组时遇到上述错误。有没有其他办法?试试这个

Right click on variable -> Refactor -> Rename 

我确定必须有另一种方式?

最佳答案

如果您想重命名方法或函数中的局部变量,并且只想重命名该函数中出现的所有事件,请尝试以下操作...

单击变量并将鼠标停留在那里片刻.... 向下箭头将出现在变量名称的右侧。单击该向下箭头并选择“Edit All In Scope”

Once you click on the variable, notice the small down arrow to the right of it

Click on Edit All in Scope

关于xcode6 - Xcode 6 重构 : Can only refactor C and Objective C code,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24725416/

相关文章:

swift - 在 Storyboard中创建继承属性的导出

ios - 搜索DisplayController 到detailedViewController

ios - 卡在人像模式

ios - xcode 6 应用程序提交失败,出现 iTunes 商店操作问题

ios - 无法使用适用于 iOS 的 Google Analytics(分析)

xcode6 - 在 XCode 中删除未卸载(灰色)约束的方法

ios - 无法从自定义动态框架访问类(Swift)

ios - xcode 6.1 启动屏幕启动图像空白

ios - 线程 1 : Breakpoint 4. 1 - swift

cocoa - Xcode 6.1 中新的基于文档的 OS X 应用程序模板