In interface builder, we can simply drag a line to the view.
But I want to programmatically assign a line (for example, vertical line) into my view hierarchy, what should I initialize the box before - addSubview: and - setFrame: methods?
In interface builder, we can simply drag a line to the view.
But I want to programmatically assign a line (for example, vertical line) into my view hierarchy, what should I initialize the box before - addSubview: and - setFrame: methods?
Copyright © 2021 Jogjafile Inc.
Sorry, I solve it myself. Here are the codes: