uitableview

iOS 3.2 breaks UITableView update animations

I'm trying to make a simple accordion-style menu system for iPad using a UITableView and expanding rows. The way I implement this is storing the selected index path and in heightForRowAtIndexPath: conditionally setting the row with that index to be larger. In didSelectRowAtIndexPath: I provide an empty update block so that the table wil...

Problem switching between portrait mode and landscape mode for a table

Hello, I have a UIViewController that inherits all the delegation for the UITable. I have a UITableView called table that is set in my simple_tableViewController.h. I have set - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } but the main view rotates but the table does ...

How to avoid content offset to reset when a view is superposed

Hello again to all, I hope this question doesn't get answered by MR. Marcus he is a very busy man and I feel a little ashamed when has to answer because no one can. I have this pretty much standard tableview with a bigger than normal cell at the end that holds a UITextView. When I tap inside the cell the keyboard shows up and the table...

How do I add a background tint to the outside of the UISearchDisplayController table view?

In my view controller, when I instantiate my UISearchDisplayController object, I set its various properties, including the background color of the searchResultsTableView property: self.searchDisplayController = [[[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self] autorelease]; searchDisplayController....

UITableView Not Scrolling With UISearchBar

What I want to achieve is a UISearchBar that moves up and covers the UINavBar, and contains a cancel button on the right of it. All goes well, until I use the following line of code: searchDC = [[[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self] autorelease]; What ends up happening is the UITableVi...

how to get plist file's data content in tableview's cell in iphone?

In my application i hve tableviewcontroller and its detailviewcontroller(dvc). dvc contains textfield and button.I actually want when i clicked on button textfield text is replaced the tableview cell text.what can i do ? explain in detail ...

What to use instead of initWithStyle: reuseIdentifier:

I have watched the Lynda iPhone tutorials and on the lesson about Tableviews there is a method to create a cell as follows. //create cell UITableViewCell *cell = [[UITableView alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentidier:@"cell"]; but Xcode says there is no such me...

Section on top of section iphone table help

Hello, i am building a sectioned table, and it is showing up with what looks to be a section on top of a section. You can see on the image that there is a white line under each section. The image Here is the code i have to build the table: - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return [alertList c...

Editing a plist within Xcode

I would like to edit a plist from Xcode which I will use to fill the table view. The thing is I have an array of images, and the user can add one of these images to a favorites list. This needs to be written to the plist. So I need the index number of the image and the name they choose to save it with. How can I write to a plist? Th...

Can't find the actual 'detail button' in a tableView's row

When I click on my tableView's detail-button... I can manage to get the section number, the row number, and even the cell itself... but why is the actual "detail button" unobtainable? (NSLog always displays "(null)" for the button.) - (void) tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)inde...

How can I add a subview to the bottom of a UITableView?

I am using the EGOTableViewHeader class provided from: http://www.drobnik.com/touch/2009/12/how-to-make-a-pull-to-reload-tableview-just-like-tweetie-2/ I am able to display my view at the top of my UITableView: refreshHeaderView = [[EGORefreshTableHeaderView alloc] initWithFrame:CGRectMake(0.0f, 0.0f - self.tableView.bounds.size.heigh...

How to corectly implement - (NSIndexPath *)indexPathForSelectedRow when tryng to retrieve which table cell is selected

I have a delegate for my table view, and would like to be able to trigger an action when the user selects a cell in the tableview. How is the method - (NSIndexPath *)indexPathForSelectedRow correctly implemented? Thanks in advance. ...

Disable the Alert Box in UIWebView

Hi, I am loading an External web page in the UIWebView. When the web page loads, there is an Alert Box ( with OK and Cancel buttons) with some Suggestion/ Info about the web page. I want to block this Alert Box when the web page loads in the UIWebView component in my iphone app. How can I implement in my code? Thanks in advance. Kind ...

Table View header hiding like search bar

How would I go about letting a table view's header view scroll in and out of bounds even when the table's overall content size is not larger than the bounds. As an example in the Mail.app even in views with no messages you can still scroll the search bar in and out of view (with no scroll bar I should add). How can I get this functionali...

How to determine if the user has scrolled to the bottom of the UITableView?

How can I determine if the user has scrolled to the last cell/bottom of a UITableView? ...

Inserting row to end of table with UITableViewRowAnimationBottom doesn't animate.

I have a quick, probably basic question regarding UITableView in iOS. I'm trying to insert a row at the end of my table. It works with every animation except UITableViewRowAnimationBottom. If I specify this particular animation, the cell appears at the end of the table, rather than animating. My code is essentially as follows: - (void)...

iphone SDK 4 Grouped TableViewCell double border on top

Hi Guys, Perhaps it's very simple but I can't figure it out. I have a custom TableviewCell. I'm using iPhone SDK 4. I am creating just one row in table view (Grouped) but sadly that table view has double border on top and all other sides have normal single border. I must say that I noticed that when upgraded to Xcode 3.2.3 and iPhone S...

How can I use drawRect to load an image in a UITableView

I have a grouped UITableView with some large images. However, scrolling performance is quite poor (note: it was excellent before the iOS 4 upgrade, now it's very jittery). I've read that using drawRect instead of adding subviews to the cell could improve performance. First question: Is that true? Second question: If it will increase p...

Where to put Root Controller?

Hi I'm getting better and better with doing things for the iPhone in xcode, but here I have ran into a dead end. I'm trying to build an app with two views: the main one and one for settings. I want to be able to switch between the two of them. Since I need every pixel in the main view I have built a switchView class that simply switch ...

Custom UITableView component?!

Hi, I have succesifully customized a UITableView component in my UIViewController with all kind of stuff. Like borders on top, sides and bottom, spaces between cells and etc... The problem is that I have done this in the implementation file of my UIViewController. I want to create a UITableView component with all that already in it, s...