Thanks for the explanation. Unfortunately, this code is part of a larger project with another developer. I cannot change the current UIView to a UIViewController. Instead, I changed the button image in a different way. I changed the state of the button before adding the UIView to the subtitle of the own ViewController. i.e.: I released
[myButton setImage:[UIImage imageNamed:@"myImage.png"] forState:UIControlStateNormal];
Prior to adding my UIView as a subspecies. i.e:
[masterViewController.view addSubview:myView]
obviously myButton is part of myView. Thanks for the help.
source
share