Klimi's new dotfiles with stow.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

17 行
477 B

# -*- mode: snippet -*-
# name: uialertController
# key: uialertController
# --
let alert =
UIAlertController(title: $1,
message: $2,
preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "",
style: .default,
handler: { (action) in
alert.dismiss(animated: true, completion: {
$0
})
}))
self.presentViewController(alert, animated: true, completion: nil)