What is the best way and technique to develop an iPad magazine-like appication? Is it possible to use HTML 5 and CSS, including swipe effects and stuff like that?
What are other techniques?
I tried hundreds of techniques, which sucked up memory, required a million lines of code, and was at least 200MB. Then I had a stroke of genius last night.
CODE FOR PART 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];
}
in the .h
@property (weak, nonatomic) IBOutlet UIWebView *webView;
and of course synthesize that in the .m, and connect it to the appropriate viewController...and eventually throw it into Apple's Newsstand.
This technique maintains the integrity of the text, has minimal coding, and keeps a small file-size.
Holler if you need any more help with this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With