"[自我数据] [日期]"是什么意思?

Leo*_*eph 1 syntax casting objective-c ios mbcalendarkit

任何人都可以告诉我iOS中的代码是什么意思吗?它是一段代码MBCalendarKit.

@property (nonatomic, strong) NSMutableDictionary *data;

- (NSArray *)calendarView:(CKCalendarView *)calendarView eventsForDate:(NSDate *)date
{
    return [self data][date];
}
Run Code Online (Sandbox Code Playgroud)

NSArray当全局数据为a NSMutableDictionary且本地日期为NSDate?时,上述函数如何返回?

什么[self data][date]意思?

Tom*_*mmy 7

如果data是,NSDictionary那么它意味着完全相同的东西[data objectForKey:date].几年前引入了这种语法- 理想情况下读取整个内容但是如果匆忙则跳转到"对象下标".