Say I had a multi-line (can be any number of lines) UIButton
positioned in any space in a UIViewController
, where the width of the UIButton
is constrained by the width of of the whole UIViewController's view
, its text is centered inside of the UIButton and word wrapping is on, like so:
pic
If I want to find the runtime location of the * in the picture in terms of the whole UIViewController's space
, how would I do so?
I attempted to use this post but it only works for single line text and so I can't seem to figure how I am supposed to make it work for multi-line (aka I dont know on which line the * is) text, centered and word wrapped.