DiabetesCompass / Diabetes_Compass

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

BG reading outside of range alert needed #39

Open calferness opened 7 years ago

calferness commented 7 years ago

It is unlikely that a previous BG reading would need to be deleted or edited unless one accidentally clicked the done button. One way to make this even more unlikely would be to add an if then to check the value of a new entry before allowing it to be saved to memory to see if it is outside a reasonable range. Perhaps the best would be an alert that pops up if the BG reading was <25 or > 500 mg/dL (both possible, but unusual). The alert should have one button that allows it to be saved and one that cancels the save and goes back to the entry screen.