× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

swift equivalent of [NSBundle bundleForClass:[self class]]

Antonio Bello
Mar 01, 2015
<p>Never used, but I think it should be this:</p> <pre><code>NSBundle(forClass: self.dynamicType) </code></pre> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/25651403/swift%20equivalent%20of%20%5BNSBundle%20bundleForClass:%5Bself%20class%5D%5D/25651470">Stack Overflow</a>.</p>
comments powered by Disqus