Unknown class CPTGraphHostingView in Interface Builder file.
2012-01-09 16:09:34.242 ChartArea[2595:207] -[UIView setHostedGraph:]: unrecognized selector sent to instance 0x4c064f0
2012-01-09 16:09:34.245 ChartArea[2595:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setHostedGraph:]: unrecognized selector sent to instance 0x4c064f0'
Questo è l'errore che sto ottenendo questa sera. sto impostando il nome della classe di CPTGraphHostingView sul mio uiview all'interno di interfacebuilder.L'applicazione si arresta in modo anomalo quando si lavora con la trama principale
provare questo nel codice CPTGraphHostingView * hostingView = (CPTGraphHostingView *) self.view; –
CPTGraphHostingView * hostingView = (CPTGraphHostingView *) self.view; questo è quello che ho usato nel mio codice! – kiran
riguarda il generatore di interfacce che non sta leggendo. Dire alla classe di non sapere è il problema, anche se ho dato la giusta classe nella mia interfaccia Builder per UIView per ottenere il grafico del grafico a barre – kiran