Objc to Swift:[NSString stringWi
2016-08-22 本文已影响308人
YHWXQ简简单单的生活
Objective-C
NSTextField * textField;
textField.stringValue = [NSString stringWithFormat: @"%ld", 100];
Swift
let textField: NSTextField!
textField.stringValue = NSString( format: "%ld", 100 ) as String