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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:48:58+00:00 2026-06-17T13:48:58+00:00

Is it possible to create a properly aligned UIImageView that has a resizable image?

  • 0

Is it possible to create a properly aligned UIImageView that has a resizable image?

I tried everything (e.g. images power of two, etc) and cannot make it work.

The coordinates of the UIImageView are:

po _Background

(UIImageView *) $1 = 0x14c42bd0 
<UIImageView: 0x14c42bd0;
frame = (16 38; 992 672);
opaque = NO;
autoresize = LM+RM+TM+BM;
userInteractionEnabled = NO;
layer = <CALayer: 0x14c42ba0>> - (null)

The UIImage itself is 96×96 (retina, i.e. png is 192×192 with a scale of 2). The resizable UIImage is created using:

UIEdgeInsets edgeInsets = UIEdgeInsetsMake(32, 32, 32, 32);
UIImage* resizableImage = [originalImage resizableImageWithCapInsets:edgeInsets];
[_Background setImage:resizableImage];

When turning on ‘Color misaligned images’ in the simulator the UIImageView _Background is highlighted with yellow. Removing its UIImage in the debugger:

[_Background setImage:nil];

removes the yellow highlight, i.e. no image -> no mis-alignment.

Anyone knows what is going on and how I can make sure it aligns?

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-06-17T13:48:59+00:00Added an answer on June 17, 2026 at 1:48 pm

    According to this answer: What does yellow tinting represent when using "color misaligned images" on iPhone/iOS, the yellow highlight indicates the image is stretched. Since that’s what you’re asking for with the resizable image, it makes sense that it’s always the case.

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

Sidebar

Related Questions

I'm trying to determine whether it's possible to create css for an element that
Is it possible to create transparent corners for an image on fly with PHP?
Possible Duplicate: How to “properly” create a custom object in JavaScript? Is it possible
Is it possible to create a JAR file that requires external dependencies without including
Is it possible with ASP.NET Master Pages to create content pages dynamically? That is,
I need to create a spreadsheet that randomly draws a winner that has correctly
Possible Duplicate: How do you create a Perl module? I have the script that
I would like to create a sprite with several images that will be used
Is it possible to start postgres process with a user account that has administrative
Is it possible to create an integer (or DataTime, etc) column in ListView? It

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.