ios - 增加 Textfield 的高度时文本不居中?

标签 ios iphone swift xcode uitextfield

我在看这个post关于增加文本字段的高度大小。但是,当我的高度为 40 时,我遇到了一个问题,我得到这个 enter image description here enter image description here

这可以通过增加字体大小来解决,但是如何保持字体大小不变?

最佳答案

显示此屏幕截图并尝试 enter image description here

enter image description here

关于ios - 增加 Textfield 的高度时文本不居中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48224111/

相关文章:

iPhone SDK 3.0 - wait_fences : failed to receive reply: 10004003

ios - 离线启动应用程序时出现 Realm NSInternalInconsistencyException

ios - 在 apple mapkit swift 上捏合和缩放

swift - ARKit 如何使 NSNODE 持久化

ios - 用户获取推送通知之前的IOS Access推送通知有效负载

ios - 我应该在嵌套 block 中使用 weakSelf 吗?

ios - 尝试将导航 Controller 呈现为 rootViewController 时, View 不在 View 层次结构中

ios - 如何编写一个将字符串和泛型类型作为参数的函数?

iphone - 自动释放池与垃圾回收有什么联系?

iphone - 使用 NSNumbers 优于整数或 float 的优势?