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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:50:17+00:00 2026-05-23T01:50:17+00:00

noob question regarding ios development. In a previous project, I have a UITableViewController, to

  • 0

noob question regarding ios development.

In a previous project, I have a UITableViewController, to which I am adding a button in the viewDidLoad method, like this:

UIBarButtonItem *button = [[UIBarButtonItem alloc]
                           initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh
                           target:self
                           action:@selector(addMeasurement:)];
self.navigationItem.rightBarButtonItem = button;
[button release];

This works great.

I now have another application in which I am trying to do the same thing, except now I have a UITabBarControllerDelegate at the top (the default that comes along with “Tab Bar Application”), whose first view is the UITableViewController.

The First View has no nib as it’s just a table. I am trying to do the same thing with the same code, trying to add a button in the viewDidLoad method, but it’s not working.

So in the firstViewController (which is a UITableViewController) I am adding the above code to the viewDidLoad method, with no success.

It is showing data in the table, however (from a managedObjectContext). I’ve also tried putting the code in the “initWithStyle” method of the firstViewController but that doesn’t work either.

Any ideas? Clearly I’m not understanding something.

Thanks!

  • 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-23T01:50:18+00:00Added an answer on May 23, 2026 at 1:50 am

    Do this.

    1. Create the Tab Bar Controller and set it as your rootController.

      //You will not have three tabs and you need three view controllers//
      
    2. Set your First View controller as a Navigation View controller.

      // You will now have the Navigation bar at the top//
      
    3. Create a new file which is a subclass of the UITableViewController.

      // set this as your delegate and datasource for your table view controller methods//
      // pull a table view controller inside the Navigation View Controller as mentioned in (2) & you will have a tableview and navigation view in FirstViewController. Similarly work with the other two tabs
      

    If you have any more doubts; please watch this tutorial on how to do all of these.

    http://www.youtube.com/watch?v=LBnPfAtswgw

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

Sidebar

Related Questions

another noob question regarding F#. If I have the following code... let ExeC =
bit of noob question regarding .Net and C#. I have a function that registers
Sorry for a noob question regarding MySQL. I downloaded FlightStats to learn about mysql
(pardon the noob question in advance) I have 4 classes: class Person {}; class
Sorry for the noob question I'm just a little confused. If I have an
Maybe this is a noob question, i have an NSURL from savePanel, and i
This seems like a noob question, but the simple answer is eluding me. I
I am new to TDD and DDD and I have one simple question regarding
noob question here. I have a has_many :through relationship between items and tags. Finding
Noob question (probably). I have a class with a var textFieldObjets:Textfield in my class

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.