0

I have a problem with title vertical alignment of some UIButtons that is over the central line of the button, this happened because I've used a custom font that have a wrong vertical alignment, I fixed this problem in iOS6 with titleEdgeInsets and put some pixel of inset on the top value. When I start to update my app to iOS7 I've a inverse problem now the title is under the central line and if I remove the insets the title is on the centre of the button. is there a way for fix this problem both operation system {iOS6, iOS} using the same code?

4

1 回答 1

0

我在启动应用程序时检查了 iOS7 或 iOS6,并为插入设置了全局变量,所以如果是 iOS7,这个变量有一个值,否则有另一个。像这样我解决了我的问题。

于 2013-10-21T16:13:17.527 回答