• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
unbutton inside table cell action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unbutton inside table cell action


  • Subject: unbutton inside table cell action
  • From: John Baldwin <email@hidden>
  • Date: Fri, 21 Mar 2014 10:18:10 -0700

I have a custom UITableViewCell I created in XCode.

Inside the UITableViewCell is a button. I've set the target for that button to the File's Owner.

The File's Owner is my own custom tableViewCellController (UITableViewCell subclass).

Inside my TableView controller, I add the custom cell to my table view (inside cellForRowAtIndexPath:):

    NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomTableViewCell" owner:self options:nil];
    CustomTableViewCell *cell = [nib objectAtIndex:0];
    
    return cell;


When I click the button, the action is sent to my tableViewController rather than my tableViewCellController.

In the XIB file, the action is shown as such:

<action selector="myAction:" destination="-1" eventType="touchUpInside" id="..."/>

In my case, having my tableViewController handle the action will work OK, but I would expect the action to go to my tableViewCellController instead.

Can someone point me to some info so I can understand why my actions are being sent where they are?

John
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Force Xcode to code sign my unit test bundle?
  • Next by Date: Documentation window nonfunctional when no internet available
  • Previous by thread: Re: Runtime lookup of build variables ...
  • Next by thread: Documentation window nonfunctional when no internet available
  • Index(es):
    • Date
    • Thread