We want to put a view on top of another view, a label on top
of an imageView. Simply put it in to view after imageView. A view addSubview before
will be show at background.
Sometime we want to draw a view below another view, but we
don’t know it’s height, for example, it is a label with numberlines=0. We need
to get it height.
let height
= label.frame.size.height
Width dimension get like this
let width = label.frame.size.width
No comments:
Post a Comment