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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:56:32+00:00 2026-05-13T07:56:32+00:00

I have a general question regarding UITableViews. here is my situation. I have a

  • 0

I have a general question regarding UITableViews.

here is my situation.

I have a view with a couple of buttons and a UITableView, by pressing a button, the UITableView’s Content should change. I use Custom Table Cells (the same cells in every seperate table) but of course with different content.

I’m not sure if It is good practice to define 3 UITableView instances within my view and to switch between those when clicking a button.

also i don’t know what my program should do when one of the buttons is pressed (destroy the old view? how to set a new view? overlay the new vie over the old? and then how to get the old one back once another button is pressed)…

as you see, lots of rather general questions.. maybe i was searching the wrong way, but i couldn’t find an article on the web that would provide me with the necessary information.

thank you for your reply!
greets

sam

  • 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-13T07:56:32+00:00Added an answer on May 13, 2026 at 7:56 am

    I really depends on both how you’re transitioning between the tableviews, and their styles. If you don’t have any sort of animation when switching tables, and they’re all the same size, then I’d recommend using a single view, and doing what you have to do within your delegate/dataSource methods. If you’re showing ‘table 1’, return one set of data, and ‘table 2’, another.

    If, however, the tables are different styles (grouped vs. plain), you’ll need to have different views. Also, if you’re animating one table out while another is coming it, you’ll need multiple views. Just layout three tables in IB, but set two of them to ‘hidden’. When it’s time to switch, hide the currently visible table and show the new one. Alternatively, you could use +[UIView beginAnimation:context:] to fade the old one out and the new one in.

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

Sidebar

Related Questions

I'm new to SharePoint and have a general question regarding list comparison. Currently, there
I have a very general question regarding the use of LINQ vs SQL to
I have a simple, general question regarding a real small issue that bothers me:
I have a question regarding an ArrayList of Integers, or primitive types in general.
I have general question regarding the use of pointers vs. references in this particular
I have a general question regarding the syntax of throwing an object. Consider: #include
I have a rather general question regarding JavaScript and local variables. My question is
I have a relatively general question regarding SAX. I understand how it works, and
I have a general question: What should be done when an object's behavior should
I have a general question regarding synchronized List. Lets say that in the constructor

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.