I have a long NSString and want to get only the string which gets fit in CGSize.
Example:
NSString *temp = @"jump jump jump jump jump jump";
CGSize = CGSizeMake(30,30);
UIFont *font = [UIFont fontwithName:@"helviticaNueue" fontSize:18];
Please ignore the syntax.
From above details can i get what NSString fits the CGSize and gets the ellipsis to.
Below question only return the size/width: iOS 7 sizeWithAttributes: replacement for sizeWithFont:constrainedToSize