Hi there,
I'm using several images to style UITableViewCells and I want to make sure I'm doing things correctly, firstly to ensure good memory management, and secondly to make sure things are as fast as possible (I'm having troubles with the sluggyness of the scrolling!).
I know that using [UIImage imageNamed:] will cache the images fo...
Within tableView:cellForRowAtIndexPath:
// Make a cell:
UITableViewCell *cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"Default"] autorelease];
// Make a spinner:
UIActivityIndicatorView *spin = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
// [spin r...
Hi,
It is shown that initWithFrame is deprecated with initWithStyle in sdk3.0 and above.
But we can still use it without any warning/error. So is it ok to continue using initWithFrame for implementing custom cell in tableview?
Thank You.
...
I am loading a content into UITableView dynamically. If there is data the table needs to display the data. If there is no data the table should display a plain page. But in my application the table displays the plain page with two separator lines. i need to remove this separator line and display a plain white page. Please Suggest?
Any h...
When I set the UITableViewCells backgroundColor to a semi-transparent color, it looks good, but the color doesn't cover the entire cell.
The area around the imageView and accessoryView are coming up as [UIColor clearColor]...
I've tried explicitly setting the cell.accessoryView.backgroundColor and cell.imageView.backgroundColor to be...
I have a table view cell of variable height.How can I place an image at the middle (vertically) of the table cell ? Is there any way to set from IB ? or can i do it in codes ?
...
I use a custom UITableViewCell from a nib. The accessory view is a Detail Disclosure Indicator . The problem is that the background color of the UITableViewCell behind the accessory view is not getting rendered (see image / source below). Any clues? Also, here are some things that I tried but did NOT work:
Things that DID NOT work:
- Se...
I have a tableview that once a cell is clicked, it pushes tableViewB, which contains customcells. These cells contain TextFields. Once the user does any updating, they click "Save", which then pops tableViewB and goes to the first tableview. I would like to get all of the textfield values from tableViewB when Save is clicked. What is...
Hi all,
I just want to get the value of a cell in the table view when i tap on it.. can any one help me in this.?
Thanks in Advance
Shibin Moideen
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
appDelegate.courseName=[appDelegate.courses objectAtIndex:indexPath];
NSLog(@"%@",appD...
Hello,
I am displaying some HTML in table cells, but when I scroll through the table, the contents of each cell re-renders as it appears on screen. The effect is blank cells as they scroll into view, and then the content appears after a lag. Here's the pertinent code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRow...
I am having trouble in accessing which is in the UITableViewCell, that i have placed in my main .xib file.
That Label is connected to IBOutlet servicesCell.
And the Label inside the table view cell is connected through IBOutlet serviceLabel.
At runtime i am not getting the text which i am assining to that label.
Following is my sampl...
Hi guys, I've pretty much added a lot to my CustomCell, its working great.
However, theres one thing i cant work out..
My requirement is, for a grouped TableView, On tapping a single UITableViewCell, it should expand below, kinda animate and extend below and show more information in that cell.
On tapping an already expanded cell, it s...
I'm facing some sort of memory related issue I cannot figure out.
In a summary view, I'm creating a tableview populated by an array (sectionArray) which in turn is loaded from a core data repository. This array of NSManaged objects is used to assign values to a custom UITableViewCell which has two labels: title and description.
When ...
Hi, I'm new to iPhone SDK 3.0.
I've seen table view edit mode where you can check multiple row items and then delete them or move them.
The picture here (http://twitpic.com/khmog) illustrates what I mean. I've also seen this in several other apps, such as "Groceries".
Could anyone tell me how to do this? Can this be done using 3.0 API...
Hi
I am using a custom UITableViewCell class. My cell has multiple buttons (4 to be precise) on it and the button clicks are handled in the UIViewController which uses this cell class.
I was trying to use the button's tag to calculate the row number on which the button was clicked. But doing this causes an issue if a cell was not creat...
I have a UITableView with one section. The last row it to add new objects, and it reads "Add Object".
How can I make this cell stay in editing mode so that it will always show the plus icon? I've tried using cell.editing = YES and [cell setEditing:YES animated:NO] but neither makes the cell appear in editing mode.
Thanks!
...
Problem: The separator between cells in a table view appear only for those cells shown when the view loads, and only at load time. When the tableview is scrolled down, the cells scrolled into view show no separator between them, then when the tableview is scrolled back up, the initial cells show no separator.
Details: I've got a UITabl...
How can I add on a Cell few UILabels and UIButton? My limit it's app should support OS start from 2.2.1.
...
I'm currently thinking about the modeling of data in an iPhone app. My first instinct is to try to normalize the data into entities.
For example a Professor entity might look something ilke this:
@interface Professor : NSManagedObject {
}
@property (nonatomic, retain) NSString * profID;
@property (nonatomic, retain) NSString * firs...
I have a verb conjugation app that displays verb translations in the first cell of a table. At present the translation list is just a string (comma-separated list) but I'd like to change it to have clickable buttons. I had a play around adding buttons to the cell view without too much success but my only experience with custom cells has ...