Before developing an ios (or osx) app, i’ve decided to gradually discover the swift language. So i ask myself how to solve a problem, and if i find the solution i will post the code snippet. (sorry for my terrible English).
And this is the “Swift solution”:
“Et voilà!”. It seems easy, but if you’ve never programmed with Objective-C, Cocoa, Foundation, … This can be difficult ;).