我使用 NSCalenderController
实现了一个日历控件。现在我试图在选择特定日期时获取日期单元格的位置。如何在用户选择日期时获取日期单元格的位置?
最佳答案
for(int i=0;i<6;i++)
{
for(int j=0;j<7;j++)
{
int buttonNumber = i*7 + j;
DayButton *button = [dayButtons objectAtIndex:buttonNumber];
NSLog(@"the position of the date cells are========> %d",buttonNumber);
buttonNumber 将显示该日历的日期单元格的位置。
关于ios - 选择日期时如何获取日期单元格的位置,ios,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11077946/