Here is the text present in my UILable…
“This list isn’t actually based on a straight popularity count; simply tallying the most-read verses results in a top 100 list that consists almost entirely of John 3:16 and verses from 1 Corinthians 13, Genesis 1, Romans 8, and Psalm 23. Our list instead considers instances in which BibleGateway.com users looked at three or fewer verses at one time.”
How do i get the final line of text..ie.,”at three or fewer verses at one time.” from my uilable.
Any solution is greatly appreciated.
I can give one idea . May this will help you.
with above you can get height of label, then you can get the # of lines by dividing the height with some appropriate number which depends on the font size.
1) After this Get
NSAttributedStringfrom yourUILabel.2) From
NSAttributedStringyou can get “\n” characters.3) get last “\n” and extract value from this index to last index.