---
title: "NSClassFromString"
author: "刺骨的夜"
date: "2015-05-07T15:28:43Z"
tags: []
categories: ["编程语言"]
slug: "nsclassfromstring"
draft: false
lastmod: "2015-05-07T15:28:43Z"
id: 2209155
url: "https://lanxs.iteye.com/blog/2209155"
---

UIViewController \*viewController = \[\[NSClassFromString(model.detailClassStr) alloc] init];

 

    \[self.navigationControllerpushViewController:viewController animated:YES];