I have a project which I am migrating from Obj-C to Swift 3.0 (and I am quite a noob in Swift).
How do I translate this line?
NSString *folder = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"myfolder"];
I managed to get resource path:
let resoursePath = Bundle.main.resoursePath;
But how do I get path to a subfolder named "myfolder"?
I need to get a path the subfolder, not path to the files inside it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…