Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
545
Layout issue
posted

Hello,
as you can see in the images below icons appointments overlap with the cells of the grid.

portrait:


landscape:


code:

    calendar = [[IGCalendarView alloc] init];
    calendar.displayBackButton = NO;
    calendar.displayTitleBar = YES;
    calendar.theme = tema = [[OrdiniGiornalieriTema alloc] init];
    
    [calendar navigateToDate:[NSDate date] forType:IGCalendarViewDisplayTypeMonth];
    calendar.delegate = self;
    calendar.minYear = [data year] - 1;
    calendar.maxYear = [data year];
    [calendar setTranslatesAutoresizingMaskIntoConstraints:NO];
    [self.view addSubview:calendar];
    
    //Constraints
    NSDictionary *views = NSDictionaryOfVariableBindings(calendar);

    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[calendar]|" options:0 metrics:nil views:views]];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[calendar]|" options:0 metrics:nil views:views]];

Parents Reply Children