iPhone UIButton – image position
I want to move the position of the image and the titleLabel in the UIButton
see these code
[gradeButton sizeToFit];
gradeButton.titleEdgeInsets = UIEdgeInsetsMake(0, -gradeButton.imageView.frame.size.width, 0, gradeButton.imageView.frame.size.width);
gradeButton.imageEdgeInsets = UIEdgeInsetsMake(0, gradeButton.titleLabel.frame.size.width, 0, -gradeButton.titleLabel.frame.size.width);