Note that there are some explanatory texts on larger screens.

plurals
  1. POresize the Hosting View through addSubview in Core-Plot in XCode 4
    primarykey
    data
    text
    <p>I'm running into a wall trying to resize the Hosting View. The problem is I either get a full-screen plot or a blank screen. I'm hoping to get some leads to fix this problem:</p> <p>I'm using Xcode 4 | IOS 4.3 | Recently downloaded core plot using hg:</p> <p>I have two xib files (MainWindow &amp; my ViewController) My ViewController.xib file contains two objects: a View and Hosting View both at the same level: +-View +-Graph Hosting View</p> <p>I get no erros in my code, but all I get a blank screen. I've searched for 3 days how to get around this problem, but haven't found something that works.</p> <p>My xAppDelegate.h</p> <pre><code> #import &lt;UIKit/UIKit.h&gt; @class CorePlotTestViewController; @interface CorePlotTestAppDelegate : NSObject &lt;UIApplicationDelegate&gt; { } @property (nonatomic, retain) IBOutlet UIWindow *window; @property (nonatomic, retain) IBOutlet CorePlotTestViewController *viewController; @end </code></pre> <p>My ViewController.h</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; #import "CorePlot-CocoaTouch.h" @interface CorePlotTestViewController : UIViewController &lt;CPTPlotDataSource&gt; { CPTXYGraph *graph; NSMutableArray *dataForPlot; CPTGraphHostingView *graphView; } @property(readwrite, retain, nonatomic) NSMutableArray *dataForPlot; @property(nonatomic, retain)IBOutlet CPTGraphHostingView* graphView; </code></pre> <p>My ViewController.m </p> <pre><code> #import "CorePlotTestViewController.h" @interface CorePlotTestViewController(private) - (void) configureTableHeader; @end @implementation CorePlotTestViewController @synthesize dataForPlot; @synthesize graphView; -(void)dealloc { [dataForPlot release]; [super dealloc]; } - (void)viewDidLoad { [super viewDidLoad]; [self configureTableHeader]; } - (void) configureTableHeader { // here I implement the contents of the Hosting View graph = [[CPTXYGraph alloc] initWithFrame: CGRectZero]; CPTGraphHostingView *hostingView = [(CPTGraphHostingView *)[CPTGraphHostingView alloc] initWithFrame:CGRectZero]; [self.view addSubview:hostingView]; ... // etc ... } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload