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
上一篇下一篇

猜你喜欢

热点阅读