在Xcode中重命名一个类:Refactor ...变灰(禁用)。为什么? [英] Rename a class in Xcode: Refactor... is grayed out (disabled). Why?

查看:392
本文介绍了在Xcode中重命名一个类:Refactor ...变灰(禁用)。为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么Xcode中的重构... 变灰(禁用)?

Why is Refactor... grayed out (disabled) in Xcode?

我想重命名一个类。

推荐答案

在头文件中选择类的符号 - 即后面的位@interface 。然后应该启用重构内容。

Select the class's symbol in its header file - i.e. the bit just after @interface. Then the refactoring stuff should be enabled.

这篇关于在Xcode中重命名一个类:Refactor ...变灰(禁用)。为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆