0
我有一個場景,應用程序從json php中檢索信息到NSMutableArray
。我的問題如下:我如何通過「時間」字段對元素進行排序?另外我怎樣才能只顯示「星期一」爲「星期一」的元素? (if語句會是什麼樣子?)。感謝您的幫助。我如何排序NSMutableArray iphone?
此外,NSMutableArray
中的信息如下所示;
Array: (
{
Code = 2COS402;
Core = Yes;
Credit = 15;
Day = Monday;
Facilities = Full;
Level = 4;
Module = "Introduction to Computer Programming";
"Room_Empty" = Yes;
Teacher = "Mark James";
Time = "10:45";
id = 1;
},
{
Code = 2GDP401;
Core = Yes;
Credit = 15;
Day = Monday;
Facilities = Full;
Level = 4;
Module = "Fundamentals of Interactive Games";
"Room_Empty" = No;
Teacher = "Will Smith";
Time = "09:00";
id = 4;
},
{
Code = 2GDP501;
Core = Yes;
Credit = 15;
Day = Monday;
Facilities = Full;
Level = 4;
Module = "Games Play Design";
"Room_Empty" = Yes;
Teacher = "Frank Sinatra";
Time = "15:00";
id = 6;
}
)