You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RTFM: Development for Mobile Devices
hey all-
I'm having a problem getting a UIButton to respond to a touch event.
Here is what I'm doing:
I have my main tableview code in one file and the headerview in
another file (so i can track touches).
I want to switch the selector for a button in the headerview to a
method in the tableview file. I've been trying to use something like
this from the tableview: [self.headerView.menuBtn addTarget:self
selector:@selector(addRecipe) action:UIControlEventTouchUpInside]; (or
something like that). Any ideas on why the selector never gets called?
Thanks.
DavidK
unread,
May 10, 2009, 7:09:06 PM5/10/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RTFM: Development for Mobile Devices
Dunno, have you tried giving the header a pointer to the parent and
setting the target to that?
Jeff Hentschel
unread,
May 10, 2009, 8:55:52 PM5/10/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RTFM: Development for Mobile Devices
Apparently because I was trying to add the action before setting up
the header view, it didn't like the target and selector I was setting,
but once I set up the header before, everything started working.