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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:43:36+00:00 2026-06-03T08:43:36+00:00

Possible Duplicate: iOS 5.1 with Xcode 4.3.1: [UIColor colorWithPatternImage:] strange behavior only on device

  • 0

Possible Duplicate:
iOS 5.1 with Xcode 4.3.1: [UIColor colorWithPatternImage:] strange behavior only on device

Hi I’ve got a weird one here (I think).

I have an app where I have a uitableview which has been working fine. I’ve been re-developing and updated my iphone to IOS 5.1. Whether that is a red-herring or not, I don’t know. Anyway I notice that the bottom row of pixels of my background/selected image is missing!

((UIImageView *)cell.backgroundView).image = [UIImage imageNamed:@"myBg1.png"];
((UIImageView *)cell.selectedBackgroundView).image = [UIImage imageNamed:@"myBg2.png"];

I’ve reduced the app to a simple UIImageView at the top of the screen….

enter image description here

The purple area is a UIImageView. The grey area with yellow border is my image that ultimately will act as the b/g for my table row. All looks good in IB.

Now, when I run it on the iPhone, I get this…

enter image description here

The bottom row of pixels (yellow border) is missing. No special resizing is done on this in code, it’s just as IB places it, except the View Mode is changed to Top instead of ScaleToFill. In theory the image is left untouched.

In IB, an iPad(5.01), an iPod (4.2.1) and simulators, all works fine and the complete image is shown!

Can anyone shed any light on this, offer a solution? I’m pulling my hair out!

Thanks

Fitto

  • 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-03T08:43:37+00:00Added an answer on June 3, 2026 at 8:43 am

    Fixed it! I took off compression for the png I was using as the image.

    Found the answer via this link…

    iOS 5.1 with Xcode 4.3.1: [UIColor colorWithPatternImage:] strange behavior only on device

    Wasted a day and a half, but now works a dream.

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

Sidebar

Related Questions

Possible Duplicate: crashing on ios device while navigation using UIModalTransitionStylePartialCurl in xcode 4 HI
Possible Duplicate: iOS - Detecting whether or not device support phone calls? I'm writing
Possible Duplicate: Determine device (iPhone, iPod Touch) with iOS I am making a game
Possible Duplicate: IOS: one account two iOS developer program excuse me if it's not
Possible Duplicate: ios 5.1 with xcode 4.2 for iOS development I updated my iPhone
Possible Duplicate: Using JSON in iOS How does one parse JSON response in iOS?
Possible Duplicate: Cannot find window-based application on XCode I am pretty new to IOS
Possible Duplicate: Determine device (iPhone, iPod Touch) with iOS I have tried to get
Possible Duplicate: iOS App crashing before entering main() with Xcode 4.2 & iOS 5
Possible Duplicate: Is it possible to target older iOS versions when using Xcode 4.2

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.