Last active
October 11, 2018 03:35
-
-
Save jerrypm/64ba6dcbc63b9f2138ddf1b59a09fd03 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //JeriPM | |
| // How to select an element of array Swift | |
| import UIKit | |
| class ExampleViewController: UIViewController { | |
| var exArray = ["one", "two", "three"] | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| print(exArray[0]) // result -> one | |
| print(exArray[1]) // result -> two | |
| print(exArray[2]) // result -> three | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My Blog -> Scrip Tes