Such a proud mommie HCC Stem Summer Camp Graduation #hcc #swift #appleswift #apple (at Houston Community College District)

seen from Malaysia
seen from Australia
seen from China
seen from China
seen from China
seen from China
seen from Netherlands
seen from United States
seen from China
seen from China
seen from Türkiye

seen from Canada
seen from Russia

seen from China

seen from Netherlands
seen from United States
seen from Canada
seen from Yemen
seen from China

seen from Malaysia
Such a proud mommie HCC Stem Summer Camp Graduation #hcc #swift #appleswift #apple (at Houston Community College District)
Downloading xcode. Few minutes left. Are you doing the same? It's free get it!
The race is to the SWIFT!?
some guy pre-computers
Swift come at me bruh! Jellys, nuts and 2 computers a coders dream...or not! #creatingapps #coders #swift #appleswift #newlanguage
Apple makes its Swift programming language open source
Apple makes its Swift programming language open source
Earlier this year, Apple said it would be making its programming language Swift open source. And now the company's making good on that promise to developers, specifically those who want to make apps for OS X, iOS and watchOS
Read More
View On WordPress
Persistent Storage
I'm currently learning about Persistent Storage through the udemy course. It seems like a really useful way of storing stuff. It reminds me a lot of HTML5's Local Storage. You first set an object with a key, synchronize this object and then you're able to retrieve it using the key. For example:
NSUserDefaults.standardUserDefaults().setObject("Rob", forKey: "myName")
NSUserDefaults.standardUserDefaults().synchronize()
NSUserDefaults.standardUserDefaults().objectForKey("myName")
However I found this quite 'long' to write down. So I tried something to make it more compact. I created a variable that holds the NSUserdefaults etc function, so I can use this var to fill in the rest.
var prefs = NSUserDefaults.standardUserDefaults()
prefs.setObject("Bart", forKey: "Naam")
prefs.synchronize()
prefs.objectForKey("Naam")
This way I don't have to write everything down everytime, I could also reuse prefs every time I'd like to use the standardUserDefaults anywhere in my Swift code. Before I end this post, I've also continued the lessons about filling in tableviews. This was quite easy to me, so I wont be writing a whole story again. Filling table views with non-static content however is a different story. I'd like to practice that subject a little bit more.
Hours spend: 2 Total hours spend: 18
#helloworld with #appleswift by #apple