Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.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, 09:08 PM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 46
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, 03: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, 08:33 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 46
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 08:41 AM.
marciokoko is offline   Reply With Quote
Old 02-09-2010, 09:02 AM   #4 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 46
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, 11:04 AM   #5 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 46
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
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


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,243
Threads: 39,018
Posts: 171,143
Top Poster: smasher (2,570)
Welcome to our newest member, iWalter
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:09 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0