Iphone UITableView custom cell button event -


I have a UITableView that has its rows in the form of a custom cell; they have 2 buttons in these custom cells.

I click the button in the custom cell class Just wondering how I direct that event from custom cell class to the original view controller which holds the UITableView control. advice?

Thanks

You can:

  - (zero) Button Tap: (ID) Sender Event: (ID) Event {CGPET Touchposses = [[[Event All Talkies] Any Object] Location Inview: Stableable View]; NSIndexPath * indexPath = [self.tableView indexPathorrowoutpoint: touchpath]; If (indexPath! = Nil) {// do something here}} // in cellForForAtIndexPath, bind to selector: UIButton * button = (UIButton *) [cell view description: 1]; [Button addTarget: Self-action: @Selector (buttontap: Event :) Control events: UI ControlWatch Touchup Inside];  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -