#pragma mark representation method in Swift

Use #pragma mark - to separate and identify code in OC to generate separation lines

Use #pragma mark function specification to generate a function specification X

But in swift, this syntax is not supported. After all, it belongs to C syntax, so there are new syntaxes, such as: // MARK: // FIXME // TODO: etc.

// MARK: - generate divider

// MARK: Description

Don't forget that colon. . .

Reference: http://stackoverflow.com/questions/24017316/pragma-mark-in-swift

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324684947&siteId=291194637