X code 5圆矩形按钮 [英] Xcode 5 Round Rect Buttons

查看:143
本文介绍了X code 5圆矩形按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个结合了许多圆形按钮矩形的应用程序。然而,在X code 5,那些不存在的。我如何获得圆矩形按钮回来?他们是我的应用程序是必不可少的。现在,它只是pressable文本。我该怎么办?我打算以后发布这个应用程序,如果是相关的。

I have an app that incorporates many round rect buttons. However, in xcode 5, those dont exist. How do I get the round rect buttons back? They are essential to my app. Now it just is pressable text. What do I do? I am planning on releasing this app later, if that is relevant.

推荐答案

打开故事板,并选择要更改的按钮。打开工具面板中的身份检查(右图,在上面3按钮)。加(+)的新用户自定义运行属性的关键路径:layer.cornerRadius,类型:Number,值:。数值越高,越圆角的角部。 50是一个圆。你不会看到在故事板的变化,但它会在运行时显示。

Open the storyboard and choose the button you want to change. Open the Identity Inspector in the Utility Panel (right panel, 3rd button on top). Add (+) a new User Defined Runtime Attribute Key Path: layer.cornerRadius, Type: Number, Value: . The higher the number, the more rounded the corners. 50 is a circle. You won't see the change in the storyboard, but it will show at runtime.

这篇关于X code 5圆矩形按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆