适用于iOS的预期表达式错误xCode

时间:2017-07-08 11:08:07

标签: objective-c

我得到了"预期表达式"的xCode错误在]]的最后一行;

[[sections addObject: @[@"Section",
                      @[@"Videos", @"YOUTUBE", @"UClNZzDwpw3jSjf8bWCMkvrg" ],
                      @[@"Twitter", @"TWITTER", @"TheMC_OG"],
                      @[@"Facebook", @"FACEBOOK", @"1450927785128543" ],
                      @[@"Instagram", @"INSTAGRAM", @"1468344498"]],
                      @[@"Whiskey Ducks", @"WEB", @[@"http://WhiskeyDucks.us" ]],
                      @[@"Apparel", @"WEB", @[@"http://GcpMC.Spreadshirt.com" ]],
]];

我是Coding的新手,需要帮助解决这个问题。

here is the full code if you need它在通用的Config.m

1 个答案:

答案 0 :(得分:1)

试试这个:

[sections addObject:@[@"Section",@[@"Videos", @"YOUTUBE", @"UClNZzDwpw3jSjf8bWCMkvrg" ],@[@"Twitter", @"TWITTER", @"TheMC_OG"],@[@"Facebook", @"FACEBOOK", @"1450927785128543"],@[@"Instagram", @"INSTAGRAM", @"1468344498"],@[@"Whiskey Ducks", @"WEB"], @[@"http://WhiskeyDucks.us"],@[@"Apparel", @"WEB"], @[@"http://GcpMC.Spreadshirt.com"]]];