Skip to content
Liu Lantao edited this page Jun 9, 2014 · 5 revisions

Xcode6

设置为默认开发工具

如果有多个版本,使用xcode-select将Xcode6设置为默认开发工具

sudo xcode-select -s /Applications/Xcode6-Beta.app/Contents/Developer/

直接开启swift控制台(非playground)

xcrun swift

UI

UIAlertView

let alert: UIAlertView = UIAlertView()
alert.title = "This a simple UIAlertView"
alert.message = "Press OK to continue"
alert.addButtonWithTitle("OK")
alert.show()
Clone this wiki locally