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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:04:32+00:00 2026-05-16T01:04:32+00:00

I have setup a UITableView (320 wide) with a UITableViewCell created in IB, the

  • 0

I have setup a UITableView (320 wide) with a UITableViewCell created in IB, the cell is also 320 wide. After setting a background image (320 wide) in UITableViewCell (or my subclass to be correct) I have noticed that the cells fall short of the right hand side of the UI (notice the blue on the selected cell and the grey on the one above) Does anyone know what is causing this?

alt text

Cheers Gary

  • 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-16T01:04:33+00:00Added an answer on May 16, 2026 at 1:04 am

    I was setting the seperator style and the seperator color on the UITableView, this takes 1 pixel off the cell height for the seperator and offsets the backgound by about 5 pixels to the right. If I reduce the background image thats going into the cell from 320×65 to 320×64 it fits perfectly with no offset.

    alt text

    The only difference between the two screens below is:

    LEFT: UITableView Seperator = “None” (UITableViewCell background has no offset)

    RIGHT: UITableView Seperator = “Single Line” (UITableViewCell background has offset)

    DATA:

    • Cell resolution: 320×65
    • Cell view: 320×65
    • Cell Background Image Resolution: 320×65

    If you want use the separator your Cell Background Image needs to be 320×64, this will stop it shifting sideways and display the cell correctly.

    Cheers Gary

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

Sidebar

Related Questions

I have a button inside each cell. When it's pressed, the image is changed
I have setup a UITableView using a NSFetchedResultsController that displays a number of prototype
I have a UITableview setup in my iphone app. At the moment, each row
Sorry I'm pretty new to iOS dev. I have a UITableView setup from cells
I'm using storyboards and I have a UITableView. I have a segue setup that
I have a UITableView . In row I need to setup text, so I
I have created a UITableView with 4 Sections and 3 Rows so totally 12
I have setup a delegate method, so that when user selects cell from VC2,
I have a setup with sections in a UITableView which all have a custom
In my UITableView I have only a single cell, with a UITextField in 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.