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...
I am implementing a custom UIWebView in an UITableViewCell but it gives exception. How is this possible?
...
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 (...
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
...
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...
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 ...
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 ...
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...
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...
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...
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...
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
...
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...
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...
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...
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 {
...
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...
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?
...
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...
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...