Hi, I want to use the minus red control to mark a cell for deletion in a batch deletion way. I made some goals like multiselection or avoiding delete button being shown, but when table auto scrolls to the first row, after user ends dragging, all cells that were in showingDeletion state change to editingState and the minus red buton get...
Hey guys i've got an problem and don't know how to handle it.
if i make a section the error occurs.
Heres my code it would be so nice if somewone can help me :)
I've already tried to set the section index to 0 and 1 but that didn't help either.
Thanks in advance
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtInd...
In a tableview cellForRowAtIndexPath, I do the following:
MapViewController *mapView = [[MapViewController alloc] initWithCoordinates:city.Latitude longitude:city.Longitude];
[cell addSubview:mapView.view];
//[mapView release]; -- will crash here
Calling the last line gives this memory error EXC__BAD _ACCESS”. How do I release the ab...
Hi Folks,
What is the best way to get round corners on an entire UITableView as seen in Stocks and Spotlight? The grouped style doesn't solve the problem because the round corners scroll away with the cell. I'm trying to clip the view so the corners are always round regardless of scroll position.
I saw another discussion about doing ...
If you drag down list of your notes, search bar will come down. But if you keep dragging it, search bar still stays there right below navigation bar, creating "gutter" between search bar and the first row. Any idea how to do this?
Thanks
Check out the screenshot here: http://img39.imageshack.us/img39/8094/searchbar6420.jpg
...
Essentially, I'm working on asynchronously downloading images and adding them to specific UITableView cells (twitter profile images using MGTwitterEngine from Matt Gemmell).
I've looked at general asynchronous download code and must admit, I'm still too much of a noob to understand it well enough to adapt it to my purposes. Instead, I'm...
Ok, so this is more of a point-of-view question or something. So I have several tableviews that are backed by NSFetchedResultsControllers. So I was thinking about implementing paging for these tableviews but I'm not sure if it makes sense to do so.
Quoting from the apple NSFetchedResultsController docs:
"When you tell the controller to ...
If you look at your Inbox in iPhone OS 3.0's Mail app, you'll see that swiping down displays a grayish background color above the UISearchBar.
Now, if you scroll down to the bottom of the table, you'll see that the background color at that end is white.
I can think of a couple ways of solving this problem, but they're pretty hacky:
...
I have a controller that contains a tableView that spawns another controller modally to enter a name in. Once the name is entered the modalview is released. But... how do I tell the first controller to [tableView reloadData]. I have tried in the ViewWillAppear, ViewDidAppear, etc... none of them will fire off the command because the firs...
Hey,
We have a situation where we are trying to add two UITableViews inside a single UIScrollView. This seemed to be working (the two UITableViews are displayed properly) BUT
1) the data in the second UITableView is always the same as the data in the first one
2) when clicking items in the second UITableView, we get an exception: "unrec...
This is really driving me crazy.
I have a table view that displays a sorted list of customers. Users can add a new customer, thus I have to add a new row to the table view (by updating the data model and calling insertRowsAtIndexPaths:withRowAnimation:). However, since the table view is sorted, this insert can occur off-screen, which is...
I've been asking a question or two over the past few days of working on an application that keeps a custom toolbar aligned to the top of the iPhone keyboard. I'm using the method described by Josh in this question; basically, I have the view controller listen for the UIKeyboardWillShowNotification and add the toolbar as necessary.
The v...
I have a tableView that I want to allow editing and delete rows. I make it go into editing mode fine. But when I press the delete button it's not firing off the event to make it delete the row!?? Here is my code:
- (IBAction)editTable:(id)sender{
;
if(self.editing){
[super setEditing:NO animated:NO];
[self.tableView setEditing:NO an...
There are currently a lot of answers on how to set a custom fixed background for a UITableView. But is there any trick to make the background image scroll together with the table cells?
Thanks!
...
I've successfully added some UIButtons to a custom tableFooterView. The problem is that the button events does not get called. Also, the image relative to the UIControlStateHighlighted doesn't come up. Any ideas?
I've tried all I could think of, but I can't find the trick. I'm reporting here the interesting part of the UITableViewContr...
(programming in iPhone objective-C)
I have a class level NSString* that I create, add property(nonatomic,retain) and synthesize code for and I can modify the string endlessly with stringByAppendingString functions and display the string using NSLog just fine. All of this is done in a subclass, overridden viewDidLoad function. When I try...
Hi,
I'm using the three20 project for my iPhone app. I've narrowed my problem down and I'm now just trying to re-create the 'Web Images in Table' example that comes with the project. I've copied the code exactly as in the project, with the exception that I do not use the TTNavigator (which the example does) but I am adding my TTTableVie...
Hello, I been trying this in my code and it doesn´t work:
NSArray *paths = [aUITableView indexPathsForVisibleRows];
An empty NSArray is returned.
But if I do this in the previous line it works fine....is this a framework bug?
NSArray *cells = [aUITableView visibleCells];
NSArray *paths = [aUITableView indexPathsForVisibleRows];
The...
Hi
I have some 50 custom cells in my UITableView. I want to display an
image and a label in the cells where I get the images from URLs.
I want to do a lazy load of images so the UI does not freeze up while
the images are being loaded. I tried getting the images in separate
threads but I have to load each image every time a cell becomes...
I use UITableView with cells created using UITableViewCellStyleSubtitle. Every cell's height is dynamically adjusted using the
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
delegate method.
The problem you can see on the picture
(note: image updated)
How to set up align of textLab...