|
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? |
|
|
|
You're welcome. If you double-click on a brace it will jump to it's corresponding match, selecting everything in between as well. |
|
SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.