How to rename the class name in swift?

前端 未结 7 1882
攒了一身酷
攒了一身酷 2021-02-12 03:33

I am trying to rename the class name in swift but it gives me error Can\'t refector swift code. I want to know the best way to rename a file that will reflect in t

7条回答
  •  佛祖请我去吃肉
    2021-02-12 04:35

    1. Find & Replace by cmd + shift + F
    2. Rename class name.
    3. If you use storyboard/Nib file, don't forget change the class you assigned in Show the identify inspector to new class name.

    TIP Set scope under the search field for Find & Replace can make this work clear.

提交回复
热议问题