Reputation: 1017
I have created a custom .xib-file and a custom subclass of UIView
.
What is the procedure to connect the two?
Meaning that when I set MyCustomClass
in the custom class attribute, it turns into my custom .xib-file and acts according to MyCustomClass.swift.
Upvotes: 1
Views: 2049
Reputation: 6795
Select Whatever.xib
>> Click Show Identity Inspector
>> Focus at Custom Class
>> Edit Class
as MyCustomClass
See this example for Test.xib and Test.swift :
Upvotes: 0
Reputation: 2149
Click on your Xib file and go here and set your custom Class here
Upvotes: 2