I have a code that contains verse number and chapter number of the bible. I put this code to formate chapterno: withverseno: that is we get 1.2, this means 1 is the chapter number and 2 is the verse number.
my code for this is :
cell.chapterAndVerse.text = [NSString stringWithFormat:@"%@.%d",delegate.selectedVerse, indexPath.row+1];
chapterAndVerse is the UILabel which holds the verse and chapter number.
I want only verse to display in the UILabel (I want 2 instead of 1.2). How to get this ?
Thanks in advance.
This will display the verse only.