我收到不兼容的指针类型将 UIFont 发送到 NSDictonary 类型的参数,这让我得到一个信号 SIGABRT,我不知道这意味着什么,这是我的代码,我得到了错误......
- (void)drawDayNumber {
if (self.selectionState == DSLCalendarDayViewNotSelected) {
[[UIColor colorWithWhite:66.0/255.0 alpha:1.0] set];
}
else {
[[UIColor whiteColor] set];
}
UIFont *textFont = [UIFont boldSystemFontOfSize:17.0];
CGSize textSize = [_labelText sizeWithAttributes:textFont];//Im getting it here.
CGRect textRect = CGRectMake(ceilf(CGRectGetMidX(self.bounds) - (textSize.width /2.0)), ceilf(CGRectGetMidY(self.bounds) - (textSize.height / 2.0)), textSize.width, textSize.height);
[_labelText drawInRect:textRect withAttributes:textFont];//And here.
}