uitableviewcell

Copying UITableViewCell

I'm reading a custom table cell in tableView:cellForRowAtIndexPath: from a nib file. This works great for my purposes, except it's quite slow. Now, I know the right thing to do in the long term is to create the cell entirely in code, and to use a single view, and so on. But this is a prototype, and I don't want to put that much effort i...

What is the default height of UITableViewCell?

I thought this information would have been easier to find :-) What is the default height of a UITableViewCell? It looks like 44 pixels, but I'd prefer to be sure. ...

Loading cells via nib and referencing components in them

I'm loading a UITableViewCell that contains two tagged labels. The user will leave the current view, containing the following code and go to another view. A name value is set there and the user comes back to this view (code below). I assign the name they set in the other view to the name label. That works but I get a new label misal...

UICachedDeviceWhiteColor and NSAutoRelease for table cell mem leaks

I have a memory leak that displays UICachedDeviceWhiteColor. I'm not using UICachedDeviceWhiteColor anywhere and a search on it turns up people saying this is a bug in the iPhone-SDK. I found this blog entry: http://piezoelectrics.blogspot.com/2009/02/uicacheddevicewhitecolor-leak-in-iphone.html but I can't find #import "NSAutorelea...

Why does UITableView crash app in dealloc?

I'm doing this in dealloc of a view [baseTable release]; In the header file, I declare it like this: IBOutlet UITableView *baseTable; .... @property(nonatomic, retain) UITableView *baseTable; For some reason, I get a "EXC_BAD _ACCESS" in the dealloc. When I comment out the above line, all is well. How can I determine what specifi...

UITableView with dynamic cell heights -- what do I need to do to fix scrolling down?

I am building a teensy tiny little Twitter client on the iPhone. Naturally, I'm displaying the tweets in a UITableView, and they are of course of varying lengths. I'm dynamically changing the height of the cell based on the text quite fine: - (CGFloat)heightForTweetCellWithString:(NSString *)text { CGFloat height = Buffer + [text si...

Toggling display of image in UITableViewCell

Depending on the result of a condition, I want to display a UIImageView in a table cell. Otherwise display UITableViewCellAccessoryCheckmark. I'd like to construct the cell in IB. The part I'm not sure of what to do with the UIImageView when I don't want it displayed. If I were constructing it all programmatically, I'd add the UIImage...

Determine coordinates of a UITableViewCell while scrolling

Hello, My goal is to have the UITableViewCells fade in/out when they are approaching the bounds of the UITableView and about to be covered/revealed. The approach I have been trying is to get the coordinates of the UITableViewCell during a scroll event. The problem is that every cell seems to be at 0,0. I have tried converting the coo...

UITableView scrolls to far and causes weird things

I have a UITableView that when scrolled to far bounces bag. This also means the user can drag the table so that only half of it is visible and the other half of the main view is white. This causes some weird behavior in my app. I create an array in the AppDelegate. In RootViewController's viewDidLoad, I get a reference to the AppDele...

How To Load Images into Custom UITableViewCell?

This problem is simple, but crucial and urgent. Here's what needs to be done: load 66px x 66px images into the table cells in the MainViewController table. each TableCell has a unique image. But how? Would we use cell.image?... cell.image = [UIImage imageNamed:@"image.png"]; If so, where? Is an if/else statement required? Help...

Iphone badge to UITableViewCell

Hello all! How to add badge to UITableViewCell, like this: is it simply adding a subview with a text and lable on it ? thanks ...

How to determine UIWebView height based on content, within a variable height UITableView?

I am trying to create a UITableView with variable height rows as explained in the answer to this question My problem is each cell contains a UIWebView with different (statically loaded) content I can't figure out how to calculate the proper height based on the content. Is there a way to do this? I've tried things like this: (CGFloat...

Scrolling UITableView on the iPhone as seen in the Tumblr app?

Hi folks! This inquiry is rather difficult for me to properly phase, but I'm going to give it a shot either way. I'm currently trying to figure out how to set my UITableView's to scroll over a background, and not within their own bounds. What I mean by that, is if you look at the Tumblr application, screenshot here: http://dl-client.g...

IPhone UITableView missing disclosure-button after pressing Delete Button when reusing UITableViewCell

Hi, I've got an iPhone UITableView displaying custom UITableViewCells that display on their right the disclosure-button icon. When I swipe the cell, the disclosure button is automatically replaced by the red "Delete" button. If I press the "Delete" button the row is removed from the table, but then something strange happens. When I scro...

UITableViewCell behavior in simulator vs. phone

I'm using the 3.1.2 version of the SDK. I have an app wherein I created a UITableViewCell in IB to display two lines of text per cell. When I run the app in the iPhone simulator, everything works exactly as expected; however, when I run the exact same code on my phone, the app crashes with the following error in the console: Terminati...

UITableViewCell with image on the right?

Is there a way to set the UITableViewCell.image to display on the right hand side of the cell instead of the left? Or will I need to add a separate UIImageView on the right side of the cell layout? ...

What's with [UITableView reloadData]?

I have an application that has a UITableView. This UITableView is populated by an NSMutableArray being held (as a property) in the appDelegate. You can think of this as an email window. It lists messages in a subclassed UITableViewCell. When a new message appears, I have all the code done which downloads the message, adds the data to the...

iPhone SDK - Looking for resources regarding....

I am wondering if anyone can help me find two resources for iPhone Development. 1) I am looking for a nice tutorial explaining how to use UITableView to input settings (UITextField, UISwitch, etc...) just like practically every single app does. 2) I am also wondering if there is a resource online that has Custom Objects for IB. I find ...

iphone - access uitableviewcontroller from uitableviewcell

Hi I have a structure like this.... UITableViewController -> UITableViewCell -> UIView I need the UIView to access a HashTable (NSMutableDictionary) in the UITableViewController Is there a way to access the ViewController simply from the ViewCell (using [ViewCell superview] obviously won't work) ....Do I need to go down through the ...

Detect when UITableViewCell goes off the screen

Hi, I'm implementing a rich UITableView with custom created UITableViewCell, I show these on the screen in one fashion, but once they go off the screen I want to take a note of that, since the second time they come on I would like them to get displayed in a different manner. Think auto "mark as read" when going off the screen. I've bee...