Weird objective-c syntax - square brackets and @ sign

后端 未结 2 1967
渐次进展
渐次进展 2020-12-11 06:23

I\'m using GHSidebarNav in one of my projects and I came across this code allocating an array of objects. I just have no idea what its doing. Is it just an array? What is th

2条回答
  •  旧时难觅i
    2020-12-11 06:37

    That's a new objective C literal that is declaring a multi dimensional array.

    It's replacing [NSArray arrayWithObjects:[NSArray arrayWithObjects:...], [NSArray arrayWithObjects:..]]];

提交回复
热议问题