Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
swift NSURLをstringで手軽に作る ref:
// アプリバージョンをStringで
let version: String! = NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleShortVersionString") as? String
// 指定URLと文字連結
var myUrlStr:String = "" + version
// NSURL型に変換するなら
var myUrl:NSURL = NSURL(string:myUrlStr)!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment