Reputation: 1739
NSTemporaryDirectory().stringByAppendingPathComponent("Library/Caches") which method can replace it & please give sentence for that thank you in advance
Upvotes: 0
Views: 300
Reputation: 285082
A solution is a simple type cast to NSString
(NSTemporaryDirectory() as NSString).stringByAppendingPathComponent("Library/Caches")
Other standard folders like NSHomeDirectory()
can be specified with URLForDirectory:inDomain:appropriateForURL:create
of NSFileManager
to be able to use the path modification methods of NSURL
.
Upvotes: 1