0
我已經使用KALViewcontroller API在我的iPhone應用程序中顯示日曆。我想保存上次選擇的日期,並在日曆再次出現時將其顯示爲「突出顯示」。 當前顯示今天的日期。iPhone sdk-保存上次在KALViewController中選擇的日期
在KALViewController.m功能- (無效)showAndSelectToday負責顯示當天的日期,並強調今天的瓷磚。
[[self calendarView] selectTodayIfVisible];
//where *calendarView* is
- (KalView*)calendarView
{
checkDateConf = TRUE;
checkDate = FALSE;
return (KalView*)self.view;
}
在KalView.m
[gridView selectTodayIfVisible];
//其中GRIDVIEW是KalGridView GRIDVIEW;
在KALGridView.m
selectTodayIfVisible聲明
- (void)selectTodayIfVisible
{
KalTileView *todayTile = [frontMonthView todaysTileIfVisible];
if (todayTile)
self.selectedTile = todayTile;
}
請指導我如何將突出選定的日期。