How to convert an NSString to id or UIView objective-c iphone [closed]

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"]

Leave a Comment