uitableview

How to hookup a UITableview when it is part of of a UIView

I have a UIViewController that has a UITableView sitting on a UIView that is hidden. I have created a data view object and implmented the data methods and hooked it up in the Interfaced builder as a datasource. I can get the table to show but not populate. I have tried creating a UITableViewControler and adding that the the UIViewContro...

How can a create a automatically resizing table cell for entering texts like in the iPhone's "mail" app?

I'm try to emulated something just like the "new message" page in Apple's mail app on the iphone. I've implemented it with a tableview and I've successfully gotten the "To", "CC", and "Subject" rows to behave correctly, but I'm not sure how to implement the actual message portion of the page. There are several issues that I'm having. I'...

Problem in UITableView custom cell

Hey all, I am trying to add custom labels to my cell in UITableView. When I try to do this the display is messed up and I am unable to figure out what exactly is going on. Please find the image below and I will post the method I wrote.. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPa...

Custom UITableViewCell fast scrolling

I have an UITableView showing custom view cells that I've designed in interface builder. It has quite many buttons and labels and a gradient background, which makes the scrolling performance sloppy, it "lags" every time a new cell loads. I've read the guide from the guy who created Tweetie about fast scrolling, and it says it's best to d...

change width of a uitableviewcell

Hi, I try to change the with of a cell in a tableview, I don't do a custom cell, I just subclass uitableviewcell. This is the class @implementation customCell - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:r...

NSDate/NSCalendar Issue

Hi, I have the following code in my app. Its an iPad app, with five tables in a single view named monTable, tueTable etc. These tables represent monday to friday. In this code I get the date and set each table title to the date monday to friday (this week). Then if I press a button nextWeek becomes TRUE and I reload table data. This the...

How do you send messages between two instances of a custom UITableViewCell?

Hi guys, I have a UITableView populated with a bunch of music players that I've made using a custom UITableViewCell. (as shown in the screenshot linked here: screenshot). The problem with the way I have it coded is that since each cell is completely independent, there's no way for one tableviewcell to check if any other the other cells ...

UITableView dequeueReusableCellWithIdentifier Theory

When apple developed the UITableView for the first iphone they had a problem in performance when scrolling through it. Then one clever engineer discovered that the cause of this was that allocation of objects comes with a price, so it came up with a way to reuse cells. "Object allocation has a performance cost, especially if the allocat...

How does a textfield cause a tableview to automatically scroll up when it slides up: how will this affect current insets and animations?

For most of my table view cells, I select a cell and a UIPickerView, added to the view of a UINavigationController, slide up from some offscreen position. I hit the done button in the navigation bar and the whole thing goes away nicely. I also automatically scroll the table view so the selected cell ends up right above the picker view u...

Add/remove data to TableView datasource programmatically

HI @ll! I want to add and remove some items to my datasource for my tableview programmatically. First of all: What do I want to achieve? I habe a UIView with a TTTableView control (the Tableview from the Three20 project, but derived from the common UITableView control). This TableView is working well and has a TTSegmentedDataSource obj...

UITableView as a subview?

Is this possible? I just want a small table in my current view... here is what I'm trying to do: .h file #import <UIKit/UIKit.h> @interface IngredientsRootView : UIViewController <UITableViewDelegate, UITableViewDataSource> { UITableView *ingredientsTable; } @property (nonatomic, retain) UITableView *ingredientsTable; @end .m fi...

How can I add a subview to the contentView of UITableViewCell that is not clipped by its superviews?

Hi everyone at stackoverflow.com! Can you help me? I would like to achieve the following graphical effect: Each cell of my UITableView (which has a ~10 pixel decoration frame) has a "badge" in the upper right corner (showing a number), but to make it look a little nicer, this badge should not be inside the cell, but should overlap the u...

Can I add buttons to sections of grouped tableView?

Hi, I have a grouped tableView with 5 sections and i want to add buttons per sections. For example i have add (+) button in all sections near the section title. Can i do that? Regards, ZaldzBugz ...

Dock an item on top of UITableView like imdb app on ipad?

Hi, I want to do something similar to the left UITableView on imdb app on ipad. Once you have selected an item, it will become the first item on the top and it will dock there. When you flick the list below, it will always be there. Anyone has any suggestion on how I can achieve that? ...

Changing UITableView "BackgroundColor" of Index-Component

Hi there, I'm not sure if my title is a bit "crappy" to say the least, but let me explain my issue here. I'm having a Table with about 300 Entries, sorted and sectioned alphabetically. The tableview shows the alphabetical slider to the right (just like in the "contacts"-application in iphone) "untouched" it looks very nice (grey font, m...

Refreshing and Deleting content in background thread error (NSFetchedResultsController)

Hi, I'm using an NSFetchedResultsController to fill content for my UITableViewController. I'm using an NSOperation to gather data from a webService (I'm using a separated ManagedObjectContext as it's another thread) When the data is saved my ViewController (wich is the NSFetchedResultsControllerDelegate) is called and i merge my MOCs u...

UITableView grouping sections

I have a UITableView that's populated using core data & sqlite. I'd like to have sections grouped in the UITableView based on an attribute from the database table. e.g If i had a category field in the database table called "type", what would be the best way of sectioning that data out? I've seen examples using arrays, but I'm getting...

Are there any good 2D UITableView like implementations out there?

So what I'm looking for is a table view that supports and displays an array of cells (think excel). The 2D implementation should have cell caching for performance, optimized for panning. ...

How to change the background color of a table view cell after it was moved?

Hello, guys. I have a table view with 9 rows at minimum. The background colors of the cells will depend of the cell position. If it is bellow to 3 or below to 6 or below to 9, the background color changes (see the next image). The problem is that this table view can be reordered and I have to maintain the same color pattern. Example:...

adding new TableViewCell only at the last row of a table.

Hi, I've tried looking it up here... but could see more questions like that one, but no answers. I'm trying to add a new cell at the bottom of my table (add 1 more cell to the end) the cell should be different from the rest of the table cells, so I've created a new NIB with tableCell. i've used this way to find the last cell in my tab...