Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Jobs and Commerce > Help Wanted

Reply
 
LinkBack Thread Tools Display Modes
Old 07-20-2011, 05:43 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 12
leofea is on a distinguished road
Smile Help greatly needed! $15 for your time!

Hi All,

I am new to app development, and want some help with universal apps!

Basically, I have a tutorial app that someone has done for me explaining different views.

I have upgraded the target for a universal app.

I set the NIB to
TutorialViewController.xib for the iPhone version
and TutorialViewController-iPad.xib for the iPad version.

However, there is a button on there which, when tapped, takes you to
"TableView.xib". There is then a table view, and when a item is tapped in the table, it takes you to "TextView.xib".

Basically, I want to make it so that when the app is run on an iPad it goes to
"TableView-iPad.xib" and "TextView-iPad.xib". Remembering this is a universal app, and not two separate apps. So I guess the app will somehow have to detect what device it is running on?

As I said, I'm only learning at the moment, but for most of you this is probably easy as anything! If anyone can help, it would be useful if I could send you the tutorial I have, and then for you to add the little bit of code where it detects what device it needs to show and then send it back to me.

I would be happy to send you $15 for your time!

PM if you can help

Thank you and I hope you can help!

Leo
leofea is offline   Reply With Quote
Old 07-20-2011, 05:44 PM   #2 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

This belongs in jobs.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is online now   Reply With Quote
Old 07-20-2011, 05:49 PM   #3 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 12
leofea is on a distinguished road
Default ?

I didn't know where to post it.

I'm not looking to get help making an app, I just want to learn how things are done!

I have tried asking before but not got any response, so I was just offering $15 for helping me out
leofea is offline   Reply With Quote
Old 07-20-2011, 08:04 PM   #4 (permalink)
Super Moderator
 
Join Date: Jan 2011
Posts: 434
Rhade is on a distinguished road
Default

Generally speaking, we consider anything involving money to be a job. Moving...
Rhade is offline   Reply With Quote
Old 07-21-2011, 07:29 PM   #5 (permalink)
Registered Member
 
panzeriti's Avatar
 
Join Date: Mar 2009
Posts: 323
panzeriti is an unknown quantity at this point
Default

A whole 15 bucks! Score!
__________________
My Apps
panzeriti is offline   Reply With Quote
Old 07-22-2011, 01:00 AM   #6 (permalink)
Daddy Cool
iPhone Dev SDK Supporter
 
MarkC's Avatar
 
Join Date: Mar 2009
Location: Yorkshire, England
Age: 100
Posts: 1,616
MarkC is on a distinguished road
Default

I'm feeling charitable.

There's (at least) two ways you can do this. 1) Programmatically force the nib when you want the distinction, in the first example it'd be something like:

Code:
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
    mainMenu = [[MainMenu alloc] initWithNibName:
                 @"TableView-ipad.xib" bundle:nil];
} else { 
    mainMenu = [[MainMenu alloc] initWithNibName:
                 @"TableView" bundle:nil];
}
However, there's a simpler way 2) if you've named your nib 'cleverly', with a device modifier, that'll work automagically and you don't need the code. You do this by renaming your iPads xib to TableView~ipad.xib and TextView~ipad.xib - note the lowercase ipad and the tilda rather than hyphen.

Choice is yours -hope that helps...
MarkC is offline   Reply With Quote
Old 07-22-2011, 01:54 AM   #7 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

It's cool guys, I already helped him out (for free) via email yesterday. +karma for you MarkC.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is online now   Reply With Quote
Reply

Bookmarks

Tags
nib, universal app, universal app problem, viewcontroller

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 175,648
Threads: 94,112
Posts: 402,870
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:32 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0