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
swift


source to share


No one has answered this question yet

See similar questions:

54
Assign xib to UIView in Swift

or similar:

928
How do I call Objective-C code from Swift?
902
# pragma in Swift?
870
Swift Beta: Sorting Arrays
703
Swift for loop: for index, item in array?
656
#ifdef Swift replacement
642
@selector () in Swift?
106
Xcode 6 with fast super slow type and autocomplete
50
Xcode 6 Storyboard Unwind Segue with Fast Not Connecting to Output
13
Fast way to download xib file
7
Custom UIView with Nib in swift without using loadFromNib in view controller



All Articles
Loading...
X
Show
Funny
Dev
Pics