Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8491183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:20:31+00:00 2026-06-10T22:20:31+00:00

I am creating an Universal app that has a scroll view. The app runs

  • 0

I am creating an Universal app that has a scroll view.

The app runs fine for both the iPhone and iPad. However the scroll view is set to the iPad dimensions. So when i run the app on the iPhone the scroll view is still set for the iPad.

Any way I can change that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:20:33+00:00Added an answer on June 10, 2026 at 10:20 pm

    You could use this:

    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
        [myScrollView setFrame:CGRectMake(0, 0, 320, 480)];
    }else{
        [myScrollView setFrame:CGRectMake(0, 0, 768, 1024)];
    }
    

    Of course you’ll have to make adjustments to the scroll view’s content size as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have a universal app (runs on both iPhone & iPad), how do
I'm trying to do the basics steps of creating a universal (iphone/ipad) app in
If I'm creating a universal iPhone/iPad app, I have two XIBs. One main XIB
I am creating an ipad and iphone (Universal App). I have implemented Paypal in
I'm creating an iPad version of an iPhone app (NOT universal). I created copies
I started by creating a universal window based app. Starting with the iPhone version
I've followed all posts that I've found about creating a Universal App that uses
I'm in the process of creating a universal iOS app that, amongst other functions,
I am building a universal app that uses a UISplitViewController for the iPad, and
When creating a new project (universal iPhone/iPad) using Core Data, there's the usual appDelegate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.