Hey guys,
I greatly appreciate all the help I have gotten from this forum! And I am yet again faced with a problem that is probably very easily resolved haha. So I thank you in advance!
I have two class, ClassA and ClassB.
ClassA has an image by the name of "backgroundImage"
I need to set backgroundImage from a button press in ClassB.
What I have tried.
In ClassB
Now upon a button press I am trying to do this.
I do not get any errors, but I also don't get any results. Nothing is changed.
Any suggestions?
Thanks,
-Steven French
I greatly appreciate all the help I have gotten from this forum! And I am yet again faced with a problem that is probably very easily resolved haha. So I thank you in advance!
I have two class, ClassA and ClassB.
ClassA has an image by the name of "backgroundImage"
I need to set backgroundImage from a button press in ClassB.
What I have tried.
In ClassB
Code:
@class ClassA;
@interface ClassB: UIViewController
@property (nonatomic, retain) ClassA *mainView;
Now upon a button press I am trying to do this.
Code:
[ClassA.backgroundImage setImage:[UIImage imageNamed:@"newImage.jpg"]];
I do not get any errors, but I also don't get any results. Nothing is changed.
Any suggestions?
Thanks,
-Steven French