I’m making an app and it has multiple button that when you press them it open a pop over view (using Storyboard.) The image is blank in IB (I set it that way) and my buttons are ment to populate the image view. This is the code I’m using:
[popoverImageView setImage:[UIImage imageNamed:@"telegraph.jpeg"]];
Steps (in order run)
- Popover opens
- Above code is run
Some notes:
The image is case matched.
The image is built-into the bundle
Anyone able to shed some light?
viewDidLoad/viewWillLoadand see if it is clearing your View before it presents itself.Without any information regarding the the interface for your Popover and the implementation of the function where you call
[popoverImageView setImage:[UIImage imageNamed:@"telegraph.jpeg"]];and your setImage function i can’t be sure of your exact problem