2016-05-09 swift 通过 string 创建 object 1234567891011class IndexViewController: UIViewController{} let className = "IndexViewController" let bundlePath = NSBundle.mainBundle().bundlePathlet bundleFullName = bundlePath.componentsSeparatedByString("/").lastlet bundleName = bundleFullName?.componentsSeparatedByString(".").firstlet clazz = NSClassFromString(bundleName! + "." + className)! as! UIViewController.Type let object = clazz.init()// let object1 = Index() 普通方法 Récent svn ignore files Ancien cocoa 查看无线是否打开 可链接的wifi列表