The original title was “SWIFT NOTES - SWITCH”, after doing some further reading and learning, I realized that it should be all about pattern matching.
But the whole story begins with the Swift switch statement for sure …
Miscellaneous knowledges I collected when learning Swift language.
Differences between Swift
Notes about Swift initialization
guard from Swift is a branching statement similar to
if, but have its own
distinct use cases.
Notes about Swift collection types.
NOTES for What’S New in Swift (2015) from WWDC15.
Here records the simple usage that I learned from the 3 well-known open source networking frameworks:
ASIHTTPRequest written in Objective-C language
AFNetworking written in Objective-C language
Alamofire written in Swift Language
All example below are run asynchronously.
iOS Animation API Clusters From Top to Bottom In general there are 2 groups of APIs: the view based animation APIs & the underlying Core Animation APIs that is backing the former. UIView begin... & commit... style APIs They are the oldest APIs before block was introduced into the framework, with begin... to start recording an animation, a bunch of setAnimation... to be called subsequently to set configure various animations detailes, and then ends with a commit...
There has been hundreds of WWDC session videos on Apple WWDC, which provide first-hand knowledges about iOS development from Apple’s engineers’ perspective.
Here records progressively my summaries after watching, mainly about the order and prerequisites of watching parts of them.
For those who are new to it, I highly recommend the ASCIIwwdc website.
Searchable full-text transcripts of WWDC sessions
Find the content you’re looking for, without scrubbing through videos
iOS Media Frameworks Stack The Trunk Relation Graph
AMap (高德地图) APIs depicted in several graphs I draw.
Quick steps to use iOS’s LBS technology.
Thanks to the host of technologies provided by the Swift compiler, the closure comes with a bunch of syntactic sugars that could sweet you to diabetes.
Collect several Unicode concepts encountered when I learn Swift’s String type.
Excerpts from the “Functions” section of the official docuemnt 《The Swift Programming Language》
Collect all my gain from study & using Swift’s casting mechanism here.
Handle iOS keyboard poppu & resignment gracefully.
Learning notes about object oriented features of the Swift programming language.
Liquid Layout This is the browser’s default layout behavior, if you did not add any CSS to style a page. The block elements, like liquid, just fill as much space as they can in the pages. Frozen Layout By using the CSS attribute combination of float and width, we can put a containing block (i.e. <seciton>, <aside>, <div>) to float on to left-most or right-most side forming a column, and let the remaining content to flow around the fixed-width floating column, forming the other column.
Alias working tree, working directory index, staging area, cache, staged snapshot commit[ted] history, commit[ted] snapshot The add & rm & reset & commit & checkout Sub-commands. between the committed history & staging area commit submit changes from staging area to committed history reset revert changes from committed history back to staging area between the staging area & working tree. add submit changes from working tree to staging area, preparing for committing.
1. Main Branches the main branch keeps the official release history (usually with version nubmer tags attached). i.e. every commits in master is a new release. all branches merged back into master must have a new incremental version number. the develop branch serves as an integration branch for features. nitghly build built from it. 2. Supporting Branches 2.1 feature (or topic) branches branch off from: develop branch merge into: develop branch naming convention: any name except master, develop, relase[/-]*, hotfix[/-]* # Branch A New Feature Branch Off From Develop Branch git checkout -b some-feature develop # Add Feature Commits To Branch Some-feature ...
I come across this library when I started to use Hugo, which says:
It is an extremely lightweight engine that provides a very small amount of logic. In our experience it is just the right amount of logic to be able to create a good static website.
Members Of Cocoa Concurrency Operation Queue abstract base class NSOperation concrete subclass NSInvocation concrete subclass NSBlockOperation Dispatch Queue Dispatch Source Operation Queue Features graph-based dependencies completion block execution status monitoring prioritizeing canceling
Run Loop 4 roles participate in the run loop game: Run Loop which is represented by NSRun Loop & CFRunLoop. Run Loop Mode which is represented by CFStringRef associated to each instance of run loop object. Run Loop Source which is represented by CFRunloopSource. Input source Port-based source Perform selctor on other threads Custom source Timer which is represented by CFRunloopTimerRef. Explictly defined timer Perform selector on current thread with delay Perform selector Run Loop Observer 4 ways to kill a run loop iteration: no sources exists since some system routines may install certain input sources to the run loop implictly, we should not kill a run loop iteration by clearing ‘all‘ sources we known.