I'm having a UITableView with alternating colored UITableViewCells. And the table can be edited: rows can be reordered and deleted. How do I update the cells alternating background color, when the rows get reordered or deleted?
I'm using this to draw the alternating colored cells:
- (void)tableView:(UITableView *)tableView willDisplayC...
hey people ,
I have a question concerning a button I would like to create which selects my previous selected row.
This is what I came up so far but since I'm new with the functionality and such I could definately use some pointers
I created a toolbar with a button and behind this button is the following action.
-(void)clickRow
{
se...
In my method to set labels in my cells (for a UITableView) I'm reading in 'id' thats actually a UITableViewCell since I'm reading in several different types of cells. ie.
-(void)setMyCell:(id)cell atIndexPath:(NSIndexPath*)indexPath;
Some of the cells are the generic UITableViewCellStyle type while others are more complicated and load...
hello all ,
I have a question concerning UITableviews , the stack and removing components or possibly hiding components on the stack.
first I have a function which adds a component (a button );
-(void)addComponent
{
[self.navigationController.view addSubview:playButton];
}
I call this function in my
didSelectRowAtindexPath
So f...
I have two tabs in my app, the left tab is a normal UIViewController, right tab is a navigation controller with a table view inside it. I'd like to allow the user to press a button on the left tab and jump to a specific detail view that belongs to a specific row in the table view on the right tab.
In the table view itself I have no prob...
I have created a UITableView and would like a specific UITableViewCell to appear selected (blue) when the view is loaded.
...
How do we go about coding drag-and-drop (or tap-and-drag) from a cell in a TableView on an iPhone? I'd like to have a set of drop destination icons that are stationary. I've been trying touchesBegan, touchesMoved and touchedEnded methods. These events fire nicely from a View so I can get a swipe to work nicely. Most likely the destinatio...
The docs for NSFetchedResultsControllerDelegate provide the following sample code
- (void)controller:(NSFetchedResultsController *)controller
didChangeObject:(id)anObject
atIndexPath:(NSIndexPath *)indexPath
forChangeType:(NSFetchedResultsChangeType)type
newIndexPath:(NSIndexPath *)newIndexPath {
UITableView *t...
I have a custom UITableViewCell that I created in IB. To populate a UITableView with instances of these cells, loaded from a NIB, I use the following code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"overviewCell";
HOStoreOverviewC...
Hi,
I am creating a custom UITableViewCell with UILabel inside.
When I am setting too long text into UILabel, it overlaps bounds of the cell.
Looks like I have specified all required properties of UILabel, but still failed to resolve what could be wrong.
Possibly I should configure a table or the cell?
Could you please advice the wa...
I have a tableview with a navigationBar with a segmentedControl on the top of the view. I have set up the segmentedControl with buttons that sort the table by either "FirstName" or "LastName". It works perfectly the first 2-4 of times you press the sorting buttons, but then the app crashes.
The debugger and console seem to be of no hel...
I hope you can help as I'm a bit stuck as to where to look for a solution for this UITableView problem I'm having:
When I insert a new item at the top of a UITableView section using the following method (see code below) it all works beautifully apart from this glitch: The inserted row at the top of the section renders as expected - with...
Hi, I'm new to iPhone development. I'm working on a table view (default UITableView subclass) that contains complicated custom cells, with multiple subviews and controls. Scrolling is not very smooth, but I'll just leave that for now.
The question is, when I'm scrolling the table view with quick swipes, the table sometimes suddenly stop...
Hi,
I have a UITableView with sections. There's a lot of data in it so there's a lot of scrolling. When I leave the page(viewWillDisappear) I want to be able to 'bookmark' the current top visible section so the user can come back to that section they left off at when they return to the view. I am using scrollToRowAtIndexPath to get t...
I am building an iPhone app that contains medical information for medical professionals.
The data has a sort of taxonomy which is easily represented in the form of e.g. a mind map on a piece of paper. On the device, the idea is to navigate through a series of items in table views to get to a detail view with text and picture information...
I know how to customize the tableViewCell.
I have seen many application customizing the tableView Cell.
Similarly, I want to customize TableView Section Header
"Suppose - A section name should be in different font, It has different background images etc."
Is it possible How?
In which method Should I implement the code?
...
I have a tableview that only holds a few (~5)cells with a large image in each cell. Is it possible to preload all the cells to improvescrolling performance?
Right now, there is a slight jerk when each cell is loaded.
Thanks!
...
Hi,
For one of UITableView sections I have put a view with a UIDatePicker into it's footer (using tableview:viewForFooterInSection:). The problem is that UIDatePicker receives only single touch events (tapping) and doesn't receive scroll events, so I am unable to set appropriate time inside it. Instead of scrolling UIDatePicker's hours ...
Hi All,
First of all, while I have an understanding of some of the basics, I'm am still somewhat of a newbie.
I have a sectioned UITableView that I am currently using NSDictionary(for grouping) and 4 or 5 different NSArrays (for data, some of which gets passed to the next view when a cell is selected) to populate the table. It works b...
I have a uitableview that loads fairly large images in each cell and the cell heights vary depending on the size of the image. Scrolling performance is decent, but can sometimes be jerky.
I found these tips I found on the FieryRobot blog:
http://www.fieryrobot.com/blog/2008/10/01/glassy-scrolling-with-uitableview/
http://www.fieryrobo...