Fscalendar: Removing border from calendar

Created on 28 Apr 2017  路  12Comments  路  Source: WenchaoD/FSCalendar

I would like to remove the border from FSCalendar in order obtain a result similar to this.
At the moment it looks like this:
screen shot 2017-04-28 at 11 12 48
Which parameter should I modify?

Most helpful comment

Reading again the docs I found the official way to get rid of those top/bottom borders.

All 12 comments

Hi, let me see your code.
Because I don't have that border by default.

Or maybe set calendar.pagingEnabled to YES

Same issue for me:
greyline

calendar.pagingEnabled doesn't work.

No code, I did everything in IB:

ib

Thanks for your help

You need to modify the source code in FSCalendar.m @squall2022
1
2

Thanks @Seanwong933 it works !

it works, thanks a lot.

I have just noticed that removing the bottom border will make the handle disappear:
screen shot 2017-05-03 at 17 42 10
any way to avoid it?

Instead of removing the views I change the color externally. In some header:

#define ASK_GETTER(OBJECT, GETTER, DEF) \
    _Pragma("clang diagnostic push") \
    _Pragma("clang diagnostic ignored \"-Wundeclared-selector\"") \
    ((![OBJECT respondsToSelector:@selector(GETTER)]) ? (DEF) :     \
        ([OBJECT performSelector:@selector(GETTER)])) \
    _Pragma("clang diagnostic pop")

Then loading the controller:

    UIView* border = ASK_GETTER(self.calendar, topBorder, nil);
    border.backgroundColor = [UIColor clearColor];
    border = ASK_GETTER(self.calendar, bottomBorder, nil);
    border.backgroundColor = [UIColor clearColor];

Reading again the docs I found the official way to get rid of those top/bottom borders.

calendar.clipsToBounds = YES

Where do you declare calendar.clipsToBounds = true?

Thanks @Seanwong933

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iHamzaaK picture iHamzaaK  路  5Comments

garudaonekh picture garudaonekh  路  4Comments

IpyCreator picture IpyCreator  路  5Comments

csimmons0 picture csimmons0  路  4Comments

kunass2 picture kunass2  路  4Comments