Xcode Swift Code: Introduction to using Classes Methods /experimenting of the Button taps
Introduction to using Classes Methods /experimenting of the Button taps
Before I decide to implement the UI Images, I decide to learn more about the Class Methods in Swift Code. Below in figure 1 is an experiment of using different parameters such as the .self.
Figure1: Using Xcode Playground to learn how to use Classes in Swift Code.
After playing around with the parameters I then went back the card game in Xcode. Here i learned how to set up the parameters for the button touch. What happens is the when the user presses the play button, the text changes. Figure 2 illustrates this example below.
Figure 2: Using the Name Class to label the Button