phamthienbao / prework_tipcalculator

complete a short programming assignment
0 stars 0 forks source link

[Intro iOS] Preswork Assignment - Review my app #1

Open phamthienbao opened 9 years ago

phamthienbao commented 9 years ago

Hi /cc @chug2k,

My app has been completed. Please help e to review it.

Thanks, Bao

chug2k commented 9 years ago

Hello,

Thanks for the submission! Things look good - I like that you added some color to the application. As one small note, in the U.S. we often use two decimal places (so you should use %.2f but that is no big deal.

"Saving" the default tip percentage across restarts was an optional task, which is pretty easy: if you ever have time, look into NSUserDefaults.

Other than that, the submission looks good! I'll send you course details shortly.

chug2k commented 9 years ago

Hello - I've sent you email from sang@coderschool.vn, but have not received a reply. Please check your spam box and confirm your attendance tomorrow.

Thanks, Sang

phamthienbao commented 9 years ago

Hi Charles,

Thank for your tips!

I've finished an option task: "Remembering the bill amount across app restarts" using NSUserDefault.

However, could you let me know how to handle the condition (if < 10mins) in Swift?

Thanks, Bao

chug2k commented 9 years ago

Nothing fancy - just using NSUserDefaults to store a timestamp. When the application is closed, just record the time, and when the application becomes active, check to see how long it has been.