Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Dot Image / Year View #49

Open
bchessin opened this issue Apr 20, 2015 · 11 comments
Open

Custom Dot Image / Year View #49

bchessin opened this issue Apr 20, 2015 · 11 comments

Comments

@bchessin
Copy link

Hi,

I am interested in using this library for an upcoming calendar app I am making however I had two issues which I wanted to discuss. The first is if it would be possible to include a custom image for a specific day instead of a dot. For example if there was a birthday event that day, I could supply a picture of birthday gift box.

Also how difficult would it be to implement a yearly view which just shows every month with their respective days and when you tap the month it just cycles to the monthly view of the selected month?

Thanks!

@mozharovsky
Copy link
Member

Hello @Objective-Zero,

Thank you for being interested in using this software.

I think the feature you want to have is a very useful so I'll definitely include image background for AuxiliaryView in the upcoming release version. For now it uses CoreGraphics to draw itself.

It's not that difficult to create a Year View mode. It should be a subclass of ContentController and also CVCalendar must load your content view controller if you choose an appropriate mode.

If you want I can implement this feature after 1.1.0 release. Please let me know how long would you wait.

Regards,
Eugene

@bchessin
Copy link
Author

Awesome! I mean I am just starting to program the app now so a month or two should be fine!

@mozharovsky
Copy link
Member

Hello @Objective-Zero,

In this case I'll definitely implement a YearView mode for CVCalendar. So you'll be able to use it within your app. :]

If you have more awesome ideas you're welcome!

Regards,
Eugene

@nanoxd
Copy link

nanoxd commented Apr 23, 2015

@mozharovsky I'm also interested in having a custom dot. In my case, I'm going to use FontAwesome to use a UILabel. What would you recommend as the best approach to add a UILabel (that accepts multiple symbols) below a date?

@mozharovsky
Copy link
Member

Hello @nanoxd,

I'll add support for custom image views instead of GPU drawn shapes. All you will need to do is to extract an image from your label and return a reference to the image.

Regards,
Eugene

@nanoxd
Copy link

nanoxd commented Apr 23, 2015

That would be easy to do. Thanks! What I meant by my question in the best approach though is how can I help add a feature like this in? Would CVAuxilliary be the place for this?

@mozharovsky
Copy link
Member

You'll need to return your custom images through the delegate method. The rest stuff CVCalendar will handle automatically. :]

@mouhammedali
Copy link

were you able to add image instead of dot, if you have done this i hope you tell me how did you do it :D

@mozharovsky mozharovsky mentioned this issue Feb 2, 2016
23 tasks
@matteopiccioni
Copy link

Hello, thanks for this great Calendar.
I cannot see Year View...is implemented ?
Thanks

@elsesiy
Copy link
Member

elsesiy commented Sep 12, 2016

@matteopiccioni nope, only month and week view so far.

@matteopiccioni
Copy link

ok, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants