我正在尝试将一个相当长的字符串的内容拆分成多页内容。现在我按字符(每页500个字符)这样做:
//Lets find out how many pages to make
int pageLength = 500; //how many characters per page
NSString *text = ((Story *) [self.story objectAtIndex:chapter]).content;
int NumberOfPages = (text.length/pageLength);
//NumberOfPages += 1;