Apple Interface Builder: adding subview to UIImageView

后端 未结 4 653
情话喂你
情话喂你 2020-11-28 05:55

I created UIImageView with the help of Interface Bulder. Now I want to place label inside it (as its subview). In code I can type something like: [myUIIma

4条回答
  •  没有蜡笔的小新
    2020-11-28 06:26

    In latest XCode(4.5) there is an option to drag and drop the required controls to the parent.

    It is quite easy. Attached screen shot for the same. I dragged the Label/TextField and Button to UIImageViewenter image description here

提交回复
热议问题