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

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

    it should have outer bracket in the first answer,like this:

    p ((CGRect)[cell frame])
    

    output:

    (CGRect) $5 = origin=(x=0, y=0) size=(width=320, height=44)
    

提交回复
热议问题