When I remove the image of a button (by setting it to nil), it makes the text move to the bottom left of the button. Am I removing the image the wrong way or am I supposed to reposition the text after moving it? Or am I supposed to remove the text and set it back?
Setting the button image:
[self.photoButton setImage:newImage forState:UIControlStateNormal]; [self.photoButton setTitleEdgeInsets:UIEdgeInsetsMake(100.0, -100.0, 10.0, 15.0)];
Before removing image:
Removing the button image:
[self.photoButton setImage:nil forState:UIControlStateNormal];
After removing image:
I believe I see the problem now. I am setting UIEdgeInsets to something (forgot about that).