1

I have following view controllers in my storyboardenter image description here

I have created two custom class, which are RegisterViewController.swift and SignInViewController.swift, when I select my RegisterViewController in storyboard, I can see RegisterViewController.swift being assigned to my registerviewController, but when I create new custom class called SignInViewController.swift and when I try to assign it to the SignInview, it is not getting assigned however it is appearing in my custom class dropdown, just to make sure, if I select assistant editor, I see the RegisterViewController.swift code but it should be showing SignInViewController.swift code. What I am missing here?

This how my identity inspector looks when I select SignInViewController enter image description here

This is my signinviewcontroller.swift

import UIKit

class SignInViewController: UIViewController {

//code

}
Sid
  • 5,693
  • 3
  • 33
  • 50
  • Can you show the class definition for `SignInView`? – Paulw11 Sep 08 '15 at 02:43
  • So, that setting won't 'stick' when you put it in the inspector? – Paulw11 Sep 08 '15 at 02:49
  • Module name and project name should be same unless you are using custom Module – karthikPrabhu Alagu Sep 08 '15 at 02:49
  • myproject name is `userLoginAndRegistration` @karthikPrabhu – Sid Sep 08 '15 at 02:50
  • @Paulw11 I can see the class being assigned to the SignInviewController, but on opening assistant editor, it loads the code of `registerViewController.swift` – Sid Sep 08 '15 at 02:51
  • 1
    You can change what the assistant editor opens - It is probably just set to manual instead of automatic - Make sure 'automatic' is selected next to the two circles in the assistant editor title bar – Paulw11 Sep 08 '15 at 02:51

0 Answers0