how do i add two delegates to a ui element at run time?
Posted
by Michael Xu
on Stack Overflow
See other posts from Stack Overflow
or by Michael Xu
Published on 2010-03-23T17:27:54Z
Indexed on
2010/03/23
17:33 UTC
Read the original article
Hit count: 385
Hi everyone,
im trying to implement some behaviors when a mapview element scrolls... by coding a delegate for the scrollview inside of a mapview.
so, right now, i got a pointer to the scroll view used by the map view in my code.
however, i wish to set the delegate of this scroll view inside the map view, but the issue is that the mapview already sets up a default delegate for this scroll view inside the map view.
can i make my delegate implement all of the messages of the protocol, explicitly sending them to the mapview's default delegate while also implementing my own behaviors?
how else can i go about adding my own delegate behavior, to an already existing default delegate....?
thanks everyone, michael
© Stack Overflow or respective owner