How to launch UIView from xib using Swift?

Has anyone successfully replicated this objc method in swift? I still cannot succeed in init method.

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

I still cannot find a good answer that clearly works with xcode 6.0.1

+3


source to share





All Articles