uitableviewcell

Set tag and hidden for objects on custom UITableViewCell

I am re-using Apple's AdvancedTableViewCells example to create a custom, fast-scrolling tableview. Specifically, I am using their CompositeSubviewBasedApplicationCell method which draws the content on the tableviewcell with drawRect Everything works, but how do you hide a label or set the tag for a label or image using their method? D...

Iphone UITableViewCell selection background

Hi, I'm developing custom tableViewCell for iphone, I used interface builder to design it and loaded in from code. It use custom background to show Cell Selection. It work ok expect form one small issue, there is a small rectangular area in left side dosen't show the custom image, but show default selection ( bule color ) in that area....

Look like iPhone inbuilt contact applications image selection

Hello all, I have created an application in which i have to add users to the sqlite database. Now the problem is I want the look of the standard iPhone Contact application Where while adding user we have the width of first cell smaller than other cells and the image before that cell.. Can you please give me the idea how such thing is p...

Drawing UITableViewCell in IB

Is it bad practice/not efficient to draw UITableViewCell in IB vs drawing in code? ...

Custom UITableViewCell not appearing when row height is set

I have a custom UITableViewCell which I have created in IB. My labels display when I don't over-ride: - (CGFloat)tableView:(UITableView *)tblView heightForRowAtIndexPath:(NSIndexPath *)indexPath however my content is squished. I want the height to be 120px so I have the following: - (CGFloat)tableView:(UITableView *)tblView heightFor...

iPhone: UITableView number emails style used in Mail app

I am looking for how to style a label in a UITableView cell, so that it shows how many children/messages are in the next view controller. This is used in Apple's Mail app, to show how many messages are in the inbox or account. I am sure that this is a UILabel, but what font, color and how to make the oval around it? ...

Grouped table view empty section

Hi, I've read every answer available for this question that I could find, including this answer here on SO: link text The best known example of what I am trying to accomplish would probably look like the detail screen of the Contacts app. Some contacts have a phone number and email, others have multiple phone numbers but no email etc. ...

NSURLConnection not "firing" until UITableView scrolls..

Hi, I've got a UITableView that loads an image asynchronously and places it in the UITableViewCell once it's loaded (I'm using almost the exact same code as in the "LazyTableImages" tutorial). This works fine for all images when I scroll the table, but it's not loading the images that are first in the view. The code is definitely worki...

How to get a UIScrollView embedded within a UITableCellView to scroll?

I have a scroll view containing several images embedded within a custom cell view, it sometimes scrolls horizontally if I keep holding the cell for a while. I tried a lot of things and it doesn't seem to work, please help? Here's part of the CustomCell : UITableViewCell code: -(void) layoutSubviews { CGRect scrollViewFrame = CGRectMake(...

iPhone: cornerRadius quality gets degraded

I have a UILabel that I create a radius on the layer, using cornerRadius. The ultimate goal is to make the label look like Apple does in the mail app. It looks great at first, but once you drill down into that row and back a few times, the quality of the rounded edge starts to degrade. You can see in the screen shot, the left side i...

How do get the view that is the tapped detail-disclosure-button.

The cell in this iPhone TableView definitely has a Detail-Disclosure-Button. When I tap it... shouldn't this code give me access to the button? Instead detailButton is always just null. - (void) tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { UITableViewCell *aCell = [tableVie...

Lazy load images for UITableViewCells from NSDocumentDirectory?

Hey. I have a tableView in my app that I load in images to from the NSDocumentDirectory. It works, but when scrolling up and down, the app seems to freeze a bit. I know that this is because of the images getting loaded in, and not getting cached, but I don't know how I can load them in later, after they've been created. The images are ...

Grouped table with image in first row (and section), the remaining ones having text with different length

Hi I have a grouped table with two sections where I display text with different length and therefore cell height. I have solved the problem with the different length/height with constrainedToSize in cellForRowAtIndexPath. Now I want to add a section with one single row in which I want to show a picture. How should I best implement t...

UITableView: block cell dragging during reordering

Hi I've a problem with UITableView. When I'm in editing mode i want to reorder the cell but e when I drag a cell at the bottom of the screen it's allowed to go down as much as the TableView height and down the last tableViewCell. I've only 4 cell and i want that when Im dragging a cell it's not allowed to go down after the fourth cell. ...

Auto height for label or textview within table view cell

Hi Folks, I have a problem in an iPhone application. Application has a table view controller with custom table view cells. Each cell has a Label (please correct me if I need to use text view etc). I am getting text dynamically from a web service call and I don't know how long text gonna be. Now problem is that I want to adjust the tab...

Table View scroll when text field begin editing iphone

Hi, I have table view controller in iphone application. Table view has two sections. First section has two rows and second section has one row. Second section has a custom table view cell. Second section has a textfield which hides when text field begin editing and keyboard pops up. I want this table view to scroll when keyboard pops ...

I cannot get the value of a table view cell in cocoa touch

I am trying to get the value of a cell in a table view but it won't let me. If someone could help that would be great. int numberOfChecks = -1; numberOfChecks = numberOfChecks +1; if ([objectsForTable count]-1 >= numberOfChecks) { UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:numberOfChecks]; NSS...

How to access UITableViewCell's UITextView from the UIViewController?

I have created my own UITableViewCell with XIB file. There's an UITextView inside. However, I don't know how to access its features and use its outlets with the UIViewController. What's the way to do it? ...

UITableView and UITableCellView, how does this work with core plot ?

Hello, I'm very new to iPhone programming, and I'm currently following tutos to understand the whole thing. I've been able to do what I needed (retrive data from a JSON http server, parse them with YAJL and plot the data in core plot). I have done this in a "simple" view where I have added a UILayerHostingView as requested by core-plot....

Why does this UIImage disappear from UITableViewCell when rotating to landscape?

I'm trying to set up a UITableViewCell that can have an image in the upper right corner. I have it working for portrait mode, but when I rotate to landscape, the image disappears. Here's the code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifi...