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?
|