I have a UITableView backed by an NSFetchedResultsController which may trigger updates at any time. If the user is currently reordering rows, applying these updates will cause an exception because the table view has temporarily taken over and you get an error like
Invalid update: invalid number of rows in section [...]
How can I detec...
I am using a UITableView to display the results of a series of calculations. When the user hits 'calculate', I add the latest result to the screen. When I add a new cell, the UITableViewCell object is added to an array (which is indexed by tableView:cellForRowAtIndexPath:), and then I use the following code to add this new row to what is...
How would I go about implementing a table view that looks and works something as illustrated in the link below, with UIKit for the iPhone?
http://img442.imageshack.us/img442/4177/uifisheyeview.png
So basically I want the cell sizes to vary according to distance of focus (middle of view). And I would also want it to be semantic zooming a...
How can I do this? I want the cells appear like just a collection of items with no separations in the form of lines?
And also how can I make the contentView of a cell go transparent?
...
hi ,
ihave application that is viewbased and i am adding tableview as subview to main view
and i have taken UITableViewDelegate to respond the table methods
everything is working fine
but i want to select first row or UITableView as default selected(Highlighted)
plz help me
if possible then send me sample code
and where i have to pl...
Hi all,
I'm using the following code for my search on my table:
- (void)filterContentForSearchText:(NSString*)searchText scope:(NSString*)scope
{
[searchParent removeAllObjects];
for(NSString *a in parent)
{
NSComparisonResult result = [a compare:searchText options:(NSCaseInsensitiveSearch) range:NSMakeRange(0, [search...
I tried all this inside
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
1.tableView.backgroundColor = [UIColor clearColor];
2.cell.backgroundColor = [UIColor clearColor];
3.cell.contentView.backgroundColor = [UIColor clearColor];
It only responds to the 1st line and makes the bac...
For some strange reason, UITableView resizes my cells to 320 width no matter how I set the frame for the UITableView object.
Even if I go in later and resize the cell back to 250, UITableView seems to resize it again to 320 some time.
Is there some property or method that must be set / called additionally to get that right?
However, I...
The official documentation tells me I've to do these 3 things in order to manage the my memory for "nib objects" correctly.
@property (nonatomic, retain) IBOutlet UIUserInterfaceElementClass *anOutlet;
"You should then either synthesize the corresponding accessor methods, or implement them according to the declaration, and (in iPho...
I have a UITableView with a segmented control at the top. When you tap on the different segments, I want the table to reload with a new different sized array. I have tried everything including [self.tableView reloadData]. When you click on a different tab now, it only changes the cells that are out of view and does not add any more. ...
I have a UINavigationController with a UIViewController (vc1) as the "root view controller". There are 3 views in the UIViewController:
HeaderView(UIViewSubclass)
UITableView (custom frame)
FooterView(UIViewSubclass)
The reason that the header/footer view are separate from the uitableview is because they need to be stationary a...
My UITable is returning EXEC_BAD_ACCESS, but why!
See this code snippet!
Loading the UITableView works fine, so allXYZArray != nil and is populated!
Then scrolling the tableview to the bottom and back up causes it to crash, as it goes to reload the method cellForRowAtIndexPath
It fails on line: "NSLog(@"allXYZArray::count: %i", [allX...
Hi, I have a tableview on a nib file with the interaction setting turned off. I'm animating a section change like this:
[myTableView beginUpdates];
[myTableView deleteSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:YES];
[myTableView insertSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:YES];
[myTableView endUpdate...
I have around 20 tableview cells that each contain a number (2-5) thumbnail sized pictures (they are VERY small Facebook profile pictures, ex. http://profile.ak.fbcdn.net/hprofile-ak-sf2p/hs254.snc3/23133_201668_2989_q.jpg). Each picture is an UIImageView added to the cell's contentview.
Scrolling performance is poor, and measuring the ...
My question relates to stackoverflow 1184014.
Basically I have customized the background of my UITableViewCell (clear color) in my
-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
and it's all good until I overlay an UIActionSheet over the Table.
If the curre...
Hi
I have built an application that revolves around UITableView, Core Data and XML. Now that the app is almost complete i want to add a main menu before accessing the tableView. The main menu will then allow you to navigate to the table and other functions. What is the easiest way to go about doing this? I'm confused about how to change...
I'm trying to add an additional cell for custom content as the last cell in a tableView, without altering the dictionary that creates the other content of the table. I think the place to add it is in cellForRowAtIndexPath rather than adding one to the numberOfRowsInSection, which just crashes if I do.
I get a cellCount from the dictio...
I have a set of 100 rows, pretty similar to values which can be selected in a picker. When the user scrolls the table, I want the rows to be appended like an forever-ongoing assembly-belt. So when the user scrolls down and reaches the row 100, and scrolls even further, the table view will show again row 1, and so on. Reverse direction sa...
Ok, I know this seems like a duplicate question, but don't think it is. I actually have this implemented already (thanks to this SO question), but it seems sluggish. I am willing to tweak it a bit, but I ran across a demo app by AboutObjects that seems to have exactly the right functionality with absolutely no code doing it. I have looke...
Hi,
I have a grouped UITableView, with cells in section 2 depending on cells in section 1. More precisely, each cell in section 1 is associated with multiple cells of section two and deleting a row in section 1 needs to delete the associated rows in section 2.
I have my dataSources all set up and everything works fine if all cells are ...