Does the iOS SDK provide queues and stacks?

后端 未结 8 1737
情话喂你
情话喂你 2021-02-02 08:05

I\'m writing an iPhone app, and I\'m surprised that there seem to be no NSQueue or NSStack classes in Apple\'s Foundation Framework. I see that it would be quite easy to roll m

8条回答
  •  遇见更好的自我
    2021-02-02 08:20

    as far as I know there is no generic class avaialbe. Try using the NSMutableArray, add via addObject and get first/last via objectAtIndex and removeObjectAtIndex.

提交回复
热议问题