iOS 9 or later • Swift 3 or later
let tmpDirURL = URL(fileURLWithPath: NSTemporaryDirectory())
iOS 10.0+Beta, macOS 10.12+, tvOS 10.0+Beta & watchOS 3.0+ • Xcode 8 • Swift 3 or later
let tmpDirURL = FileManager.default.temporaryDirectory
More Related Contents:
- How can I convert from degrees to radians?
- Use of unresolved identifier ‘UIScreen’; did you mean ‘NSScreen’? DynamicTypes works fine on iOS, but it doesn’t on macOS
- How do I make an HTTP request in Swift?
- Instantiate and Present a viewController in Swift
- Passing data between view controllers
- Save images in NSUserDefaults?
- UIImageView – How to get the file name of the image assigned?
- MKMapView: Instead of Annotation Pin, a custom view
- Detect current device with UI_USER_INTERFACE_IDIOM() in Swift
- UITapGestureRecognizer – make it work on touch down, not touch up?
- How to modify SWIFT_MODULE_NAME?
- ViewDidAppear is not called when opening app from background
- Add bottom border line to UI TextField view in SwiftUI / Swift / Objective-C / Xamarin
- Objective C – Assign, Copy, Retain
- Delete all keys from a NSUserDefaults dictionary iOS
- Positioning UITabBar at the top
- UITableViewCell with dynamic height iOS
- What is the difference between Modal and Push segue in Storyboards?
- NSDate – Convert Date to GMT
- Adding Navigation Bar programmatically iOS
- How to add a button to the MKPointAnnotation?
- When to use takeUnretainedValue() or takeRetainedValue() to retrieve Unmanaged Objects in Swift?
- Xcode 9 – failed to emit precompiled header [duplicate]
- Suppressing deprecated warnings in Xcode
- Append String in Swift
- @property/@synthesize equivalent in swift
- Alternate Icon in iOS 10.3
- Accessing variables from another ViewController in Swift
- Duplicate Symbol Error in NSManagedObject Subclass
- Spritekit – not loading @3x images from SKTextureAtlas