I’m using the standard implementation of the TKCalendar for iOS and because there isn’t much documentation on it I was wondering if anyone knows of a simply way of setting a custom image for a day of the month.
Any help is greatly appreciated!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, that’s all of your answers are wrong. What I wanted was the ability to change each day’s image to a custom image that I would choose for every day.
I hacked the code together and got it to work . If anyone is looking for how to do this, just got go to TKCalendarMonthView.m and find the
method. Now in this method, copy in the following (this is a simplified version of the code that I have so you have to build it up yourself):
Notice that it’s spilt into three main areas (each with a for loop). These are (in order) the blocks from the previous month that are still visible, the blocks from the current month and lastly the blocks from the coming month that are visible in the current view.
I really hope this helps someone because it took be a lot of headache to set up!
Cheers!