A sprite is a graphic/icon/image that is displayed inside a larger area of a screen. Think of it this way; if a fairy (or sprite) were flying around the screen with a background image of a princess castle, the sprite would still move independently of the background as an entity in itself.
For our current game, we have a ship sprite that we want to move from left to right. For our game example, we are going to add in a move-left and move-right button. Our sprite will move along its x axis when the buttons are pushed.
Let's start with creating the buttons. Create two button views in our storyboard, as shown in the following screenshot:
Open your assistant editor. Press the Ctrl key and click and drag your buttons to