ios - UI 标签在 iOS 6/iOS 7 中无法正确对齐

标签 ios objective-c

我使用 Xcode 5[IOS 7] 创建了应用程序。我为这个应用程序使用了自定义字体。 当我在 IOS 7 中运行应用程序时,标签对齐良好。但是当我运行相同的应用程序 IOS 6 时,标签对齐方式不会正确对齐。

iOS 7

enter image description here

iOS 6。 enter image description here

请给我解决方案。

最佳答案

您必须执行以下步骤:

步骤(1)

  • 取消选中自动布局字段。

enter image description here

步骤(2)

  • 从您的 nib 文件中,该 UILable 的设置值为:“Y”= -20;

enter image description here

可能会有帮助。

关于ios - UI 标签在 iOS 6/iOS 7 中无法正确对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19378114/

相关文章:

objective-c - 如何为新 View 自动生成实现和头文件?

ios - 将 URL 转换为 UIImage。能够转换但不能附加到 UIImage 数组

iphone - 如何在iPhone上动态创建sqlite3数据库?

ios - 如何实现 "configurable"NSURLSession 共享 session ?

带有多行 UITextField 的 iOS AlertController

ios - NS_ASSUME_NONNULL_BEGIN 宏

ios - AFNetworking:重用方法

ios - 如何在 native iOS 应用程序中显示 Vimeo 实时视频流

ios - Xcode - 如何修复 'NSUnknownKeyException',原因 : … this class is not key value coding-compliant for the key X"error?

objective-c - 删除后尝试保存时核心数据崩溃