uitableview

Problem with CXMLElement in UITableView on selecting a Row

Hello everybody, I've got a tableview. In the "ViewDidLoad" method I have filled an array with CXMLElements. On debugging, I have seen that these are all CXMLNodes. CXMLElement has a property to get the subelements which is called "elementsForName". In the "cellForRowAtIndexPath:" method I used this property: - (UITableViewCell *)t...

custom background uitableview with more than 1 section (IPHONE)

Hi, i need to set an image to my UITableviewcontroller; if i have just one section on the tableview works fine with: self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"someImage.jpeg"]]; but if there are 2 section on tableview the image comes duplicate for each section. Some idea? Thanks in advance...

How to show disclosure indicator while cells are in edit mode?

I have a UITableView that can be edited. I am displaying cells as such: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) {...

iPhone Sdk: UITableViewCells copy themselves randomly

hi, i have been trying to figure this out but i just can't.... for some reason, everytime my UITableView reaches a certain length due to the number of rows and sections, cells seem to randomly copy themselves into different cells at the end of the table without me wanting or programming it... Anyone else have this issue or knows how it's...

UITableView scrollToRowAtIndexPath: help

I have a regular UITableView without any sections set up. I'm trying to automatically scroll to a row at a given index path like so... [table scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:[self getIndexToShow] inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:NO]; But when ran I get this error... 2010-07-19 18...

A tool bar that reloads the tableview when a toolbar button is pressed.

Hello, I'm trying to create a single class and xib where a tableview can be reloaded with different core entities depending on which toolbar button you press. I've got my code working and can see it loading the different entities in my fetchedResultsController. however when I message [self.tableView reloaddata] my table view delegates a...

How to set UITableViewCell background image with different heights?

I have a UITableView and would like to apply a background image to all cells. My height for each cell is variable. How should I go about creating the background image? cell.contentView.backgroundColor = [UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"background.png"]]; ...

cannot display the navigation title in the table on iPhone application

Hi, everyone, I want to ask a question about the iPhone application. I write a program which will display a table. However, I don't know why I cannot display the navigation title in the table. The following is my code // code - (void)viewDidLoad { [super viewDidLoad]; // control flow, call another user define function and ad...

Keeping keyboard visible while scrolling through searchable UITableView

Hi, I have a search bar that filters through contacts in a plist. The entries that match are listed in a table view in between the search bar and keyboard. When a user scrolls through the matches, the keyboard disappears leaving only the table view and search bar visible. How can I set up the keyboard so that it remains visible while a ...

Dynamically display images on tableview cells

Hi all, In my aplication I need to display an image or images on tableview cells depending on their availability in database. What I have done is I have planted four webviews [to show images from urls] and I'm hiding or showing these depending on their availability. There might also be a case when there's no image, when I'm hiding webv...

UITableView No Data Screen

My UITableView get data off the internet. Sometimes it doesn't receive any (cell) data. It just shows a blank table. How can I show a message/cell to the user that no data records have been found? ...

UIActivityIndicatorView in UITableView section header disappears on orientation change

Hi all, I have an iPhone app containing a UITableView in grouped style. In the ViewController I defined an UIActivityIndicatorView as a property: self.browsingIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite]; browsingIndicator.hidesWhenStopped = YES; I want to place this s...

ObjC - Hiding the separator lines of a UITableView on iPhone

I try to do this with following line: tableView.separatorStyle = UITableViewCellSeparatorStyleNone; and it works! on the simulator.. strangely when I run the app on the iPhone (3Gs) they show up again. Any ideas why this could be happening? (Also labels and images of my custom cells are displayed on wrong positions, maybe its the sa...

How can I make an image appear to flow seamlessly between tableview cells

I have a UITableView cell with an image that spans the full height of the cell. If I do not use a separator the images on each cell join up and appear as a single image, however, when I turn on the separator the image is sliced (see below). Is there a way to make the image appear on top of the table view separator? ...

UITableViewCell with all subviews disappears

I placed UITableViewCell with UITextField as UITableView's tableHeaderView in Interace Builder. When I start editing text in UITextField, UITableViewCell with UITextField disappear. They even disappear when compiling this xib in Interface Builder. Any possible solutions? ...

Sectioning on Core Data relationship for a UITableView

I have 2 entities - BlogEntry and BlogComments. BlogEntry.comments is a "to many" relationship to BlogComments | BlogEntry | ----------------- | subject | | body | | comments (rel)| | BlogComments | ------------------ | commentText | | blogEntry (rel)| Now, I have a tableview that I want to be able to have ...

UITableView + NSMutableArray weird behavior

Hi, I'm currently trying to populate an UITableView from a plist downloaded from the internet. The plist gets loaded into a NSMutableArray and then saved as a file, which works fine. When trying to populate my UITableView with it though, I run into trouble. The UITableView displays only the first 8 entries from the *plist file (but t...

How to build UITableView sectionHeader views in Interface Builder for iPhone?

Hi, I have a UITableView in grouped style in my iPhone app. Now I want to customize the section headers with an Image, a label and an activity indicator. To do this I created a new UIViewController subclass and a XIB file. I added the UIImageView, UILabel and UIActivityIndicatorView as IBOutlet properties to the ViewController and wire...

Can't make table view inactive when search bar is in use. iPhone.

I have a table view with a search bar above it, and when the search bar is pressed I want the table view to become inactive. So I have this method: - (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar { self.tableView.userInteractionEnabled = NO; } with the same class being the UISearchBarDelegate. For some reason thoug...

Changing the color of UITableView section headers

OK, I know that this has been asked previously, so please forgive me for asking again. It just seems like there has got to be an easier way to do this. Is there a 'simple' way to change the UITableView section header background color? I know that I can use the delegate method 'viewForHeaderInSection' to hand the UITableView a custom U...