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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:48:56+00:00 2026-06-05T07:48:56+00:00

I have a Background Image Picker that lets the user select from stock images

  • 0

I have a Background Image Picker that lets the user select from stock images of from their Album. To set the Image I have the Following code:

-(void)setBackgroundImage:(UIImage *)newImage {    
    [backgroundImage release];
    backgroundImage = newImage;
    [backgroundImage retain];
    [editorContentView setBackgroundColor:[UIColor colorWithPatternImage:newImage]];
}  

Though the Images are always tiled starting form the Top Right. This works great for my 32×32 patterns, though if a User wants to use a 1024×768 Image on a 2048×2048 canvas and does not want it to tile, how can I prevent the tile?

My Only thought was to convert the Smaller Image to one that is the size of the Canvas, then set it to that.

Any Other Suggestions?

  • 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-05T07:48:59+00:00Added an answer on June 5, 2026 at 7:48 am

    You could always subclass UIView and use CoreGraphics to draw the image in -drawRect:

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

Sidebar

Related Questions

How can I select in jQuery all the div s that have background-image: url(somepath/somename.png)
Ok so I have a Background background-image: url('images/body.png'); now I want to overlay a
I have a background image that I want to repeat across (repeat-x) however when
I have a background image set to appear in place of/behind an ad slot,
I have a background image in the following div, but the image gets cut
I have a background image that I would like to display on top of
Hello guys i have set background image on my input text and text area
I have a CSS like this ul { list-style-image:url(images/bulletArrow.gif); } ul li { background:
I'm using the new CSS3 spec background-size to have a background image that slightly
I have an app that lets the user take a picture with his/her iPhone

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.