I tried hundreds of methods that sucked in memory, required a million lines of code, and were at least 200 MB. Last night I had a brilliant genius.
- use storyboards and a gesture to bring / modal / Cross Dissolve transition to and from each ViewController
- instead of trying to extract a pdf file or image, drop the text into an html file and use the inline HTML link
- specify your index as buttons that appear in each view
- BONUS: "tap" ,
2 , , .
2
-(void)viewDidLoad {
[super viewDidLoad];
NSString* filePath = [[NSBundle mainBundle]
pathForResource:@"yourtexthere"
ofType:@"html"
inDirectory:@"folderwhereyousavedit"];
NSURL* fileURL = [[NSURL fileURLWithPath:filePath];
NSURLRequest*request = [NSURLRequest requestWithURL:fileURL];
[webView loadRequest:request];
}
.h
@property (weak, nonatomic) IBOutlet UIWebView *webView;
, , .m viewController... Apple Newsstand.
, .
, .