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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:51:55+00:00 2026-05-31T04:51:55+00:00

I have a simple grouped uitableview with a nav bar and an Edit nav

  • 0

I have a simple grouped uitableview with a nav bar and an “Edit” nav bar item. the Edit button applies only to the first section, and the other sections of the table do totally different things (think iPhone Settings). My problem is with deleting the last cell of this particular section of the table. Whenever the user deletes the last cell, I am removing the “Edit” button from the nav bar (Cause its not applicable anymore…).

So I do this:

- (void)tableView:(UITableView *)aTableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {

 .....

    if ([section count] == 0) {
        self.navigationItem.rightBarButtonItem = nil;

 .....  
    }

 .....

}

The problem is that now the other sections are not functional, meaning, I cant click on them anymore and they dont react. I think it’s because I did not click on “Done” on the nav bar cause this one was deleted after deleting the last cell, so I am basically still in “editing mode” (not sure if i am right here..).

In any case, I tried to call setEditing:animated: manually after deleting the last cell, but that doesnt help.

For reference:

- (void)setEditing:(BOOL)editing animated:(BOOL)animated {

NSLog(@"****************** entering setEditing:animated");

[super setEditing:editing animated:animated];
[tblSimpleTable setEditing:editing animated:animated];

}

Any help with this would be much appreciated. 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-31T04:51:56+00:00Added an answer on May 31, 2026 at 4:51 am

    Have you tried UITableView* method reloadSections:withRowAnimation:
    after

    [tblSimpleTable setEditing:editing animated:animated];
    

    ?

    Works fine on iOS 5. Might be buggy on lower versions.

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

Sidebar

Related Questions

I'm having trouble changing the section header for my grouped uitableview. I have tried
I have a grouped UITableView with some large images. However, scrolling performance is quite
I have a grouped tableview that is populated with XML data in one section.
I have a UITableView that is styled as a grouped tableView. Under certain circumstances
I have encountered a really puzzling bug. The first row of my UITableView returns
In my iPhone app, I have a (non-grouped) UITableView which uses all the bells
I have a UIView with a grouped UITableView and I'd like the UIView to
I have simple regex \.*\ for me its says select everything between and ,
I have simple win service, that executes few tasks periodically. How should I pass
i have simple regular expression: ^123$ Matches are for example 123 1234 etc. How

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.