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

后端 未结 10 1448
清歌不尽
清歌不尽 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:34

    Also, it could happen that you renamed the filename for the class, either outside xcode or by ctrl-clicking the filename and then renaming it. xcode refuses to refactor if filename does not match with the class name.

提交回复
热议问题