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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:12:13+00:00 2026-05-24T12:12:13+00:00

Ok so ive been at this problem from a day or so now, seems

  • 0

Ok so ive been at this problem from a day or so now, seems to be a fairly common problem amongst new iOS devs. However, ive search google, appledev, stack overflow etc.

However, ive had trouble finding the correct solution. No where has clear answers.

I need the segmented control to either change the tabledata source or show a new view entirely, either would be fine.

At the moment, i have a work around solution where i put the segmented control inside a tableheader, this would work fine, but i dont want the segmented control to scroll with the table cells.

Im trying to have it static and unscrollable, just like the Navigation bar.

Ive tried a few option in interface builder but neither of them work, either they dont show up or i get a crash because it couldnt find the table view.

Although, i do know it has something to do with putting a view inside a view?

If anyone has a spare moment to write a quick but detailed guide, i would be very thankful.

edit

Attempt 1:
in IB…

View

-> Tableview (tableview inside the parent view)

creates this error

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "EventsViewController" nib but didn't get a UITableView.'
  • 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-24T12:12:14+00:00Added an answer on May 24, 2026 at 12:12 pm

    First of all you will need a single controller which will contain the segmented control, table view and other elements which you want to add.
    Since there is a single controller for your application, any change in the segmented control can be captured in it. Once you capture the event you can decide whether to reload the tableview by updating the tableview or load a new view.

    This new view can also be loaded as a modal view or as a new view to a navigation control or as a subview to the current view. (the call is left to you).

    The advantage will be the segmented control and table view will be part of a UIView and scrolling one will not scroll the segmented view out of sight. Other advantage will be the new view will be loaded on top of the current view. You can have delegate methods to handle the back press event on the new view. You can also get data from the new view to a single controller.

    UIView
          --- Segmented control(you can wrap this into a seperate UIView
          --- UITableView (it can also be wrapped into a seperate uiview )
          --- Other widgets
    

    Now you can have a single view controller controlling the above Main UIView. Hope this helps you. I have used a similar approach in one of my apps.

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

Sidebar

Related Questions

I've been batting this problem around in my head for a few days now
I've been fighting this problem for many hours now and could really use some
I've been going at this problem for a solid couple hours now and having
I've been researching this problem for awhile now and I can't seem to come
I've been stuck on this for a day now! I'm just getting started with
So I'm been pounding on this problem all day. I've got a LinqDataSource that
I've been trying to fix this problem almost all day (or it feels like
I've been trying to solve this problem all day, and I've read some conflicting
Ive been struggling with this for a day or two. Not just the coding
I've been having this problem for a while and it's driving me nuts. I'm

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.