3

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?

tripleee
  • 175,061
  • 34
  • 275
  • 318
tronic
  • 119
  • 1
  • 2
  • 4

4 Answers4

2

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.

SnowboardBruin
  • 3,645
  • 8
  • 36
  • 59
0

Yes you can do this using html5 technology, touch techniques and CSS. I have found relying on css3 animations to be where a lot of the memory leaks were coming from for my project. It depends on being selective with what arts have CSS accelerations.

It is not finished, nor is it open source. You can view some test uses here and contact me for more info regarding setup: http://stacks.acadnet.ca/

A new version pulls content out of appropriately tagged tumbl posts, but it is not ready for display. This system also has full screen background images which can be locked to provide two-page spreads.

This isn't an open system because of development time (2years) and it is the core of a masters concept.

nosarious
  • 309
  • 1
  • 12
0

Using only HTML5 and CSS would be difficult to have a swipe effect of the same quality as iBooks. You would likely want to develop your own native app that uses OpenGL for the effect.

Check this question for getting started on implementing the page swipe animation.

Community
  • 1
  • 1
Ben S
  • 68,394
  • 30
  • 171
  • 212
  • so without the swipe thing (just for scrolling up/down) html5 would be possible? the content should be dynamical! – tronic Apr 15 '10 at 18:48
  • Of course it would be possible, but then it just looks like a blog site. If you're going for the look and feel of a magazine, HTML5 just isn't going to cut it. – Ben S Apr 15 '10 at 19:40
  • 1
    "HTML5 just isn't going to cut it"...Just had to step in and say I couldn't disagree more. While the swipe/flip effect might prove tricky, you can create a Magazine like web app using HTML5 and related technologies. If you have a Mac, download the iPhone SDK, this includes Dashcode (http://en.wikipedia.org/wiki/Dashcode) for creating HTML5 iPhone apps that have the look and feel of native apps. While building a native iOS app for this sort of thing would be easier then HTML5, the HTML5 version has the benefits of portability and mass distribution (works on everything). A worthwhile goal IMHO. – Sunday Ironfoot Aug 25 '10 at 10:08
0

Another tecnique is to use the magazine pdf document and render it directly.

The implementation process is tedious, but don't need to refactor the magazine.

If you want to use a libray we've designed FastPdfKit to help on these process. Take a look at FastPdfKit.com and grab the free code on github.

MacTeo
  • 2,656
  • 1
  • 20
  • 23