I have a string coming from server which I am displaying on UILabel. It is within that string, I am identifying some particular substring. I want to place a button on that s
Might be you can calculate using-
CGSize stringSize = [string sizeWithFont:myFont constrainedToSize:maximumSize lineBreakMode:self.myLabel.lineBreakMode];
Now New position-
x = self.myLabel.frame.origin.x + stringSize.width
and for y similarly you need to have code with consideration of x.