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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:23:36+00:00 2026-05-26T13:23:36+00:00

So I have a UITableView in a .xib file. That’s all that’s in it.

  • 0

So I have a UITableView in a .xib file. That’s all that’s in it.

In the cellForRowAtIndexPath method, I use a custom UITableViewCell. The UITableViewCell width in IB is 320.

I dropped in a UISegmentedControl and centered it per the blue guide lines. When I present the table in a popover, the UISegmentedControl in the UITableViewCell is not centered. It’s like the UITableViewCell gets cut off. I included a picture.

Is there something that I am forgetting in the sizes of things? I have another 4 segmented control where although the segmented control shows in the UITableViewCell, it is cut off. My contenstSizeForPopover is set to 320 for the width also.

enter image description here

  • 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-26T13:23:36+00:00Added an answer on May 26, 2026 at 1:23 pm

    When you put the cell into a group table view, the cell makes its content area 20 points narrower to allow for table border/background area. That’s why your controls are getting cut off.

    You can probably just set your controls to have flexible width:

    autosizing with flexible width

    but you’ll have to keep the resizing in mind when you design your cell layout.

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

Sidebar

Related Questions

I have a UITableView with custom cells that were defined in the xib file,
I have an UITableView showing custom view cells that I've designed in interface builder.
I have several UIViews that are on my xib file and would like to
I have a UITableView with custom cell. I have created seperate class with xib
I have a UITableView cell that is going to have a variable size depending
I have a UITableView that displays single large images in each cell. The names
I have a uitableview that loads fairly large images in each cell and the
In my iPhone app I have a UIViewController that has a UITableView and another
Greetings, Problem: I have a main view, that already is associated with a xib
I have a UITableView that I populate with data that i download over 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.