2

I have a custom UIView in xib and fill out a custom class inherits UIView

enter image description here

the FastThreeMenuView use swift langue then I get instance with this sentence:

FastThreeMenuView *menuView = [[[NSBundle mainBundle] loadNibNamed:@"FastThreeMenu" owner:self options:nil] firstObject];

I check variable menuView the class type is UIView,but I use Objective-C to implement the custom UIView,I get the instance type is FastThreeMenuView, how to fix the Issue?

Nilesh Patel
  • 6,318
  • 1
  • 26
  • 40
AllanXing
  • 174
  • 1
  • 14

1 Answers1

3

Swift classes have namespacing.

You should set the Module in xib like so:

enter image description here

Xcode 6 Strange Bug: Unknown class in Interface Builder file

Community
  • 1
  • 1
Bannings
  • 10,376
  • 7
  • 44
  • 54