Rename a class in Xcode: Refactor… is grayed out (disabled). Why?

后端 未结 10 1455
清歌不尽
清歌不尽 2020-12-13 23:00

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

I\'d like to rename a class.

10条回答
  •  情歌与酒
    2020-12-13 23:20

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

提交回复
热议问题