Wahab Khan Jadon
Wahab Khan Jadon

Reputation: 1198

Navigate in Xcode between UI to is related controller and from controller to UI

In the Android Studio, every view have a separate file and user can go from Java file to its view file by click on this

setViewContant(R.layout.my_view);

Is there is any way in Xcode that can take user form viewController.swift to is related layout file. Because it's totally Spaghetti in Main.Storyboard

Upvotes: 0

Views: 42

Answers (1)

Alex B
Alex B

Reputation: 161

Unfortunately I don't remember a better way than just search the ViewController class name.

  1. Right-click on the ViewController class name
  2. Select "Find Selected Text in Workspace"

search ViewController name

  1. In the left panel will appear the list of files which have occurrences of the searched word
  2. Select the entry in your storyboard

select storyboard viewcontroller


btw: I would suggest to split the Main.storyboard in smaller ones! ;)

Upvotes: 1

Related Questions