Skip to content

Instantly share code, notes, and snippets.

@ikuwow
Created December 6, 2014 05:14
Show Gist options
  • Save ikuwow/d80b0c4601e79b09007a to your computer and use it in GitHub Desktop.
Save ikuwow/d80b0c4601e79b09007a to your computer and use it in GitHub Desktop.
Swift (iOS)で日本語変数名が便利だなと思った例 ref: http://qiita.com/ikuwow/items/924a039c168655f4fded
var alertController = UIAlertController(title: "あなたはシカオさんではありませんね?", message:"", preferredStyle: UIAlertControllerStyle.Alert)
let はいAlertAction = UIAlertAction(title: "はい", style: UIAlertActionStyle.Default, handler: {...(略)...})
let いいえAlertAction = UIAlertAction(title: "いいえ", style: UIAlertActionStyle.Cancel, handler: nil)
alertController.addAction(はいAlertAction)
alertController.addAction(いいえAlertAction)
self.presentViewController(alertController, animated: true, completion:nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment