DiabetesCompass / Diabetes_Compass

iOS code for type 1 diabetes management
MIT License
4 stars 0 forks source link

Estimated BG plot not showing on Compass scene #1

Closed calferness closed 7 years ago

calferness commented 7 years ago

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.

beepscore commented 7 years ago

Notes

HomeViewController

HomeViewController viewDidAppear calls [self showCurrentBG] HomeViewController view top contains CurrentBGViewController

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"

GraphViewController

HomeViewController updateData is commented out it looks for GraphViewController if it finds GraphViewController, it calls GraphViewController updateData

beepscore commented 7 years ago

I added an embed segue HomeToGraphSegue to show graph. TODO: Adjust size, populate with data if needed.

calferness commented 7 years ago

Interesting. I looked at this, but couldn’t see anything that referenced the CurrentBGViewController in the HomeViewController like a #import CurrentBGViewController.

beepscore commented 7 years ago

Fixed. Set GraphViewController viewDidLoad to observe notifications.