Created
December 29, 2014 01:31
-
-
Save iamjason/8f8f4bc00c13de86bcad to your computer and use it in GitHub Desktop.
Swift US States Array
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
let state = [ "AK - Alaska", | |
"AL - Alabama", | |
"AR - Arkansas", | |
"AS - American Samoa", | |
"AZ - Arizona", | |
"CA - California", | |
"CO - Colorado", | |
"CT - Connecticut", | |
"DC - District of Columbia", | |
"DE - Delaware", | |
"FL - Florida", | |
"GA - Georgia", | |
"GU - Guam", | |
"HI - Hawaii", | |
"IA - Iowa", | |
"ID - Idaho", | |
"IL - Illinois", | |
"IN - Indiana", | |
"KS - Kansas", | |
"KY - Kentucky", | |
"LA - Louisiana", | |
"MA - Massachusetts", | |
"MD - Maryland", | |
"ME - Maine", | |
"MI - Michigan", | |
"MN - Minnesota", | |
"MO - Missouri", | |
"MS - Mississippi", | |
"MT - Montana", | |
"NC - North Carolina", | |
"ND - North Dakota", | |
"NE - Nebraska", | |
"NH - New Hampshire", | |
"NJ - New Jersey", | |
"NM - New Mexico", | |
"NV - Nevada", | |
"NY - New York", | |
"OH - Ohio", | |
"OK - Oklahoma", | |
"OR - Oregon", | |
"PA - Pennsylvania", | |
"PR - Puerto Rico", | |
"RI - Rhode Island", | |
"SC - South Carolina", | |
"SD - South Dakota", | |
"TN - Tennessee", | |
"TX - Texas", | |
"UT - Utah", | |
"VA - Virginia", | |
"VI - Virgin Islands", | |
"VT - Vermont", | |
"WA - Washington", | |
"WI - Wisconsin", | |
"WV - West Virginia", | |
"WY - Wyoming"] |
Thank you very much.
statesPopUpButton.removeAllItems()
statesPopUpButton.addItems(withTitles: states)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can copy different formats of states data from here: https://usastatescode.com/state-array-json