NSString *formatString = NSLocalizedString(@"%1$i of %2$i", @"Picture X out of Y total.");
NSString *countTitle = [NSString stringWithFormat:formatString, currentIndex_ + 1, photoCount_, nil];
[self setTitle:countTitle];
in this code the title showing Ex.” 22 of 44″ that means 22nd photos out of 44
i want add title like “album name + countTitle” which is above in the code so that wil become like and i want to give the name of album is “Flickr”
Ex. “Flickr 22 of 44” how the code will be
That is pretty simple, you just need to add an extra format string modifier and add the variable in the correct place in your
stringWithFormat:like so (wherealbumNameis the name of your album`):Also just to note, instead of using
%1$iand%1$ifor integers, you can just use%dfor C Integers in your format string like so: