Vurig-Calendar icon indicating copy to clipboard operation
Vurig-Calendar copied to clipboard

Is possible to insert an image?

Open ghost opened this issue 12 years ago • 4 comments

Hi, first of all, thanks for this amazing calendar. I would like to ask you, if is possible to insert an image inside of a day cell?

Thanks in advance!

ghost avatar Jul 17 '12 11:07 ghost

You're welcome.

Nope sorry, then it would be called complex calendar ;) But you can add it yourself if you look at the drawrect method.

tjeerdintveen avatar Jul 17 '12 11:07 tjeerdintveen

I did it, thank you!

ghost avatar Jul 18 '12 08:07 ghost

Hi acaserop,

How is you did this? Would be interest to know

thanks

ghost avatar Jul 22 '12 09:07 ghost

Hi, just play with this lines of code inside of drawRect method:

UIImage * yourImage = [UIImage imagedNamed:xxx.png]; [yourImage drawInRect: rectangleGrid]

RectangleGrid is already defined.

I hope this help you

ghost avatar Jul 27 '12 11:07 ghost

thx - very helpful

ghost avatar Jul 30 '12 09:07 ghost

Hi,

would you be able to elaborate more, i've tried adding an image but it just puts it in front of the whole calendar.

BlackMarq20 avatar Sep 24 '12 02:09 BlackMarq20

hello, i am new in ios development and i want to ask if possible to use the built in iphone calendar insted of using this??? and if not please explain to me more about how to use this calendar? i tried to copy files but i think i but them in wrong place or even i choose wrong files to add,, help please

newDim avatar Jul 29 '13 10:07 newDim

UIImage * yourImage = [UIImage imageNamed:@"LBracket.png"]; [yourImage drawInRect:CGRectMake(targetX-9, targetY+1, 20, kVRGCalendarViewDayHeight)];

holster21 avatar Sep 17 '14 18:09 holster21