objective c - change background colour on action
I have a simple app in Xcode that amongst other things, has a button that
is connected to an action that is meant to change the window's background
colour (in the action method, ive defined the colors above):
if ([self.window.backgroundColor isEqual:red]) {
self.window.backgroundColor = green;
[self.window display];
}
At the moment it just flashes green and returns to red. Does this have
something to do with me setting the background colour to red in
applicationDidFinishLaunching?
No comments:
Post a Comment