Tutorial by Topics: ng

When using method swizzling in Swift there are two requirements that your classes/methods must comply with: Your class must extend NSObject The functions you want to swizzle must have the dynamic attribute For a complete explanation of why this is required, check out Using Swift with Cocoa...
The singleton pattern has the goal to allow only one instance of a class to exists at any given time. Preventing the direct instantiation via constructor is usually prevent by making it private. However, this is not possible in As3 and thus other ways to control the number of instances have to be...
This section provides an overview of what cocoa is, and why a developer might want to use it. It should also mention any large subjects within cocoa, and link out to the related topics. Since the Documentation for cocoa is new, you may need to create initial versions of those related topics. ...
git stash list [<options>] git stash show [<stash>] git stash drop [-q|--quiet] [<stash>] git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>] git stash branch <branchname> [<stash>] git stash [save [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet] [-u...
NSAssert(condition, fmtMessage, arg1, arg2, ...) (args in italics are optional) -- Asserts that condition evaluates to a true value. If it doesn't than the assertion will raise an exception (NSAssertionException), with the fmtMessage formatted with the args provided
a[start:end] # items start through end-1 a[start:] # items start through the rest of the array a[:end] # items from the beginning through end-1 a[start:end:step] # start through not past end, by step a[:] # a copy of the whole array source lst[::-1] gives you a revers...
Set - The operator used to set a reference to an object, such as a Range For Each - The operator used to loop through every item in a collection Note that the variable names r, cell and others can be named however you like but should be named appropriately so the code is easier to underst...
These classes are reference libraries of methods and properties that do not change state, in one word, immutable. You don't need to create them, you simply use them. Classes and methods such as these are called static classes because they are not created, destroyed, or changed.You can refer to a sta...
Routing is how ASP.NET MVC matches a URI to an action. Routing module is responsible for mapping incoming browser requests to particular MVC controller actions. MVC 5 supports a new type of routing, called attribute routing. As the name implies, attribute routing uses attributes to define routes. A...
import {component} from 'libName'; // Will import the class "component" import {component as c} from 'libName'; // Will import the class "component" into a "c" object import component from 'libname'; // Will import the default export from libName import * as lib fr...
Before URLs can be rewritten, a module called mod_rewrite.c needs to be enabled. Usually, it is disabled in the configuration by default. mod_rewrite can be enabled by executing the command $ sudo a2enmod mod_rewrite $ sudo service apache2 restart or by commenting out the lines #LoadModule ...
Log.v(String tag, String msg, Throwable tr) Log.v(String tag, String msg) Log.d(String tag, String msg, Throwable tr) Log.d(String tag, String msg) Log.i(String tag, String msg, Throwable tr) Log.i(String tag, String msg) Log.w(String tag, String msg, Throwable tr) Log.w(String tag, String...

Page 25 of 164