iOS Image rotates on button press -
I am downloading some images from the API for my iOS app and then displaying images as buttons background I am here. Here's the code:
NSData * imageData = [r feedbackdata]; UIImage * image = [UIImage imageWithData: imageData]; UIBlockButton * imageView = [UIBlocktonTypeCustom] with UIBlockButton Button; [ImageView setBackground Image: Image forState: UIControlStateNormal]; Here's the weird part. When I press the button, the vertical diagram (length is less than the height) will rotate 90 degrees. Has anyone experienced this before / is it a bug?
Edit: So my server sends images in rotated states. Either way UIButton knows it by rotating when it is not selected, but when I select it, it does not do the same improvement.
But you should get rid of that weird effect, at least
Comments
Post a Comment