UIImage position on screen/window/superview

93 Views Asked by At

I want to add a UIButton to the end of NSAttributedString. I was unable to do that as NSAttachment only takes a UIImage.

So, I've added a UIImage to NSAttributedString as attachment and saved its reference. Now i want to obtain the position of this UIImage on UIScreen, UIWindow or Superview to put a UIButton at the position of image. Is it possible?

0

There are 0 best solutions below