I am currently trying to set a UIImageView from a classB into classA.
But it seems that when i put a break point on the use of the UIImageView in classA it has not been set.
The code i am using is :-
rfshooterAppDelegate *delegate = (rfshooterAppDelegate *)[[UIApplication sharedApplication] delegate];
rfshooterViewController *controller = delegate.viewController;
[controller.hsvImage setImage:[self UIImageFromIplImage:hsv]];
Can anybody tell me what I could be doing wrong please?
Hard to tell much from this small snippet. A couple things to try.
1) In the debugger, make sure controller is not null.
2) Make sure you get something back from [self UIImageFromIplImage:hsv]
3) Make sure hsvImage is not null.
4) Is hsvImage connected to the correct IBOutlet in Interface Builder?