/// 设置SDK Bundle
/// AiphySDK为SDK下的类名,用于标识获取资源为SDK内资源
let bundle = Bundle(path: Bundle(for: AiphySDK.self).path(forResource: "SDKResource", ofType: "bundle")!)
let path = bundle?.path(forResource: "image", ofType: "png")
/// 设置SDK Bundle
/// AiphySDK为SDK下的类名,用于标识获取资源为SDK内资源
let bundle = Bundle(path: Bundle(for: AiphySDK.self).path(forResource: "SDKResource", ofType: "bundle")!)
let path = bundle?.path(forResource: "image", ofType: "png")
本文标题:iOS 封装SDK时获取SDK资源,防止资源混淆
本文链接:https://www.haomeiwen.com/subject/vlxspftx.html
网友评论