UIButton setTitle移动图像

时间:2015-07-08 13:20:11

标签: ios uibutton

最奇怪的事情。我有countryname = countryNode.Attributes["id"].Value; 的图片和标题。

触摸按钮的唯一代码是:

UIButton

虽然if ([[MomentCreationShared sharedMySingleton].owner._id isEqualToString:[UserDataManager getCurrentUserID]]) { [cell.createMomentButton setTitle:@"Create a new Moment" forState:UIControlStateNormal]; } else { [cell.createMomentButton setTitle:@"Create a moment of your own" forState:UIControlStateNormal]; } 框架cell.createMomentButtonimageEdgeInsetstitleEdgeInsets相同(使用断点检查)
图像偏移了一点,我不能'似乎弄清楚原因:

enter image description here enter image description here

0 个答案:

没有答案