tapkulibrary
tapkulibrary copied to clipboard
Request: Day Calendar View for iPad
Would it be possible to optimize the day calendar view to work on the iPad's larger screen size?
Thanks!
For iPad weekday selection was not resizing , so make these changes as replace line and comment the necessary one:
-
_stepupView method
CGFloat wid = CGRectGetWidth([UIScreen mainScreen].bounds);
//wid -= 8; //comment it NSInteger per = wid - (DAY_LABEL_WIDTH *7); -
In monthYearLabel method
_monthYearLabel = [[UILabel alloc] initWithFrame:CGRectInset(CGRectMake(0, TOP_BAR_HEIGHT - 24 - 6, CGRectGetWidth([UIScreen mainScreen].bounds), 24), 40, 0)]; //_monthYearLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth; //comment it
-
In daysBackgroundView method
_daysBackgroundView = [[UIView alloc] initWithFrame:CGRectMake(0, 0,CGRectGetWidth([UIScreen mainScreen].bounds), TOP_BAR_HEIGHT)];
-
In daysScrollView method
_daysScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth([UIScreen mainScreen].bounds), CGRectGetMinY(self.monthYearLabel.frame))];