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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:07:10+00:00 2026-05-31T18:07:10+00:00

I am trying to accomplish this: Consider a table view with Search Bar on

  • 0

I am trying to accomplish this:

Consider a table view with Search Bar on its header.Table view gets
refreshed whenever string is searched.

I am having 2 classes

TableViewController(UIViewController subclass)

contains UITableView -That shows the table whose

header view of the table is loaded from the Header class(UIToolBar subclass)

.

Header(header of the UITableView)
-Contains UISearchBar and its delegate

The

UISearchBarDelegates call back a function in TableViewController

that calls

- (void)reloadSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation  

which causes App to crash

The function call stack frame is as follows

[UITableView reloadSections:withRowAnimation:]  
[TableViewController functionThatCallsReloadSection]  
[Header searchBarSearchButtonClicked:]  

The reloadSection is causing the App to crash .Any ideas why its happening so?

Is it because the delegate function is still active on the stack
while the the table view header is reloaded??

I am not changing any anything related to the tableview (no change in the number of rows or sections).All i am trying to doing is to just reload the table view.

Edited:
I am trying to do all these things in iPad,which provides a popover while using UISearchDisplayController which i dont want to use.I already have a table view which i want to refresh once the text is entered and search button is hit,using the search delegate.
The only problem is that once i call [UITableView reloadSection:] in the search delegate of UISearchBar(UISearchBar is located on the header of the UITableView that i want to reload) the app crashes.

  • 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-31T18:07:11+00:00Added an answer on May 31, 2026 at 6:07 pm

    I was able to fix the problem by using the tableViewHeader instead of loadind the table view header using the table view header delegate method where i used a pointer thats initialised to the table view header.

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

Sidebar

Related Questions

So I am trying to accomplish something like this: SELECT * FROM table WHERE
I'm trying to accomplish the following using CSS: <table border=1 width=300px> <tr> <td rowspan=2>This
I am essentially trying to accomplish this following: Table 1: MemberID | selection 1
I'm trying to accomplish this: strcat('red ', 'yellow ', 'white ') I expected to
I'm trying to determine if there is a way to accomplish this elegantly. I
I am stuck with using Dojo to accomplish this. Basically what I am trying
I'm trying to accomplish what's being demonstrated at this site for an experiment I'm
I could probably write this myself, but the specific way I'm trying to accomplish
Consider the following classes: public interface IView { /// <summary> /// Ignore this (its
Im trying to accomplish this: http://jsfiddle.net/WkVb9/ But instead of using a textarea, use an

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.