Page 1 of 1 [ 5 posts ] 

Madbones
Veteran
Veteran

User avatar

Joined: 7 Mar 2010
Age: 28
Gender: Male
Posts: 777
Location: In the zone

04 Oct 2011, 1:24 pm

I have this problem with Core Plot. I want to have a CPTGraphHostingView inside my UIView so I can have things like labels and scroll views below it.

I am using Xcode 3.2 by the way.

How do I do this progromaticly? Or with the Interface builder if possibile.(I need the instructions to be detailed as im I bit new to this sort of thing)
Please help.
Thanks



kc8ufv
Veteran
Veteran

User avatar

Joined: 27 Jul 2008
Age: 43
Gender: Female
Posts: 762
Location: Toledo, OH

04 Oct 2011, 2:10 pm

I'm confused, what is CPTGraphHostingView? I've not used UIView in a while, as my XP laptop died early this year, so I usually use the web based findu, or Xastir...



MDM
Snowy Owl
Snowy Owl

User avatar

Joined: 30 May 2010
Age: 31
Gender: Male
Posts: 126
Location: Montana, USA

04 Oct 2011, 2:40 pm

Make a UIView in interface builder, rename the class to the proper class type, and resize it how you see fit.



Madbones
Veteran
Veteran

User avatar

Joined: 7 Mar 2010
Age: 28
Gender: Male
Posts: 777
Location: In the zone

04 Oct 2011, 2:55 pm

MDM wrote:
Make a UIView in interface builder, rename the class to the proper class type, and resize it how you see fit.

Sorry, im not being specific enough.
What I do:
Open interface builder.
Drag another UIView (and turn it into a CPTGraphHostingView) inside my mainViewControllers view.
This is the point where I get lost.
I cannot put my Core Plot code in my MainViewControllers.m and .h files because it will execute the code on the main UIView rather then my CPTGraphHostingView, so what I do is open up interface builder and press write class files. Then put in the code (Will this work?).



MDM
Snowy Owl
Snowy Owl

User avatar

Joined: 30 May 2010
Age: 31
Gender: Male
Posts: 126
Location: Montana, USA

04 Oct 2011, 5:53 pm

You probably have something messed up in your hierarchy. However, to fix someone would need to see the project itself (which I personally think goes beyond the depth of this forum).