I think this could help you:
import Foundation
let timeNow = time(nil)
let aStr = String(format: "%@%x", "timeNow in hex: ", timeNow)
print(aStr)
Example result:
timeNow in hex: 5cdc9c8d
More Related Contents:
- iOS 8 UITableView separator inset 0 not working
- Objective-C and Swift URL encoding
- WKWebView not loading local files under iOS 8
- Custom UITableViewCell from nib in Swift
- What is an “unwrapped value” in Swift?
- Unable to run app in Simulator: Xcode beta 6 iOS 8
- Base64 Decoding in iOS 7+
- Xcode iOS 8 Keyboard types not supported
- How to present popover properly in iOS 8
- How to call gesture tap on UIView programmatically in swift
- Multiple UILabels inside a self sizing UITableViewCell
- Save images with phimagemanager to custom album?
- Optional chaining in Swift Closure where return type has to be Void
- iOS 8 Auto cell height – Can’t scroll to last row
- How to access CoreData model in today extension (iOS)
- Detect volume button press
- Right way of determining internet speed in iOS 8
- Color all occurrences of string in swift
- Why is UICollectionViewCell’s outlet nil?
- Formatting Phone number in Swift
- IOS 8 Tab Bar Item Background Colour
- How to create a hex color string UIColor initializer in Swift? [duplicate]
- Code sign error : bundle format unrecognized, invalid, or unsuitable
- Setting “AppleLanguages” doesn’t change app language
- Why can’t I call the default super.init() on UIViewController in Swift?
- @property/@synthesize equivalent in swift
- NavigationBar bar, tint, and title text color in iOS 8
- How do you update a CoreData entry that has already been saved in Swift?
- Use and Access Existing SQLite Database on iOS
- EXC_BAD_INSTRUCTION When Passing UICollectionView Cell Data to Different ViewController