How to init UIView from xib using Swift?

1.9k Views Asked by At

Does anyone sucessfully replicate this objc method in swift? I still can't make it successful in init method.

self=[[[NSBundle mainBundle] loadNibNamed:@"DGNodeView" owner:nil options:nil] firstObject]

I still can't find a good answer that is clearly working with xcode 6.0.1

0

There are 0 best solutions below