Question

i am attaching tapku calendar image below!

I tried with below code.But the image is not setted.

TKCalendarMonthView *calendar = [[TKCalendarMonthView alloc] init];

calendar.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"fishimage.png"]];

"Thanks in Advance"

Was it helpful?

Solution

NO It is not possible to change whole image of Tapku calendar because it is collection of (may be) button/view which contain dates number. But you can change image of change month Arrow by following method of UIImage+TKCategory.m class

+ (UIImage*) imageNamedTK:(NSString*)str{

    CGFloat s = 1.0f;
    if([[UIScreen mainScreen] respondsToSelector:@selector(scale)]){
        s = [[UIScreen mainScreen] scale];
    }

    //NSString *path = [NSString stringWithFormat:@"%@%@.png",str,s > 1 ? @"@2x":@""];
    return [UIImage imageWithCGImage:[[UIImage imageNamed:@"img.jpg"]CGImage] scale:s orientation:UIImageOrientationUp]; // put here specific image name for display !

}

OTHER TIPS

No Need to change any coding just replace image

goto TapkuLibrary.bundle --> Images --> calendar AND Rplace your image with "Month Calendar Date Tile.png"

OR

Change code in TKCalendarMonthView.m

tileImage = [UIImage imageNamed:@"fishimage.png"];

with

tileImage = [UIImage imageWithContentsOfFile:TKBUNDLE(@"calendar/Month Calendar Date Tile.png")];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top