No Round Rect Button in Xcode 5?

后端 未结 4 1983
北荒
北荒 2020-12-07 18:59

Is drag and drop of round rect button no longer available in Xcode 5? I can\'t seem to find it in the Interface Builder. I was guessing that this is one of the changes in iO

4条回答
  •  粉色の甜心
    2020-12-07 19:28

    This was too long for a comment in @Robert's answer, but I just wanted to add regarding the statement: "The Round Rect button from Xcode 4...appears to have been replaced...".

    Confirming that it definitely has been replaced:

    The rounded rectangle button is deprecated in iOS 7. Instead, use a system button—that is, a UIButton object of type UIButtonTypeSystem.

    iOS 7 system buttons don’t include a bezel or a background appearance. A system button can contain a graphical symbol or a text title, and it can specify a tint color or receive its parent’s color.

    ...

    If you need to display a button that includes a bezel, use a button of type UIButtonTypeCustom and supply a custom background image.

    Apple iOS 7 Transition Guide, p. 45, "Rounded Rectangle Button"

    So, Apple's recommendation is to use a background image.

提交回复
热议问题