ios - select week in FScalender in objective c -
i trying select complete week in fscalendarscopemonth
had used fscalender : https://github.com/wenchaod/fscalendar/blob/master/moreusage.md
#pragma mark fscalendar - didselectdate -(void)calendar:(fscalendar *)calendar didselectdate:(nsdate *)date { if(![date isequal:selecteddate]){ (int =0; i<[weekarray count]; i++) { [objcal deselectdate:[weekarray objectatindex:i]]; } weekarray = [self daysthisweek:date]; markdate = date; selecteddate = [weekarray objectatindex:0]; (int =0; i<[weekarray count]; i++) { [objcal selectdate:[weekarray objectatindex:i]]; } nslog(@"monday date week selected ==> %@",[weekarray objectatindex:1]); } }
Comments
Post a Comment