uitableviewcell

How to process an SQLite row (with categories) to an UITableCellView (with sections)

Hi guys! Currently I'm receiving a list of objects from a SQLiteDB by using: -(NSMutableArray*) getMoreForObjectIdByCategoryId:(NSInteger) itemId: (NSInteger) categoryId On the ViewController Side, I'm using the (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { in combination w...

Adding a modal view controller when I press a info button inside a tableviewCell

Hi, Here is a complex question, maybe it's not hard but there are many doubts i have. First let me give you what i have. This is the only place where i've gotten good answers. I have a table view controller with custom cells. In those cells i added a button (info dark one from IB) for each one of the cells. What i would like it's that ...

Why are the contents of my UITableViewCell disappearing?

Hey everyone, I am learning about using the checkmark cell accessory and am wondering why the contents of my cell is disappearing when toggling it. Here is my code: + (void) toggleCheckmarkedCell:(UITableViewCell *)cell { if (cell.accessoryType == UITableViewCellAccessoryNone) cell.accessoryType = UITableViewCellAccessory...

Custom UITableViewCell with height defined in UITableView

I have a custom UITableViewCell. In its function - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier, I need to know the cell height as defined in the tableView function heightForRowAtIndexPath so I can properly position UITextField, UIButton, etc in the cell. . Any ideas? ...

Rotate a custom UITableViewCell

I have a custom UITableViewCell which contains several UIButtons. Each button's frame position is relative to the cell width. I set autoresizingMask=UIViewAutoresizingFlexibleWidth so it will adjust the cell width and the button positions properly when the application starts with the device either in landscape or portrait mode. The iss...

How to pass touch from a UITextView to a UITableViewCell

I have a UITextView in a custom UITableViewCell. The textview works properly (scrolls, shows text, etc.) but I need the users to be able to tap the table cell and go to another screen. Right now, if you tap the edges of the table cell (i.e. outside the UItextView) the next view is properly called. But clearly inside the uitextview the ...

UITableView dequeueReusableCellWithIdentifier: returns nil more than once

In my test on the device and in simulator, dequeueReusableCellWithIdentifier: returns nil more than once (about 5 times for a table with 15 rows). Is this normal? I was under impression it should return nil only the very first time? ...

How to put a UITextField inside of a UITableViewCell (grouped)?

How to put a UITextField inside of a UITableViewCell (grouped)? I want a user to be able to edit it. ...

Simple way to show the 'Copy' popup on UITableViewCells like the address book App

Is there a simple way for subclasses of UITableViewCell to show the 'Copy' UIMenuController popup like in the Address book app (see screenshot), after the selection is held for a while? ...

UITableView's NSString memory leak on iphone when encoding with NSUTF8StringEncoding

my UITableView have serious memory leak problem only when the NSString is NOT encoding with NSASCIIStringEncoding. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"cell"; UILabel *textLabel1; UITableViewCell *cell = [tableView dequeu...

Strike-through font in objective C

Hi, How can I use strike-through font in objective C??? More specifically in UITableViewCell cell.textLabel.text = name; cell.detailTextLabel.text = quantity ; cell.XXX = ?? ...

Why is UITableViewCell text floating to top on the device?

The text lables in my UITableViewCells are getting displayed differently on the device than on the sim. How do I fix it? ...

UITableView with Custom Cell only loads one row of data at a time

I want to build a train arrival time reference app, that lets me choose different stations and displays times from A to B, and times from B to A. So I'm using Apple's Page Control because I want to have multiple pages for each station, and each page would list all the train times. Here's my appdelegate: #import "AppDelegate.h" #import "...

iPhone: How to Stop Animations in a View Before the View Deallocates

I have added custom animation to UITableViewCells. Each cell has its own animation. When I pop the view, the animations continue and I get a bad exec error because the animation is trying to access the deallocated cells. How do I stop the animations before the view is deallocated? - (void)tableView:(UITableView *)tableView accessoryBu...

How to add star rating to UITableView cell?

I need to display a bunch of UITableViewCell in my iPhone application. Sample look below. I know how I can enable accessory view and image to UITableView cell but the problem is that I need to add a star rating as visible on the screen. There's no fancy logic behind it, it will just be few images that will be either enabled or disabled....

UITableViewCell setSelected, but selection not shown

I want to keep a cell selected, and only change when I select another cell. In tableView:cellForRowAtIndexPath: I have set a selected cell with [cell setSelected:YES]. I know the cell is selected, but it is not shown. When I call [tableView reloadData] the selected cell flashes. Any ideas? ...

indentationLevelForRowAtIndexPath not indenting custom cell

I have overridden the tableView:indentationLevelForRowAtIndexPath method in my UITableViewController derived class as follows: - (NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath { NSDictionary* item = [self.projects objectAtIndex:indexPath.row]; int indentationLevel = [[ite...

reloadData not working - suspect cell's reuseIdentifier

I have a view controller that gets presented modally and changes some data that effects the data in a uitableview in the modal's parent view controller (a table view). I call the tableview's reloadData method when the parent view reappears. I have confirmed that this code gets hit with a break point. My trouble is, reloadData isn't work...

How to Create Custom UITableViewCell Editing Transition?

I have a custom UITableViewCell which has an image & and some text. When entering editing mode, I would like the image to fade out & move offscreen to the left. When & how do I implement this code? I tried putting an animation block in willTransitionToState: but the image simply jumps offscreen w/ no animation. ...

UITableViewCell with selectable/copyable text that also detects URLs on the iPhone

Hi guys, I have a problem. Part of my app requires text to be shown in a table. The text needs to be selectable/copyable (but not editable) and any URLs within the text need to be highlighted and and when tapped allow me to take that URL and open my embedded browser. I have seen a couple of solutions that solve one of either of these p...