objective c - Is there a simpler method to set height of UIView? -
to set height of uiview
, need set frame x, y, width , height.
[view setframe:cgrectmake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width, myheight)]
which pretty annoying. there simpler build-in way?
cgrect frame = view.frame; frame.size.height = myheight; view.frame = frame;
which smaller , conveys meaning require (that alter height , nil else)
objective-c uiview
No comments:
Post a Comment