uitableview

Design UI programmaticly

Hi there I'm trying desperately to design my UI programmatically. But I think I'm in trouble to understand the concept. Basically I want a UI which contains different UIViews and a UITableView. But now I'm stuck with the UITableView... So my "main view" which should contain all these views is called AddListViewController(it inherence ...

A Non editable UITableView section ?

I have a UITableView with 3 sections. The top two sections are static, and the third can be manipulated by the user. By overriding the commitEditingStyle method, I can remove entries as needed from section 3. However, doing this makes the Delete button appear on the cells in sections 0 and 1, even though I only execute the code when t...

iPhone: Custom UITableViewCell with multiple areas that respond to taps?

I've been asked to create a custom UITableViewCell with multiple areas that can be tapped. These areas won't have buttons or any graphics - they'll be invisible. 3 different methods will be called depending on which third of the cell the user taps i.e. || decrementFooCount || viewFooDetails || incrementFooCount || The cell has a few...

App crashing when setting delegate and datasoruce

If I want to set my delegate and datasource for my uitableview my app crashes. What I'm doing wrong? - (void)loadView { NSLog(@"AddListViewController"); ShareListViewController *shareListViewController = [[ShareListViewController alloc] init]; UITableView *shareListView = [[UITableView alloc]initWithFrame:CGRectMake(100, 30, 100, ...

How to update UITableView with managed Objects?

Hey all, on viewDidLoad i init my array: NSFetchRequest *request = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"Member" inManagedObjectContext:managedObjectContext]; [request setEntity:entity]; NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"creationDate" ...

How to resize UITableViewCell Background in editing mode

Hi I've a table view with a custom image background of each cell. In normal mode the background is perfect and fill all the cell. When tableView enter in editing mode the "-" button appear on left and all the object are indented and in the left I've problem with background: there a white area. Can anyone help me? The background image is...

insert statement using sqlite3 for iphone

I wan to insert "title" and "description" into database using the following code but i am having problem in displaying the "title" into uitableview..instead of "title" it display the "description"...what could be the reason??am i inserting into the wrong column?i am sure i called the correct object. -this is how i create my table... CR...

"Warning reaching end of non-void fuction" with Multiple Sections that pull in multiple CustomCells within cellForRowAtIndexPath

I'm getting "Reaching end of non-void function" warning, but don't have anything else to return for the compiler. How do I get around the warning?? I'm using customCells to display a table with 3 Sections. Each CustomCell is different, linked with another viewcontroller's tableview within the App, and is getting its data from its indi...

Add table view and navigation control to existing view based app

Hi I have an existing iPhone application which starts from a UIViewController. What I want to do is add two new table views, one which will require the navigation controller. Can anyone provide info on how to retrofit this into my app or will I need to start again from scratch using the navigation template? Thanks Aidan ...

Opening Another Xib form an Xib

Not a Noob as yesterday, but still green. I have been playing around with the code that Elisabeth Robson has put together HERE. I have a UITabbarcontoller and a IUNavigationController they seem to work fine. I have a UITableviewController to which I loads my NSMutable array. The user clicks a cell and didSelectRowAtIndexPath xib is loade...

From xcode not able to execute DISTINCT keyword for sqlite

-(void) readProductsFromDatabase { // Setup the database object sqlite3 *database; // Init the animals Array products = [[NSMutableArray alloc] init]; // Open the database from the users filessytem if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) { NSLog(@"db opened"); // Setup the SQL Statement and c...

map view inside table view cell

Hello, i have another (probably unanswered) question about map views. I have a map view inside a table view cell and i want to disable the table view scrolling if the scrolling begins in the map view. Also the zooming gesture does not function normally. It only functions if the zooming gesture is done horizontally on the iphone display. ...

Enabling edit mode for only one row in table view

Hi, I can set the edit mode for a while uitableview by calling [tableView setEditing:YES]; But that sets the edit mode for all the rows in a table. Is there a way to detect what row was swiped an enable the edit mode only for that row? Thanks ...

Variable Scope Problem, iPhone

Hello all, I need some help here so I will do my best to explain. I have worked on this all day and had no success (just learning!) I have: NSArray *getValue(NSString *iosearch) { mach_port_t masterPort; CFTypeID propID = (CFTypeID) NULL; unsigned int bufSize; kern_return_t kr = IOMasterPo...

Reference from UITableViewCell to UITableView to UINavigationController

If the user taps and holds on a Foo table view cell for 2 seconds, a modal view should be shown. The modal view is also displayed when a new Foo is added to the cell. The modal view's delegate protocol is implemented by the parent UITableView subclass. My tap and hold detection code is in the Foo UITableViewCell class. I'm having dif...

Attributed strings in UITableViewCells without WebView?

Hello, does anyone know if there's a way in with 3.0+ to display attributed strings within a UITableViewCell without using a UIWebView for that? I need to display a string with linked, tappable substrings as the typical detailTextLabel. I wouldn't mind exchanging this UILabel against another type of view, but I think a UIWebView could b...

Problem with UITableView within a View

I have a UIViewController subclass that implement UITableViewDataSource and Delegate. When a user triggers didSelectRowAtIndexPath I alloc init this second ViewController with presentModalViewController and set my class as a delegate. When the user finish working on the modal I notify the parent ViewContoller to save his data and dismis...

Difference of 2 NSArray's for animated insert/delete in UITableView

At some point in my Application, I have an NSArray whose contents change. Those contents are shown in a UITableView. I'm trying to find a way to find the diff between the contents of before and after of the NSArray so i can pass the correct indexPaths to insertRowsAtIndexPaths:withRowAnimation: and deleteRowsAtIndexPaths:withRowAnimation...

iPhone: Waiting until selectrow animation finishes before pushing viewcontroller?

My code looks like this: NSIndexPath *ip = [NSIndexPath indexPathForRow:15 inSection:0]; [[self tableView] selectRowAtIndexPath:ip animated:YES scrollPosition:UITableViewScrollPositionMiddle]; // Pause needed here until animation finishes [[self navigationController] pushViewController:secondView animated:YES]; Right now it animates...

IPHONE: For UITableView -- changing to next view takes time, how to show UIActivityIndicatorView?

So, my UITableViewCell has UITableViewCellAccessoryDetailDisclosureButton, and when somebody clicks on it it make long time just to show next view screen... so I want to show some "rolling wait image" (UIActivityIndicatorView ?) say next to UITableViewCellAccessoryDetailDisclosureButton in this cell, but how do I do it right? How to use ...