In the objective-c, in order to make the code organized by the convenient use of Control+6 shortcut keys in Xcode to find, so there is a lot of people are familiar with the east. This is:#prama Mark.
#pragma mark
But what does this thing correspond to in Swift?
First a lot of simple, no need to write so many letters ... These landmark are //mark: (= = #pragma),//todo:,//fixme.
These landmark can already be used in the xcode6.0.1.
Objective-c's #warning in Swift does not have a standard corresponding landmark, which is generally replaced by the global function fatalerror .
A fatal error occurred and program execution should stop in debug,///optimized and unchecked modes. @noreturn func fat Alerror (message:staticstring, file:staticstring = default, Line:uword = default)
Call this function FatalError ("Method not Implemented")in a method that the subclass must implement. where the fatalerror method is used, the compilation can be done. But in the run time will be error!
Swift Demining (i)