#import
int main(int argc, const char * argv[])
{
@autoreleasepool {
// Create three NSDate objects
NSDate *now = [NSDate date];
NSDate *tomorrow = [now dateByAddingTimeInterval:24.0 * 60.0 * 60.0];
NSDate *yesterday = [now dateByAddingTimeInterval:-24.0 * 60.0 * 60.0];
// Create an array containing all three]
NSArray *dateList= @[now, tomorrow, yesterday];
}
return 0; }
最后一句中的dataList为什么是无效的
初学不太明白
xcode具体报什么警告?是未使用到,还是无效