Building the Finished Application

Build and run the application on the iPhone 11 Pro simulator, as you did earlier. You should see the first question displayed in the top label.

If building turns up any errors, you can view them in the issue navigator by selecting the Building the Finished Application tab in the navigator area. Figure 1.27 shows the issue navigator with errors we added as examples.

Figure 1.27  Issue navigator with example errors

Issue navigator with example errors

Click on any error or warning in the issue navigator to be taken to the file and the line of code where the issue occurred. Find and fix any problems (like code typos) by comparing your code with the code in this chapter. Then try running the application again. Repeat this process until your application compiles.

After your application has compiled, it will launch in the iOS simulator. Play around with the Quiz application. You should be able to tap the Next Question button and see a new question in the top label; tapping Show Answer should show the right answer. If your application is not working as expected, double-check your connections in Main.storyboard.

You have built a working iOS app! Take a moment to bask in the glory.

OK, enough basking. Your app works, but it needs some spit and polish.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset