|
For Project 1, Challenge 2, I added a fourth section to display the original check amount plus tip value, without dividing by the number of people as requested. That works fine. I then went ahead and added a header to the new section with header text "Total amount for the check". The app builds fine but when I click in the amount field in the Simulator which brings up the keyboard there are now two "Done" buttons on the keyboard (the button was added to remove focus from the amount field). When I remove the header the issue goes away and there is only one "Done" button again on the keyboard. I'm struggling to understand why the addition of the header is causing that issue. Any thoughts? |
|
|
|
Sorry meant to do that but forgot. Here it is...
|
|
Move the navigationTitle and the toolbar on the Form and not on the last section.
|
|
Thanks! One issue I had was being able to track the brace pairs to be sure I had things correctly formated. Since the code covered move than one screen length I could not see, for example, the corresponding open brace if I clicked before a closed brace at the bottom of the code. Any Xcode trick to see how braces match for long lines of code? |
|
Sorry, my bad in last reply..."if I clicked AFTER a closed brace at the bottom of the code." |
|
|
|
SPONSORED Optimize your app’s startup time, binary size, and overall performance using Emerge’s advanced app optimization and monitoring tools. Reliably measure app size, speed up your app's startup time with Emerge's Launch Booster, and much more. Emerge is actively used by many of the top mobile development teams in the world.
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.