Created
December 6, 2014 05:14
-
-
Save ikuwow/d80b0c4601e79b09007a to your computer and use it in GitHub Desktop.
Swift (iOS)で日本語変数名が便利だなと思った例 ref: http://qiita.com/ikuwow/items/924a039c168655f4fded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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