[FIXED] Wie kann man Cast UIView in eine CPGraphHostingView eingeben?

Ausgabe

Wie kann man Cast UIView in eine CPGraphHostingView eingeben?

Lösung

Es sei denn, Ihr UIView wurde nicht als echtes UIView-Objekt ([[UIView alloc]initWithFrame:]) erstellt, versuchen Sie es, sondern als CPGraphHostingView-Objekt ([[CPGraphHostingView alloc]initWithFrame:]).

(CPGraphHostingView*)view

wie ein normaler Typcast geschrieben wird.


Beantwortet von –
AlexVogel


Antwort geprüft von –
Gilberto Lyons (FixError Admin)

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like