How to get an x and a y for a CGRect to initialize a control with a frame?

后端 未结 3 1360
暖寄归人
暖寄归人 2021-01-20 12:00

I\'m programming an iPhone app and I\'m wondering how programmers properly position controls without using Interface Builder. More or less, this is because I want to positio

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-20 12:37

    I do all my controls and views programmatically, and its not difficult at all. I use IB to mockup my app, so I just find where I want it there and then put that into the code itself.

提交回复
热议问题