Classes are first-class objects in Objective-C too. You can get the class object from an NSString with the NSClassFromString function.
[[NSClassFromString(className) alloc] init...]
Related Contents:
- What are best practices that you use when writing Objective-C and Cocoa? [closed]
- Best way to implement Enums with Core Data
- HTML character decoding in Objective-C / Cocoa Touch
- NSURLRequest setting the HTTP header
- NSArray Equivalent of Map
- `[super viewDidLoad]` convention
- Multiple value enum in Obj-C
- How to get the name or signature of the current method into an NSString?
- UILongPressGestureRecognizer gets called twice when pressing down
- How do I draw a shadow under a UIView?
- What’s the difference between using CGFloat and float?
- Convert HTML to NSAttributedString in iOS
- Adding the little arrow to the right side of a cell in an iPhone TableView Cell
- Select tableview row programmatically
- How do I auto size a UIScrollView to fit its content
- Changing my CALayer’s anchorPoint moves the view
- Moving UITabBarItem Image down?
- Interaction beyond bounds of UIView
- Is there a documented way to set the iPhone orientation?
- NSLog with CGPoint data
- Round double value to 2 decimal places
- Blocks instead of performSelector:withObject:afterDelay: [duplicate]
- NSTimeInterval to HH:mm:ss?
- IPhone/IPad: How to get screen width programmatically?
- NSLocale currentLocale always returns “en_US” not user’s current language
- UISwitch in a UITableView cell
- Compile Error with: switch, “expected expression before”
- Best practice when implementing copyWithZone:
- How to make a cell on a UITableView not selectable?
- Objective C HTML escape/unescape
- How can I upload a photo to a server with the iPhone?
- how to use the object property of NSNotificationcenter
- Do you need to create an NSAutoreleasePool within a block in GCD?
- UIMenuController not showing up
- How do you implement global iPhone Exception Handling?
- UITableView , Scroll to bottom on reload?
- NSPredicate that is the equivalent of SQL’s LIKE
- Xcode could not find a valid private certificate/valid key-pair for this profile in your keychain [duplicate]
- UITextField: move view when keyboard appears
- Best Cocoa/Objective-C Wrapper Library for SQLite on iPhone [closed]
- iOS devices as web server [closed]
- Showing/hiding navigation bar with smooth animation
- How to pass userInfo in NSNotification?
- Best architecture for an iOS application that makes many network requests?
- iOS 5: Curious about UIAppearance
- UITableView does not automatically deselect the selected row when the table re-appears
- Objective-C – When to use ‘self’
- Animating custom-drawn UITableViewCell when entering edit mode
- How to delete ALL FILES in a specified directory on the app?
- Check iOS version at runtime?