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

  • SEARCH
  • Home
  • 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 6533313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:06:36+00:00 2026-05-25T10:06:36+00:00

Hello i have an image such as this And i would think that it

  • 0

Hello i have an image such as this
enter image description here

And i would think that it could stretch just fine. Its 17px wide and 30 px tall.

I just want to be able to stretch it horizontally. But this is what i end up with when i stretch it.
enter image description here

With out stretching it…enter image description here

Maybe I’m being picky about these corners but it just seems like it should work a little better than it is.

Any help would be awesome!

int textWidth = [text length] * 10;

    CGRect rect = CGRectMake(32.50f, 14.5f, 40.0f, 30.0f);

    UIImage* img = [[UIImage imageNamed:@"screen_displayer_rounded.png"] stretchableImageWithLeftCapWidth:8 topCapHeight:0];
    UIImageView* imgView = [[UIImageView alloc] initWithFrame:rect];

    [imgView setImage:img];    

    //[imgView addSubview:label];
    NSLog(@"imge %@", imgView.subviews);

    [self addSubview:imgView];
  • 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-25T10:06:37+00:00Added an answer on May 25, 2026 at 10:06 am

    You should preserve at least 5 pixels horizontally and 6 vertically. Therefore use 5×6 as your caps instead 4×0 (btw, 0 means stretch the whole image). This way, iOS will stretch your image using the pixels sixth and seventh (marked in red below).

    corner

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

Sidebar

Related Questions

Problem Hello all! I have this code which takes my jpg image loops through
Hello i have this Gmap v3 code that shown the multiple markers (20 markers)
Hello I have this callback function when an image is uploaded to the server
Hello I have a item list that shows on my asp.net page like this:
Hello I have been having trouble with this for a while now. I have
Hello I am sorry to bother you with such a simple question but this
Hello i have the this problem, i need your help to figure out what
Hello im trying to echo out a image in side pagenation but is just
Hello I have table name FriendsData that contains duplicate records as shown below fID
Hello I have a c# application that has a button Submit and in the

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.