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

Is it possible to get calendar cell size ? #368

Closed
Amefuri opened this issue Jul 15, 2016 · 1 comment
Closed

Is it possible to get calendar cell size ? #368

Amefuri opened this issue Jul 15, 2016 · 1 comment

Comments

@Amefuri
Copy link

Amefuri commented Jul 15, 2016

Hi,

I try to add event image using delegate here

func calendar(calendar: FSCalendar, imageForDate date: NSDate) -> UIImage? { return UIImage(named: "image.png") }

but it seem that my UIImage is too large for each cell and collapse with another cell.
My guess is that I have to resize the UIImage to match cell size. but I wonder how can I get the actual cell size from calendar ?

Thank you,

@WenchaoD
Copy link
Owner

WenchaoD commented Aug 6, 2016

[calendar frameForDate:date];

@WenchaoD WenchaoD closed this as completed Aug 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants