Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad magazine app concept [closed]

Tags:

html

concept

ipad

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?

like image 602
tronic Avatar asked May 11 '26 14:05

tronic


1 Answers

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.

  1. use storyboards, and gesture to swipe / modal / Cross Dissolve transition to and from each ViewController
  2. instead of trying to pull in a PDF or image, throw your text into an HTML file, and use an embedded HTML link
  3. have your index as buttons that go to each view
  4. BONUS: cool feature to add would be a "tap" gesture on each page, so that after 2 taps the index pops up, that way the user doesn't have to swipe all the way back

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.

like image 74
SnowboardBruin Avatar answered May 18 '26 00:05

SnowboardBruin