什么是swift相当于下一个代码:
[NSBundle bundleForClass:[self class]]
我需要从测试包(JSON数据)加载资源
从来没有使用,但我认为应该是这样的:
Swift = 2.x
NSBundle(forClass: self.dynamicType)
Swift 3.x
Bundle(for: type(of: self))