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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:32:55+00:00 2026-05-20T15:32:55+00:00

I am trying to program a basic task manager however at this point you

  • 0

I am trying to program a basic task manager however at this point you just select the task and it passes to another pane for the details. How do I make the tableview inside to look like the native settings app?

> #import "RootViewController.h"
> #import "DetailViewController.h" @implementation RootViewController
> @synthesize toolbar; @synthesize
> window;
> 
> #pragma mark -
> #pragma mark View lifecycle
> 
> 
> 
> - (void)viewDidLoad {     theArray = [[NSArray alloc]
> initWithObjects:@"Kill Taylor",@"Stab
> Taylor",@"Pay Jordan",nil];
>   //theArray = [[NSMutableArray alloc]
> init];
>   
> 
>     [super viewDidLoad];
> 
>   addButton = [[UIBarButtonItem alloc]
> initWithBarButtonSystemItem:UIBarButtonSystemItemAdd
> target:self
> action:@selector(addButtonPressed)];
>   self.navigationItem.rightBarButtonItem
> = addButton;  self.navigationItem.leftBarButtonItem
> = self.editButtonItem;    //self.navigationItem.rightBarButtonItem
> = addButton;    // self.navigationItem.rightBarButtonItem
> = addButton;
>     // Uncomment the following line to display an Edit button in the
> navigation bar for this view
> controller.
>     // self.navigationItem.rightBarButtonItem
> = self.editButtonItem; }
> 
> 
> -(void) addButtonPressed {    NSString *selectedAction = @"add";
>   
> 
>   DetailViewController *dvController =
> [[DetailViewController alloc]
> initWithNibName:@"DetailView"
> bundle:[NSBundle mainBundle]];
>   dvController.selectedAction =
> selectedAction;
>   //dvController.selectedTask =
> selectedTask;
>   [self.navigationController
> pushViewController:dvController
> animated:YES];    [dvController
> release];     dvController = nil; }
> 
> 
> - (void)viewWillAppear:(BOOL)animated {
>     [super viewWillAppear:animated];   }
> 
> /*
> - (void)viewDidAppear:(BOOL)animated {
>     [super viewDidAppear:animated]; }
> */ /*
> - (void)viewWillDisappear:(BOOL)animated
> {     [super viewWillDisappear:animated];
> }
> */ /*
> - (void)viewDidDisappear:(BOOL)animated
> {     [super viewDidDisappear:animated];
> }
> */
> 
> /*  // Override to allow orientations
> other than the default portrait
> orientation.
> - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
> {     // Return YES for supported
> orientations.     return
> (interfaceOrientation ==
> UIInterfaceOrientationPortrait); }  */
> 
> 
> 
> // Customize the number of sections in
> the table view.
> - (NSInteger)numberOfSectionsInTableView:(UITableView
> *)tableView {
>     return 1; }
> 
> 
> // Customize the number of rows in the
> table view.
> - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
> {     return [theArray count];
> 
> }
>  
> 
> 
> // Customize the appearance of table
> view cells.
> - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath
> *)indexPath {
>     
>     static NSString *CellIdentifier = @"Cell";
>     UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
>     if (cell == nil) {
>         cell = [[[UITableViewCell alloc]
> initWithStyle:UITableViewCellStyleDefault
> reuseIdentifier:CellIdentifier]
> autorelease];
>     }
>   
>     cell.textLabel.text = [theArray objectAtIndex:indexPath.row];    
>     return cell;   }
> - (void)setEditing:(BOOL)editing animated:(BOOL)animated {
>     if (editing)
>     {
>         // turn on the "add" button when editing
>         //self.navigationItem.rightBarButtonItem
> = addButton;
>     }
>     else
>     {
>         // remove the "add" butto when not editing
>         //self.navigationItem.rightBarButtonItem
> = nil;
>     }
>   
>      [super setEditing:editing animated:animated]; }
> 
> 
> /* // Override to support conditional
> editing of the table view.
> - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath
> *)indexPath {
>     // Return NO if you do not want the specified item to be editable.
>     return YES; }
> */
> 
> 
> /* // Override to support editing the
> table view.
> - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
> forRowAtIndexPath:(NSIndexPath
> *)indexPath {
>     
>     if (editingStyle == UITableViewCellEditingStyleDelete) {
>         // Delete the row from the data source.
>         [tableView deleteRowsAtIndexPaths:[NSArray
> arrayWithObject:indexPath]
> withRowAnimation:UITableViewRowAnimationFade];
>     }   
>     else if (editingStyle == UITableViewCellEditingStyleInsert) {
>         // Create a new instance of the appropriate class, insert it into
> the array, and add a new row to the
> table view.
>     }    }
> */
> 
> 
> /* // Override to support rearranging
> the table view.
> - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath
> *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
> { }
> */
> 
> 
> /* // Override to support conditional
> rearranging of the table view.
> - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath
> *)indexPath {
>     // Return NO if you do not want the item to be re-orderable.
>     return YES; }
> */
> 
> 
> #pragma mark -
> #pragma mark Table view delegate
> 
> - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
> *)indexPath {     NSString *selectedAction = @"details";  NSString *selectedTask = [theArray
> objectAtIndex:indexPath.row];
>   DetailViewController *dvController =
> [[DetailViewController alloc]
> initWithNibName:@"DetailView"
> bundle:[NSBundle mainBundle]];
>   dvController.selectedAction =
> selectedAction;
>   dvController.selectedTask =
> selectedTask;
>   [self.navigationController
> pushViewController:dvController
> animated:YES];    [dvController
> release];     dvController = nil;      }
> 
> 
> #pragma mark -
> #pragma mark Memory management
> 
> - (void)didReceiveMemoryWarning {
>     // Releases the view if it doesn't have a superview.
>     [super didReceiveMemoryWarning];
>     
>     // Relinquish ownership any cached data, images, etc that aren't in use.
> }
> 
> - (void)viewDidUnload {
>     // Relinquish ownership of anything that can be recreated in
> viewDidLoad or on demand.
>     // For example: self.myOutlet = nil; }
> 
> 
> - (void)dealloc {
>     [super dealloc]; }
> 
> 
> @end
  • 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-20T15:32:56+00:00Added an answer on May 20, 2026 at 3:32 pm

    Select in the interface builder the tableview. Then go to the properties. There should be something like style. Switch it and you have the tableview of your dreams 🙂

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

Sidebar

Related Questions

I'm trying to make a simple blackjack program. Sadly, I'm having problems right off
I'm trying to make a setup program for an ASP.NET web site. I need
I'm trying to make a program in Visual C# that has my one created
I'm trying to make a TCP Client program in C where the client will
I'm trying to compile the basic tutorial program at http://doc.trolltech.com/4.4/mainwindows-application.html and running into a
I'm trying to write a basic Erlang program that reads in a file in
Question I'm trying to create a basic wxWidgets program with a text entry box,
I am currently trying to program my first ajax interface using Rails. The application
Imagine we have a program trying to write to a particular file, but failing.
I'm trying to automate a program I made with a test suite via a

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.