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 6794331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:12:34+00:00 2026-05-26T18:12:34+00:00

I am new to iPhone development. I am creating an app where I take

  • 0

I am new to iPhone development. I am creating an app where I take a picture and I must present it on the screen full screen. But I am having difficulties understanding some stuff.

For example: imagine the user selects a picture that has a different aspect ratio compared with iPad’s screen. As I am presenting the picture full screen, I don’t want to display any black bars left/right or top/bottom and I would like not to distort the picture. How do I calculate the size to display the picture. I mean, how do I calculate the picture size, based on the screen size and orientation so the picture is displayed on the screen without borders, even if the picture has to bleed.

Sorry for asking such a noob question.

Can you point me the direction? Please point me to some code, as my brain is swimming in theory and a code will help me understand that. Thanks.

  • 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-05-26T18:12:34+00:00Added an answer on May 26, 2026 at 6:12 pm

    You can use UIImageView to display image (UIImage).

    You can manage the behavior of displayed image (cropped, scaled to fit, centered) by changing property contentMode of UIImageView instance:

    Specifies how a view adjusts its content when its size changes.

    typedef enum {
      UIViewContentModeScaleToFill,
      UIViewContentModeScaleAspectFit,
      UIViewContentModeScaleAspectFill,
      UIViewContentModeRedraw,
      UIViewContentModeCenter,
      UIViewContentModeTop,
      UIViewContentModeBottom,
      UIViewContentModeLeft,
      UIViewContentModeRight,
      UIViewContentModeTopLeft,
      UIViewContentModeTopRight,
      UIViewContentModeBottomLeft,
      UIViewContentModeBottomRight,
    } UIViewContentMode;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm pretty new to iPhone development but I'm close to releasing my first app
I am new to iphone application development. I am building an iphone app where
I am new to iphone development.. am creating one small application where two viewcontrollers
I'm relatively new to iPhone Development, so this may be my fault, but it
New to iPhone development, but I've been given a big project as a first
I am new to iPhone/Objective-C development, I am successfully parsing XML with NSXMLParser but
I'm new in iPhone Development. I'm creating an application in which i need to
Im new to iphone development. here i want to view the screen like landscape
I am new to Iphone development. I have tried the following code, but it
I'm new to iPhone development, and I wanted to create an app with tab

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.