Closed calferness closed 7 years ago
Notes
HomeViewController viewDidAppear calls [self showCurrentBG] HomeViewController view top contains CurrentBGViewController
viewWillAppear calls [self updateData] this sets several text view texts "header" says BGCompass, has trendsButton and menuButton bString is below header, centered large font, above "settles at"
HomeViewController updateData is commented out it looks for GraphViewController if it finds GraphViewController, it calls GraphViewController updateData
I added an embed segue HomeToGraphSegue to show graph. TODO: Adjust size, populate with data if needed.
Interesting. I looked at this, but couldn’t see anything that referenced the CurrentBGViewController in the HomeViewController like a #import CurrentBGViewController.
Fixed. Set GraphViewController viewDidLoad to observe notifications.
the plot of estimated BG should be updated anytime there is a change in the data files or if time advances one minute. GraphViewController should be called.