Instantiating Classes by Name in Swift
Josh Smith: In Objective-C that is easy as pie, just call NSClassFromString(aClassName) and then alloc/init the Class it returns. However, now that Swift is destined to become the lingua franca of iOS I decided to investigate how one might implement these reusable components in Swift. Instantiating classes by name turned out to be a stumbling … Continue reading Instantiating Classes by Name in Swift
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed