You do not set the frame for the GraphView object:
GraphView *aGraphView = [[GraphView alloc] init];
The designated initializer for the UIView is -initWithFrame: Do something like this (specifying the size / origin of the view as you wish):
GraphView *aGraphView = [[GraphView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
source share