Seltsame Ziel-c-Syntax - eckige Klammern und @ -Zeichen

Ich verwende GHSidebarNav in einem meiner Projekte und bin auf diesen Code gestoßen, der ein Array von Objekten zuweist. Ich habe nur keine Ahnung, was es tut. Ist es nur ein Array? Was ist das komisch@[...] Syntax? Ich habe das noch nie gesehen:

NSArray *controllers = @[
    @[
        [[UINavigationController alloc] initWithRootViewController:[[GHRootViewController alloc] initWithTitle:@"Profile" withRevealBlock:revealBlock]]
    ],
    @[
        [[UINavigationController alloc] initWithRootViewController:[[GHRootViewController alloc] initWithTitle:@"News Feed" withRevealBlock:revealBlock]],
        [[UINavigationController alloc] initWithRootViewController:[[GHMessagesViewController alloc] initWithTitle:@"Messages" withRevealBlock:revealBlock]],
        [[UINavigationController alloc] initWithRootViewController:[[GHRootViewController alloc] initWithTitle:@"Nearby" withRevealBlock:revealBlock]],
        [[UINavigationController alloc] initWithRootViewController:[[GHRootViewController alloc] initWithTitle:@"Events" withRevealBlock:revealBlock]],
        [[UINavigationController alloc] initWithRootViewController:[[GHRootViewController alloc] initWithTitle:@"Friends" withRevealBlock:revealBlock]]
    ]
];

Antworten auf die Frage(2)

Ihre Antwort auf die Frage