copenndthagen
copenndthagen

Reputation: 50752

Create text content based iPhone/iPad app

I have basic knowledge of iPhone app development and want to create an app which would have lots of text content (kind of like tutorial). I plan to use table-view for the same (list and detail views). Now my question is to optimize the app for both iPhone/iPad screens, how do I do that ? More text should be displayed on iPad screen Vs less text on iPhone screen.. I am not sure if that would be automatically taken care of. I am aware of 2x mode on iPad, but I do not want scaling. Any example of similar app would be really great.

Also, for the app submission, what are the current version requirements? (sdk, xcode, etc)

Upvotes: 2

Views: 801

Answers (2)

sElanthiraiyan
sElanthiraiyan

Reputation: 6268

Michel is right. And to use a webview you could use the below code,

UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
[webView setDelegate:self];

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"yourHTMLFileName" ofType:@"html"]isDirectory:NO]]];

[self.view addSubview:webView];

To know more about UIWebView you could have a look at the documentation. http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebView_Class/Reference/Reference.html

Upvotes: 1

Michael Dautermann
Michael Dautermann

Reputation: 89509

Why not have all your text content be HTML (i.e. web pages) and then each click on a section or chapter entry in your table would open up a web view that points to that HTML-formatted text page?

That would take care of your scaling and resizing issues.

Upvotes: 2

Related Questions