Einzelnen Beitrag anzeigen

jensw_2000
(Gast)

n/a Beiträge
 
#6

AW: XE5 + iOS: AnimationDelegate und Selector für AnimationDidStopSelector erstellen?

  Alt 5. Feb 2014, 14:41
Hast Recht. Der Codeschnipsel im EMBT Forum ist Nonsens.

Laut der Apple Doku muss der Selector exakt folgende Signatur haben:
- (void)myTransitionDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context; Die Parameter "animationID" und "context" können dabei NIL Werte bekommen.

Unter Oxygene würde ich das so lösen:
Delphi-Quellcode:
type TContext=method();
var aContext:TContext;

method myTransitionDidStop(animationID:NSString) finished(finished:NSNumber) context(aContext);
Wie man das in Delphi ohne "multi-part method names" lösen kann weiß ich nicht.

Geändert von jensw_2000 ( 5. Feb 2014 um 14:44 Uhr)
  Mit Zitat antworten Zitat