我有一個NSArray,其中包含以下名稱和日期對。注:日期始終在我的自定義陣列的索引1中使用NSDate範圍搜索NSArray
MyCustomArray:
(
"Toms Bday"
"2012-01-10"
)
(
"Jesscia Bday"
"2012-01-27"
)
(
"Jills Bday"
"2012-03-03"
)
(
"Joes Bday"
"2012-04-15"
)
我的數組中有數百個名稱日期對。因此,對於給定的StartDate =「2012-01-01」和endDate =「2012-01-31」,我只想得到以下記錄。我怎麼做?
(
"Toms Bday"
"2012-01-10"
)
(
"Jesscia Bday"
"2012-01-27"
)
我看着這個帖子Why can't NSDate be compared using <or>?,但仍然無法弄清楚。
所以這是一個數組的數組,其中第一個項目是一個'NSString'代表一個日期,對吧? – 2012-12-28 14:54:08
是的你是正確的 –