My First iPhone OS Application

Discussion in 'iOS Programming' started by mikezang, Jun 5, 2010.

  1. mikezang macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #1
    I followed "Your First iPhone OS Application" on Apple Development Site, I only change target from "iPhone" to "iPad", anything else is the same as guide.

    Now I got screen the color is only part of left top corner about 1/4 of iPad screen, what happened?

    How can I let view to scale to fit size of iPad?
     

    Attached Files:

  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    When you added the UIViewController did you choose the "Targeted for iPad" option?
     
  3. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #3
    No, I didn"t know that, just used default.
    Now how can I modify it for iPad?
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Since you're not too far into your project, I'd say start over.

    P.S. That tutorial is geared towards creating an iPhone app. There may be other things you need to adjust in order to make it an iPad tutorial.
     
  5. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #5
    Thanks for your suggestion, I will try again.

    Do you know where I can find a similar guide for iPad?
     
  6. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #6
    I restarted and I got image as below, there is a white line on the bottom of screen, is it right?
     

    Attached Files:

  7. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #7
    That white line looks about the size of a status bar.
     
  8. PatrickCocoa macrumors 6502a

    Joined:
    Dec 2, 2008
    #8
    Digging into why the sample app doesn't do what you expected is valuable as it will teach you things.

    But don't get caught up on some issue and allow it to kill your desire to continue with the sample app. If you can't figure out where the white line comes from, move on to the next thing.
     

Share This Page