可通过服务器配置使用哪个类、显示哪个页面 字符串转类对象 let namespace = Bundle.main.infoDictionary["CFBundleExecutable"] let class = NSClassFromString(namespace + "." + "类名")