What I do in some project's is expose a public method like so:
- (void)updateViewWithDictionary:(NSDictionary *)confDictionary;
In that dictionary I pass the parameters I want, and inside the UIView's
subview I update it according to what I want.
Edit 1:
Read wrongly your question, sorry. You have a custom UIView
that you would like to be updated when your UIViewController
starts, or when you actually use it. So you should have something like this:
@interface MyView : UIView
{
}
- (void)updateViewWithDictionary:(NSDictionary *)confDictionary;
@end
And from your viewDidLoad
:
-(void)viewDidLoad
{
[self.customView updateViewWithDictionary:dictPassed];
}