I have a UITableView with 3 sections. The top two sections are static, and the third can be manipulated by the user. By overriding the commitEditingStyle method, I can remove entries as needed from section 3. However, doing this makes the Delete button appear on the cells in sections 0 and 1, even though I only execute the code when t...
I've been asked to create a custom UITableViewCell with multiple areas that can be tapped.
These areas won't have buttons or any graphics - they'll be invisible. 3 different methods will be called depending on which third of the cell the user taps i.e.
|| decrementFooCount || viewFooDetails || incrementFooCount ||
The cell has a few...
hi all
whether there are any event from which I handle the drop event of UITableViewCell.
Basically I want to do some task when I drop some thing on a cell of UITableView. So i want to know that whether any event is exist for this purpose?
...
Does anyone know how to change the background color of a cell using UITableViewCell, for each selected cell? I created this UITableViewCell inside the code for TableView.
...
Hi
I've a table view with a custom image background of each cell. In normal mode the background is perfect and fill all the cell. When tableView enter in editing mode the "-" button appear on left and all the object are indented and in the left I've problem with background: there a white area. Can anyone help me? The background image is...
Trying to implement a UITableView of names similar to the built-in Contacts iPhone app where the first name is in normal font and the last name is bold. A quick google suggests this isn't as easy as it sounds due to the iPhone SDKs lack of rich text support in UILabels.
One of the solutions found recommended using a UIWebView to format...
I've followed the code in Apple's AdvancedTableViewCells and built a table view with a background image for cells. Now I want to change it so that instead of the blue highlight colour, it shows a darker version of my image. What are the steps I need to follow to do this? I'm using a UITableViewCell subclass with a custom NIB. My backgrou...
I'm getting "Reaching end of non-void function" warning, but don't have anything else to return for the compiler. How do I get around the warning??
I'm using customCells to display a table with 3 Sections. Each CustomCell is different, linked with another viewcontroller's tableview within the App, and is getting its data from its indi...
I have a table view that I am customizing and I am adding a UILabel as a subview of the contentView, and I want the number of lines to be relatively consistent.
I set the numberOfLines property to be 3 so it can't go more than that, but there are still some that overflow onto the 4th line.
If it overflows, I want to add a a trailing .....
Hi,
I can set the edit mode for a while uitableview by calling [tableView setEditing:YES]; But that sets the edit mode for all the rows in a table.
Is there a way to detect what row was swiped an enable the edit mode only for that row?
Thanks
...
If the user taps and holds on a Foo table view cell for 2 seconds, a modal view should be shown. The modal view is also displayed when a new Foo is added to the cell. The modal view's delegate protocol is implemented by the parent UITableView subclass.
My tap and hold detection code is in the Foo UITableViewCell class.
I'm having dif...
Hi,
I'm trying to create a single custom UITableViewCell from a xib, among other normal UITableViewCell's. I've tried quite a few varied things with no success. Can anyone help me please?
...
Hello,
does anyone know if there's a way in with 3.0+ to display attributed strings within a UITableViewCell without using a UIWebView for that? I need to display a string with linked, tappable substrings as the typical detailTextLabel. I wouldn't mind exchanging this UILabel against another type of view, but I think a UIWebView could b...
I have the next problem. In one of the cells (UITableViewCell) I need to show quite a long string. I am trying to break it in lines (adding \n) between words, but it does not seem to help (to be precise -- the string has \n, but it still shows like "My long string very..." in the cell) How do I do this properly?
...
So, idea is the following. I have UITableViewCell, and when I click on it, I want to show UIActivityIndicatorView right in this cell. I cannot figure out how do I find the X/Y or any position (I can find the frame size of UITableViewCell though but it does not help much :-) for the given cell.
Any tips? Help?
Thank you!
...
I'm drawing a rounded image in a UITableView cell like so:
CGRect imageRect = CGRectMake(8, 8, 40, 40);
CGFloat radius = 3;
CGFloat minx = CGRectGetMinX(imageRect);
CGFloat midx = CGRectGetMidX(imageRect);
CGFloat maxx = CGRectGetMaxX(imageRect);
CGFloat miny = CGRectGetMinY(imageRect);
CGFloat midy = CGRectGetMidY(imageRect);
CGFloat ...
I'm wondering if it is possible to add cell content to a uitableview based on the row index?
For example if it is the first cell (row 0) I want to add an image and text.
If it is the second row I would like to add a button.
For all other rows I would like to just add a line of text.
I tried using indexPath.row. It worked the first time...
Similar to this question I have a custom subclass of UITableViewCell that has a UITextField. Its working fine except the keyboard for doesn't go away when the user touches a different table view cell or something outside the table. I'm trying to figure out the best place to find out when something outside the cell is touched, then I co...
Hello, Guys.
I have a UITableView in that some cells are marked with UITableViewCellAccessoryCheckmark at the initialization of the view.
When the user selects another row, I have to check if the maximum number of selected rows was achieved before. To do that, I used the code bellow:
- (NSInteger)tableView:(UITableView *)tableView num...
Hi everyone,
I would like to create an effect to a cell of a UITableView. The effect is: duplicate the cell and move the duplicated cell (the original stays at its place). My problem is to duplicate the cell...
I've tried:
Code:
UITableViewCell *animatedCell = [[UITableViewCell alloc] init];
animatedCell = [[self cellForRowAtIndexPath...