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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:36:31+00:00 2026-05-31T02:36:31+00:00

I have a UITableViewController class for a simple table view(like a 2-4 cells User

  • 0

I have a UITableViewController class for a simple table view(like a 2-4 cells User ID and Password,… )I represent this table view with “presentModalViewController” and the problem is the table view’s width will be fit to whole screen’s width and I want to make it smaller and be in a center of screen.I used the “viewWillAppear” and tried to set the self.tableView.frame to a CGRect like (150,150, 500, 600), now there are 2 problems 1) the x and y of new table view is alway( 0,0) the second issue is the frame of tableView has different color than background. how can I fix these?

Thanks,
Kam

  • 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-31T02:36:32+00:00Added an answer on May 31, 2026 at 2:36 am

    the problem is the table view’s width will be fit to whole screen’s width and I want to make it smaller and be in a center of screen

    Then don’t use a UITableViewController. The docs on UITableViewController clearly say this: if a table doesn’t occupy the whole screen, use your own UIViewController subclass instead.

    What you want, probably, is a UIViewController whose view will occupy the whole screen, as usual – and that view contains a table view placed in the desired location.

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

Sidebar

Related Questions

this my problem i have a class X that inherits UITableViewController class and a
I have 8 cells that are being built in my UITableViewController. I would like
I have a structure like this.... UITableViewController -> UITableViewCell -> UIView I need the
I have a custom class which is a UITableViewController, this is inside of a
I have a simple class: #import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @interface MyTableViewController : UITableViewController {
I have a class that is of type UITableViewController . This class has a
So I have this class: @interface AmountViewController : UITableViewController <UITableViewDelegate, UITextFieldDelegate>{ NSManagedObjectContext *managedObjectContext; NSManagedObject
I have a class inherited from UITableViewController and this is also the root class.
I have a UITableViewController with an Edit button. When this is clicked, the user
I have a re-usable UITableViewController sub-class, call it tableVC. Selecting a table row pushes

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.