Danil Danil - 7 months ago 22
Swift Question

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

What is swift equivalent of next code:

[NSBundle bundleForClass:[self class]]


I need load resources from test bundle (JSON data)

Answer

Never used, but I think it should be this:

NSBundle(forClass: self.dynamicType)