Chapter 3

Hello World App

My First iOS App

Adding functionalities to the buttons

Now, how do you get these buttons to work? In order to do so, you need to go to the ViewController.swift tab where you can write your code. The following code will create the method to display the meaning of the emoji when the emoji button is clicked. The logic behind the code will be explained in the next chapter. For now, you should understand the basics of how the dictionary is being created and that we retrieve the label of the selected button and then use that to find the meaning of the emoji selected.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store