在Swift中将String类型的字符串转换成floate或double的若干方法: 1._bridgeToObjectiveC() let version: String = UIDevice.currentDevice().systemVersion let versionFloat = version._bridgeToObjectiveC().floatValue if versionFloat