I am not using the UIBuilder. I have programmatically added two subviews to the main view. I can see them if I add background color to them. However, I want to set the value of the two subviews to images.
@property (strong, nonatomic) IBOutlet UIView *firstImage;
@property (strong, nonatomic) IBOutlet UIView *secondImage;
.
.
.
self.firstImage = [[UIView alloc] initWithFrame:CGRectMake(3, 89, 156, 78)];
[self.view addSubview:self.firstImage];
self.secondImage = [[UIView alloc] initWithFrame:CGRectMake(161, 89, 156, 78)];
[self.view addSubview:self.secondImage];
.
.
.
self.leftView.image = self.firstImage;
self.rightView.image = self.secondImage;
My images are not displaying. Is there something I need to do to hook them up since I'm not using the UIBuilder? I am grateful for any ideas?
Thank you.