I set up my viewController to use the edit button in the way Apple recommends:
self.navigationItem.rightBarButtonItem = self.editButtonItem;
When the user taps the edit button, it causes the setEditing:animated: method to trigger. In this method, I add or remove a "new row" depending on the editing value (i.e. a row the user can tap t...
The proper height for my custom UITableViewCells depends on their width. Unfortunately, it is difficult to know the actual content area width of a cell in -tableView:heightForRowAtIndexPath:, since the only information I have to work with is the tableview. Several factors can change the content width so it is not equal to tableView.bound...
I have a UITableView with a custom table header. This header was created by draggging a UITableViewCell object into the header section of a UITableView in IB. I then proceeded to set a background image using the backgroundImage property on this cell. I also set the table view to be of the 'grouped' style.
The issue is, when it is displ...
Hey all. So I've run into this really strange phenomenon that I can't quite figure out. I have a UITableViewController that manages a UITableView. Pretty simple. I also have a UISearchDisplayController for searching the contents of the table view. The searching functionality will be able to delete items of the content displayed by t...
How do I make a header for a UITableView that is viewable when the UITableView is pulled down, but it hides when the UITableView is released? (Like the twitter app for iPod)
...
I am using tableView:heightForRowAtIndexPath: to set a custom height for each table cell in a UITableView. This is an expensive operation but I have not found a way to speed it up yet (In the future I will be trying some of the methods mentioned by taber).
For now I would just like to display a loading screen of some sort. it does not n...
I have a UITableView A, in which there is a cell (in a standalone section) that, once selected, another UITableView B will be brought up where user can input/edit text content. After done with UITableView B, the text content will be used to update the cell's content in UITableView A.
The cell section in UITableView A was coded to allow ...
Hi there. I have a UITableView with cells.
The table view shows a list of downloaded video files. If a video file is downloaded I want them to be able to delete it by sliding - ie: delete a row in a table deletes the file. The table view then resets to show "select to download video".
However, non-downloaded files obviously cannot be d...
I am using a UINavigationController to slide from a UITableViewController to another view. In that second view I have created a custom "Back" button which is attached to an action.
What code do I use to return to dismiss the current view and slide back to my first view? I need something that is the equivalent to [super dismissModalVie...
I am trying to figure how to change the color of the background of a plain uitableview after the using has scrolled past the top or bottom of the table. Not sure what its called but if you look at the mail app, if you scroll down, whilst already at the top of the table, the background is a dark gray color with a slight gradient. Anyone k...
Suppose I have a table view, and I want to implement something like this:
The table view contains n cells by default.
New cells will be added at the top(head) of the table view.
The data source of the table view is a mutable array.
The problem is when I use [tableview reloadData], the new data is always shown at the top of the tablev...
Hi Guys,
I am unable to display the total information if the results are nil in iPhone.
-(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
if ([customerList count] == 0)
{
return @"Could not find any doctor with your search. Please try again.";
}
return @"";
}
I Declare...
Hi,
i'm trying to build an image mask (like a picture frame) on top of a tableView.
I need also a drill down structure to push data on tableView but i need the mask remains firm.
How can i do that?
I've tried with custom navigationbar and custom toolbar but i don't know how to make the lenft and right edge.
Thank you in advance.
...
Please help me to get all rows of same group in tableView. i am using below code to show radio/check in groups of tableview and want the only one per group selection.
so for that i have got 2 images
1:uncheck
2:checked
so when user will click/select a row of group than i am changing its cell.image to "checked" and its working but don't...
Hello
We use in our application cells in a grouped tableview as buttons. Therefore we set a backgroundimage to look the cells like buttons. We used the following code:
cell.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg_gradient_mainmenu_2.png"]];
cell.textLabel.textColor = [UIColor whiteColor];
cell.textLabe...
On the Iphone im trying to populate a main table view from a dictionary, which works fine when the top level is an array ( see code below) , but for the life of me i cannot work out how to design the plist to reflect what I am trying to achieve - A top level array containing other arrays that contain dictionaries.
First table lists cate...
I have a tableview that uses a custom UITableViewCell. In the cell, I have a button that shows a custom menu controller with three menu items. I would like to push a new view controller when you click the 'See Detail' button.
I have this run when the 'See Detail' button is clicked in the custom cell
- (void)seeDetail:(UIMenuControlle...
I have a grouped table that I want the user to be able to reorder. I would like to have two groups. When I move a row from group A, to group B, I would like the top row from group B to be moved to the bottom of group A. When I move a row from group B to group A, I would like the bottom row of group A to be moved to the top of Group B....
I have a UITableView that has about 20 cells. Each has a UILabel within, and I need to search and find the cell that has the label @"Test".
Is there a way to loop through the cells and search for the NSString @"Test"?
...
I cant seem to find an answer that works.
Ok, I have 9 UITableView Cells, each has a UITextField. When the user presses NEXT, the 2nd(3rd,4th,etc.) TextField becomesFirstResponder. No problem.
Prolem is, I cant get the UITableView to scroll upwards so the next/active textfield is showing above the keyboard. This is SUPER ANNOYING, than...