I am trying to put UIButton right next to multiline UILabel. Following is my code,
//ans is Multiline UILabel
NSString * btnTitle = @"Button Title";
UIButton *button = [self linkButtonWithTitle:btnTitle targetAction:@selector(buttonPressed)];
CGSize stringSize = [btnTitle sizeWithFont:[UIFont fontWithName:HELVETICA_NEUE_REGULAR_FONT size:10.f]];
button.frame = CGRectMake(ans.frame.origin.x + 54, ans.frame.origin.y + 28, stringSize.width, stringSize.height);
[self button];
So the issue I am facing is the button position is different on iOS6 and iOS7. iOS6 seems to correct but iOS7 is off by few points on y axis. The thing I noticed is that on iOS6 UILabel spacing is larger compared to one on iOS7. Is there any difference between UILabel/UIButton Frame implementations on iOS6 and iOS7 ?