I have a PageViewApplication that I am writing and I am oh so nearly there! but I have a problem getting the page number to show as the title of a button I have in a toolbar.
The toolbar is activated when a user taps once on the image in the pageviewcontroller and on this toolbar is a button, which I am told, is the best way to display the page number.
I have written the following where _currentPageNumber
is an Integer of the current Index
NSString *strTotalPages = [NSString stringWithFormat:@"%d", NrOfImages];
_pageNumbering.title = [NSString stringWithFormat:@"%d / %@", _currentPageNumber, strTotalPages];
My issue is where to place this as at the moment it is just showing 0
Any help would be great
Thanks