Center align (horizontal and vertically) 2 UIViews inside a container (UIView), without placing them inside a UIView. I know it can be done by placing them inside a UIView or UIStackView.
But how can we do it directly ??
---INTERVIEW QUESTION---
REF : -- Sample output
Everyone is making things complicated...
The easiest solution :
Thanks 🙏 to the interviewer only 😉.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.