Adding the icons for the Explore and Map buttons

The Explore and Map buttons currently do not have icons. These icons are in the Assets.xcassets folder. Let's add them to the buttons now:

  1. Click Main.storyboardClick Explore under Explore Scene. Click the Attributes Inspector button:

  1. In the Attributes Inspector, set Bar Item | Image to icon-explore-on:

  1. Click the Map button under Map Scene and, in the Attributes Inspector, set Bar Item | Image to icon-map-on:

Build and run your app. When the app has finished launching, you can see the Explore and Map buttons now have icons:

Congratulations! You have successfully configured the Launch screen and the tab bar of your app!

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

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