error: property 'frame' not found on object of type 'UIView *'

前端 未结 7 540
庸人自扰
庸人自扰 2021-01-30 17:14

I\'m debugging my code and trying to figure out the size of the view using this:

p view.frame.size.height

but I\'m getting this error:

7条回答
  •  梦谈多话
    2021-01-30 17:43

    Try this

    p (CGRect)[view frame]
    

    Alternative to get the frame of the view:

    po view
    

提交回复
热议问题