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

前端 未结 7 400
庸人自扰
庸人自扰 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:59

    Try this,

    po view.layer.frame.size.height
    
    0 讨论(0)
提交回复
热议问题