I am fairly new to Xcode but not new to programming.
I am using XCode 4.6.1 using Storyboard creating an App to run on an iPad.
I am not familiar with NIBs ,only Storyboard.
My MainViewController needs two functional areas -
- A graph that is refreshed from a timer 10 times per second simulating readings from a monitor.
- Below this there are buttons / text boxes etc. to alter parameters that control the output to the graph.
I am trying to get the timer to trigger the refreshing of the graph. I have tried adding an imageView (both in Storyboard and in code) to no avail.
I cannot find a way to implement this ,I found one method using the old style NIBs. This uses the View's 'owner' instance, but Storyboard does not use the View's 'owner' .
Is there something peculiar about a viewController that will not allow this output to be shown (in the viewController) ?
Apparently I need to extend my viewController with a UIView and then implement the function drawRect to redraw the graph by using setNeedDisplay.
Could anyone tell me how to do this?
Many thanks.