Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-08-2010, 10:08 PM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 193
Default CorePlot CPLayerHostingView

In the CPTestApp, ive started coding it from scratch for my own use. All is fine, but it crashes saying Unknown Class CPLayerHostingView in IB, [UIView setHostedLayer:] unrecognized selector.

In IB, i can see that the MainWIndow.xib is fine, everything identical, set up properly. But in the individual xib files, for each individual UIView, the view outlet is connected to files owner but in yellow and the alert reads:

The view outlet of Files Owner is connected to Layer Hosting View but CPLayerHostingView is not a kind of UIView as specified by the outlet type...

any ideas? Ive tried starting the file from scratch again but i get the same error.
marciokoko is offline   Reply With Quote
Old 02-09-2010, 04:25 AM   #2 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 2
Default

Quote:
Originally Posted by marciokoko View Post
In the CPTestApp, ive started coding it from scratch for my own use. All is fine, but it crashes saying Unknown Class CPLayerHostingView in IB, [UIView setHostedLayer:] unrecognized selector.

In IB, i can see that the MainWIndow.xib is fine, everything identical, set up properly. But in the individual xib files, for each individual UIView, the view outlet is connected to files owner but in yellow and the alert reads:

The view outlet of Files Owner is connected to Layer Hosting View but CPLayerHostingView is not a kind of UIView as specified by the outlet type...

any ideas? Ive tried starting the file from scratch again but i get the same error.
hi
I'm using CorePlot in my App and i'm having the same warning.. curious but my app doesn't crash.
Can anyone provide some light as to why this warming comes up?
jayLachman is offline   Reply With Quote
Old 02-09-2010, 09:33 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 193
Default coreplot

send me your email, ill send you my app...or can i upload it here somehow?

i uploaded it to www.santiapps.com/betas/Dash.zip

Quote:
Originally Posted by jayLachman View Post
hi
I'm using CorePlot in my App and i'm having the same warning.. curious but my app doesn't crash.
Can anyone provide some light as to why this warming comes up?

Last edited by marciokoko; 02-09-2010 at 09:41 AM.
marciokoko is offline   Reply With Quote
Old 02-09-2010, 10:02 AM   #4 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 193
Default coreplot

I found this link:

Mela Archive Coreplot on iPhone

And saw that the following line made sense:

self.view = [[CPLayerHostingView alloc]initWithFrame:[UIScreen mainScreen].bounds];

so i added it, now i get this error:

[NSCFString sizeWithTextStyle:]

but i cant find where its being called from...

Quote:
Originally Posted by marciokoko View Post
send me your email, ill send you my app...or can i upload it here somehow?

i uploaded it to www.santiapps.com/betas/Dash.zip
marciokoko is offline   Reply With Quote
Old 02-09-2010, 12:04 PM   #5 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 193
Default Coreplot SOLVED!

i got it to work....ok, i added the -all_load -ObjC flag in the Target>Settings....I think this is where everyone gets confused...

There are 2 places where to put the other link and header search paths, in Project Settings and in Target Settings...I found these following things confusing:

1) where to add the Header Search Paths &IF Recursive or not &IF framework/ &OR framework/iPhoneonly &OR framework/Source &IF to check Always Search User Paths or not.
2) where to add the Other Links &IF to check Link with Std Libraries or Not

thx
mars
Santiapps Tailor Made Customizable Personalized iPhone apps New Latest Tech Gift Personal

Quote:
Originally Posted by marciokoko View Post
I found this link:

Mela Archive Coreplot on iPhone

And saw that the following line made sense:

self.view = [[CPLayerHostingView alloc]initWithFrame:[UIScreen mainScreen].bounds];

so i added it, now i get this error:

[NSCFString sizeWithTextStyle:]

but i cant find where its being called from...
marciokoko is offline   Reply With Quote
Old 06-08-2011, 08:55 AM   #6 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 28
Default

Quote:
Originally Posted by marciokoko View Post
send me your email, ill send you my app...or can i upload it here somehow?

i uploaded it to www.santiapps.com/betas/Dash.zip
Hi am not able to integrate coreplot can u tell the process.

I have also seeen the link
Using Core Plot in an iPhone Application | Switch on the Code

But its Showing 30 errors with "CPXYGraph expected specifier",layerhosting,......
rafiq is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 158,768
Threads: 89,202
Posts: 380,577
Top Poster: BrianSlick (7,129)
Welcome to our newest member, lucileadair
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:08 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0