View Full Version : Where to find UITableViewCell configure button
RossOliver
Apr 13, 2008, 08:51 AM
Hey,
In interface builder when you drag a UITableViewCell onto a view you can set the button displayed at the right of the cell to 'Configure button'.
Is this a predefined button available in XCode or is it just in Interface Builder? If it's just in IB then is there a way to get my hands on it to use in my XCode custom UITableViewCell?
Thanks for your time,
-Ross
RossOliver
Apr 13, 2008, 08:57 AM
Typical, I just found it is a preset:
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
Never mind :rolleyes:
RossOliver
Apr 13, 2008, 10:27 AM
Hmm, now I have my configure button, but I can't get the accessoryAction property to work:
cell.accessoryAction = @selector( someAction );
This should call the someAction method (in the same module) but it doesn't appear to... any ideas?
Thanks,
-Ross
ethana
Aug 9, 2008, 03:02 AM
I have this same problem. Anyone have any idea on how to make that chevron icon work?
gagandeepb
Sep 4, 2008, 04:48 AM
Hi Guys,
I am new in devlopment. Please tell me how can i add header in UITableView class and i hav to always add label for showing txt in columns or is there any other way. Tell me how can i bind multiple column datasource to this UITableView object.Tell me how can i handle single click event on particular cell i am able to capture it but for only selected row not cell. indexPath.Section always come zero.
Thanks in advance
Gagan
PhoneyDeveloper
Sep 4, 2008, 08:38 AM
In order for an action to work you also need a target, which is the object that the action message will be sent to. Typically an action method takes a single parameter so the selector has a colon at the end.
So in your tableview controller you might have code like this
cell.target = self;
cell.accessoryAction = @selector(theAction:);
If you have a table and just want to see the chevron and then respond to a row being selected instead you should just implement these delegate methods:
tableView:accessoryTypeForRowWithIndexPath:
tableView:commitEditingStyle: forRowAtIndexPath:
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.