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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

AppFusion - 6 in 1!
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-27-2012, 04:45 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 2
Question Best way to display my iPad app on iPhone

I am trying to also get my iPad app on the iPhone using the same Storyboard.
But having trouble.
I thought of using a UIScrollView programatically:

- (void)viewDidLoad
{
[super viewDidLoad];

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
{
UIScrollView *iPhoneView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
[iPhoneView setScrollEnabled:YES];
[iPhoneView setContentSize:CGSizeMake(1024,768)];
}

}

But you have to use:

[iPhoneView addSubView: blah];
And position the item.
But i have about 50 text boxes!

Is there any way i can do it easier?
NOTME=1 is offline   Reply With Quote
Reply

Bookmarks

Tags
ipad & iphone, storyboard, uiscrollview

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
» Online Users: 643
21 members and 622 guests
ADY, bandley, BrianSlick, Creativ, dacapo, Dattee, djbrooks111, gbenna, HDshot, IphoneSdk, iseff, jakerocheleau, jbro, joeallenpro, kampftrinker, linkmx, mer10, nimesh_158, Reyna, yurikus
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 160,619
Threads: 89,833
Posts: 383,490
Top Poster: BrianSlick (7,244)
Welcome to our newest member, yurikus
Powered by vBadvanced CMPS v3.1.0

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