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/

相关文章:

ios - 带有 Segue 的 UITableView 和搜索栏

cocoa-touch - 基于用户输入的操作 Swift

ios - 以编程方式从一个 ViewController 转到另一个 ViewController

ios - PHImageManager 在设备上返回方向不正确的图像

swift - NSlayoutConstraint 出现 swift 1.2 错误

ios - 取消选中后 UIScrollView 不滚动 "Adjust scroll view insets"xcode 6

ios - UITableViewCell 的 UIImage 的内存在 segue 后退按钮后未释放

iOS 应用因 EXC_BAD_ACCESS (SIGSEGV) 而被拒绝,这是什么意思?

ios - Xcode 6 使用本地安装的配置文件导出 IPA 文件

ios - 使用 segue 在 View Controller 之间传递变量