uitableview

Which controller to get data for UITableViews in IPhone app?

I have a CustomersViewController with a table view of customers. Click on a customer (didSelectRowAtIndexPath) and a OrdersViewController shows a table view of orders for that customer. I have test data in a NSArray to test with for now. However, at some point I'll need to do a call to a web service to get the order data. In which contro...

Exception from UIWebView inside UITableViewCell

I am implementing a custom UIWebView in an UITableViewCell but it gives exception. How is this possible? ...

Table View Programming

Why can't I add a subview to table view cell's content view? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellTableIdentifier = @"CellTableIdentifier "; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: CellTableIdentifier]; if (...

What are the events to handle the selection of the left circular button in UITableView editing mode

Hai, I have a requirement where I have to handle the events on selecting the left round button on keeping the UITableView in editing mode. Any help would be great. Thanks, Gangadhar ...

Changing text color upon selection of a specific cell/row in a UITableView on Iphone?

Hi! I have a simple grouped UITableView fed from a couple of arrays. Changing the selected text color is no issue, using the cell.selectedTextColor method. But this results in the same color being applied no matter which cell I select. I would, for example, want the text in cell 2 to turn green upon selection, while the text of all th...

How to control the searchResultsTableView of a UISearchDisplayController?

Hey! I wonder how to take control over the table view that is used by the UISearchDisplayController. You can't overwrite the searchResultsTableView property of the UISearchDisplayController, because it is a read-only property. I've tried to overlay the searchResultsTableView by a custom UITableView. That works just once, but as soon as ...

How to mix "Custom Section Header View(s)" and "Regular Header(s)" in a UITableViewController?

Imagine a table ("StyleGrouped") with multiple sections: Some sections should have a "regular header title". There should be some buttons, between the "regular sections". Intuitively, in order to define the section titles, I would use: (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section And ...

Why does UITableViewCell backgroundView blur an image

I am subclassing a UITableViewCell and in the init function I am doing the following: UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"packagelistcell_background.png"]]; [imageView setFrame:CGRectMake(0, 0, 300, 81)]; self.backgroundView = imageView; [imageView release]; When that displays on the scree...

Table View Populating all cells with last xml entry iphone

Hi, Im trying to parse XML (which seems ok) and populate a Table View on Iphone. I'm working from apples siesmec examples. My XML looks something like this and has about 10 entries going from artist1 to artist10 <promo> <id> 42 </id> <artistname> artist1 </artistname> <img> http://address.com/avatar_42.jpg </img> </promo> If I put in...

Best Approach: iPhone String with Inline Images in UITableView

Hola! I have an issue I thought I would throw out to the S.O. world before I spent a lot of time on it. Basically I have a requirement where I am getting a string of text which has inline images, like for a chat bubble in a UITableView. These images are akin to sparklines and/or emoticons. Normally for something like this I would use a...

AccessoryDetailDisclosureButton not deselecting after I call deselectRowAtIndexPath

In my tableview I have number of rows that have disclosure detail button accessory type, and when pressing the row or the accessory, a new view is pushed to a navigation controller. I call the deselectRowAtIndexPath at the end of the didSelectRowAtIndexPath function. If I press the accessory button, I go to a new view, but it remains hi...

Limiting number of selections to one cell/row per group in a grouped UITableView on iPhone...

Hi! I´m working on a quiz application which uses a grouped UITableView, where i need to limit the users selection to one cell per group and also make the group selectable only once per group, in order to stop the user from correcting any potential wrong answers. Is there any way of doing this? Cheers, Adam ...

Load local .html file's strings into table view cells

iPhone OS Development I need to set the names of UITableView cells to strings I get from a local "file.html" file. I know I will need to parse the HTML but I'm not worried about that at the moment. If someone could show me some quick code that would set the first line of text in the html file and set it to an NSString variable, I think...

UITableView Custom Scrollbar

How can I create a custom scrollbar for a UITableView? I want to remove the default one that pops up when tracking begins and that disappears when tracking ends. I want, instead, to have one similar to that in a computer program: (a) it's on the right side of the screen and permanently visible; (b) manually scrolling the bar will scroll...

iPhone UITableView populateing from connectionDidFinishLoading

Hey all. I have been trying for hours to figure this out. I have some JSON from a NSURLConnection. This is working fine and I have parsed it into an array. But I can't seem to get the array out of the connectionDidFinishLoading method. I an am getting (null) in the UITableViewCell method. I am assuming this is a scope of retain issue, bu...

Caching issues with TDBadgedCell

This post is closely related to my previous post: http://stackoverflow.com/questions/2201256/tdbadgedcell-keeps-caching-the-badgenumber The "badge" from TDBadgedCell keeps caching the numbers. A very simple example is shown here: - (UITableViewCell *)tableView:(UITableView *)_tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { ...

Why are tableview cells hardly visible when setting tableview background image?

I can't get the searchResultsTableView cells to be fully visible when loading with a background image. The cells look quite weak and don't stand out from the background imageview, even when selected. Any suggestions? - (void)searchDisplayController:(UISearchDisplayController *)controller willShowSearchResultsTableView:(UITableView *)tab...

Two UITableView in one UIViewController problem

I considered to use two UITableView in one UIViewController which is also do data source for them but encountered the problem that while both tables visit numberOfRowsInSection only one visit cellForRowAtIndexPath at the start and both tables contain empty rows. Do someone know why this happens? ...

Resizing TableViewCell when TableView is in grouped mode

I have a TableView in my application and I've created a centered label inside TableViewCell that I'm placing in the view. When TableView is in standard mode everything is ok and the label is really centered. However when I change the mode to grouped then the label is displayed slightly to the right. I suspect this is because in grouped m...

UITableView how to "dim" the actual table when UISearchbar gets focus?

Many of the table searches I see actually dim (change alpha?) of the actual tableView when the search bar gets focused. I am trying to implement this. When I overload - (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar I am trying to do something like self.tableView.alpha = .5f But it is changing the alpha of the actu...