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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T12:31:20+00:00 2026-05-29T12:31:20+00:00

I am developing an app for iPhone/iPad using Objective C. In my app I

  • 0

I am developing an app for iPhone/iPad using Objective C. In my app I am having an UiScrollView which is having an UIImageView inside it. I can scroll and Zoom the Image inside the Scroll View.

All works fine.But my problem is that when I am loading the Image Inside a uiscrollview, its position is at something at center but not exactly.

I want that either my image should be center aligned or at the Top Left corner.

I had set the contentoffset to (0,0) and also tried setting the AutoresizingMask to different values.

Please let me know if somebody has any idea or solution.

  • 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-29T12:31:23+00:00Added an answer on May 29, 2026 at 12:31 pm

    contentoffset is something of the scrollview and is probably not right for this situation. If you want the image to be in the center do this:

    imageview.center = scrollview.center;
    

    If you want the image to be at the top left corner of the scrollview do this:

    imageview.frame = CGRectMake(0,0,image_width,image_height);
    

    Good luck!

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

Sidebar

Related Questions

Am developing an app in iphone in which reports can be sent through email.
I am developing an App for the iPad/iPhone and I am using an AdBanner
I am developing an iphone/ipad app to connect with other devices through Bluetooth using
I am developing for the iOS and checking my app with iPhone and iPad.
I am developing an app for iphone/ipad that I have some problems with. I
I am developing a iphone/ipad app. Problem is that when i change the orientation
I am developing an app in iPhone I am using an NSRange object in
I'm developing an iPhone/iPad app that supports dragging items between table views. Since all
I'm developing a multi device App with separate views for iPhone and iPad. Within
I'm developing an iPad app that will be distributed in-house using the Enterprise Program

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.