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

Unknown class FSCalendar in Interface Builder file. #266

Closed
kcockrel opened this issue Apr 14, 2016 · 14 comments
Closed

Unknown class FSCalendar in Interface Builder file. #266

kcockrel opened this issue Apr 14, 2016 · 14 comments

Comments

@kcockrel
Copy link

I've been trying to manually install FSCalendar but I've been consistently getting this error when I run the code.

Unknown class FSCalendar in Interface Builder file.
I'm not sure why it cannot find the FSCalendar class.
screen shot 2016-04-13 at 11 09 21 pm

@cyrilzakka
Copy link

Maybe you forgot to import it inside your bridging header?

@WenchaoD
Copy link
Owner

@kcockrel I see your FSCalendar group is blue. There should be some problems when you drag FSCalendar folder to your project. There are some options you should take care in the picture below.
image

@kcockrel
Copy link
Author

kcockrel commented Apr 14, 2016

That was it! Thank you so much! I just have one more quick question. (And I apologize if this is not the place to ask!) Is it possible to style the calendar so that each event day has a circle around it?

Like this:
screen shot 2016-04-14 at 1 16 52 pm

@WenchaoD
Update: I was able to use borderDefaultColor property to do something like this but is there a default fill property?

screen shot 2016-04-14 at 2 01 59 pm

@kcockrel
Copy link
Author

I'm using Swift, so would calling these functions look something like:
calendar.appearance.fillDefaultColorForDate = UI.lightGrayColor()

@WenchaoD
Copy link
Owner

For swift

    func calendar(calendar: FSCalendar, appearance: FSCalendarAppearance, fillDefaultColorForDate date: NSDate) -> UIColor? {
        return ...
    }

@kcockrel
Copy link
Author

Would this method be in the ViewController?

@WenchaoD
Copy link
Owner

Yes, the view controller should implement FSCalendarDelegateAppearance protocol.

@kcockrel
Copy link
Author

kcockrel commented Apr 15, 2016

Thanks! I've got something like this but it doesn't seem to be working:
screen shot 2016-04-14 at 10 12 42 pm

@WenchaoD
Copy link
Owner

calendar.delegate = self;

@kcockrel
Copy link
Author

I can't believe I forgot that. ;A; Thank you so much! You've been a great help and I love this repo!

@WenchaoD
Copy link
Owner

Glad to know!
Good luck😄

@kcockrel
Copy link
Author

is it possible to set an image as the background for unselected cells?

@WenchaoD
Copy link
Owner

Not yet. Will support it soon.

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

3 participants