ios - Can a UI class with different Obj-C and Swift names be used in Storyboard? -
i have uibutton swift subclass custombutton
, expose prefixed name obj-c.
@objc(prefixcustombutton) public class custombutton: uibutton { ... }
this class exists in swift module custommodule
. integrating module via cocoapods objective-c , swift apps test custombutton
. when try use custombutton
storyboard, following error:
unknown class _ttc9custommodule17custombutton in interface builder file.
i have tried using prefixcustombutton in storyboard , same error:
unknown class _ttc9custommodule22prefixcustombutton in interface builder file.
edit: @matt correct in prefixcustombutton
has used in storyboard (for both swift , obj-c projects). additional part missing didn't need set module name.
you said yourself: have exposed different name objective-c. class's name prefixcustombutton far interface builder concerned.
Comments
Post a Comment