Assuming you have myUIView
defined as a property, e.g.
@property (nonatomic, strong) IBOutlet UIView *myUIView;
then you can access it from a string with the -valueForKey:
method, as in
[self valueForKey:@"myUIView"]
More Related Contents:
- Converting a string to an NSDate
- Check that a input to UITextField is numeric only
- If “a == b” is false when comparing two NSString objects
- How to get substring of NSString?
- +[NSString stringWithString:] — what’s the point?
- How does an underscore in front of a variable in a cocoa objective-c class work?
- Shortcuts in Objective-C to concatenate NSStrings
- How does the new automatic reference counting mechanism work?
- Having trouble adding objects to NSMutableArray in Objective C
- Remove HTML Tags from an NSString on the iPhone
- What’s the best way to develop a sideswipe menu like the one in Facebook’s new iOS app?
- setValue:forUndefinedKey: this class is not key value coding-compliant for the key [duplicate]
- Managing multiple asynchronous NSURLConnection connections
- Phone number formatting on iOS
- Supporting Open In… menu item in my app for iOS Mail And Safari
- iOS – Merging two images of different size
- What does @synchronized() do as a singleton method in objective C?
- Weak NSString variable is not nil after setting the only strong reference to nil
- Split an NSString to access one particular piece
- Convert NSArray to NSString in Objective-C
- NSString: isEqual vs. isEqualToString
- How can I have a UIBarButtonItem with both image and text?
- Replace all NSNull objects in an NSDictionary
- RootViewController Switch Transition Animation
- Custom nav bar styling – iOS [duplicate]
- Is there a way to remove the separator line from a UITableView?
- Responding to touchesBegan in UIPickerView instead of UIView
- Property ” not found on object of type ‘id’
- NSPrivateQueueConcurrencyType Not saving properly
- Class method equivalent of -respondsToSelector: