0
我將我的遊戲從Cocos2d移植到Cocos2dx。我在模塊中使用了下面的代碼C++中的NSSortDescriptor替代方案
enter code here
NSMutableArray * tempArray = roomModels;
NSSortDescriptor *sortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"displayOrder" ascending:YES];
[tempArray sortUsingDescriptors:[NSArray arrayWithObject:sortDescriptor]];
有沒有解決方案使用Cocos2dx將此代碼移植到C++中?