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

disable tap gesture on placeholder #357

Closed
pvni opened this issue Jul 6, 2016 · 10 comments
Closed

disable tap gesture on placeholder #357

pvni opened this issue Jul 6, 2016 · 10 comments

Comments

@pvni
Copy link

pvni commented Jul 6, 2016

Is it possible to disable the tap gesture on placeholder and previous dates?

@WenchaoD
Copy link
Owner

WenchaoD commented Jul 8, 2016

Not yet @pvni .

@pvni
Copy link
Author

pvni commented Jul 8, 2016

Thanks for reply.

Thank you

On Fri, Jul 8, 2016 at 4:31 PM, Wenchao Ding notifications@github.com
wrote:

Not yet @pvni https://github.com/pvni .


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#357 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ADMajfmKwVQ0cJBx7qCOG-yz9RXXiq9Iks5qTi38gaJpZM4JF-U_
.

Thanks,Pavani A

@WenchaoD
Copy link
Owner

WenchaoD commented Jul 9, 2016

Hi @pvni Try this

- (BOOL)calendar:(FSCalendar *)calendar shouldSelectDate:(NSDate *)date
{
    return [calendar isDate:date equalToDate:calendar.currentPage toCalendarUnit:FSCalendarUnitMonth];
}

@pvni
Copy link
Author

pvni commented Jul 11, 2016

Thanks for reply,
above solution is working for previous dates.But when i select the
placeholder after 31st of this month are selecting.

On Sat, Jul 9, 2016 at 2:19 PM, Wenchao Ding notifications@github.com
wrote:

Hi @pvni https://github.com/pvni Try this

  • (BOOL)calendar:(FSCalendar *)calendar shouldSelectDate:(NSDate *)date
    {
    return [calendar isDate:date equalToDate:calendar.currentPage toCalendarUnit:FSCalendarUnitMonth];
    }


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#357 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ADMajags0L1zw_kK83jK-4gwD4S5fC7rks5qT2CCgaJpZM4JF-U_
.

Thanks,Pavani A

@pvni
Copy link
Author

pvni commented Jul 14, 2016

But when i select the placeholder after 31st of this month are selecting
its not working.

On Thu, Jul 14, 2016 at 3:50 PM, Wenchao Ding notifications@github.com
wrote:

Closed #357 #357.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#357 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/ADMajVLhw60KoWLL69xfrxLN7fXNCqqSks5qVg1bgaJpZM4JF-U_
.

Thanks,Pavani A

@WenchaoD
Copy link
Owner

Can u share a demo to reproduce, coz it's working for me.

@pvni
Copy link
Author

pvni commented Jul 15, 2016

HI,

when i select some dates and came back to another view.And when i go to
calendar those dates which are selected previously need to selectable .How
can i achieve this

On Thu, Jul 14, 2016 at 5:50 PM, Wenchao Ding notifications@github.com
wrote:

Can u share a demo to reproduce, coz it's working for me.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#357 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ADMajePmcS4y03ow0fYJb71AfVWdE0X7ks5qVil3gaJpZM4JF-U_
.

Thanks,Pavani A

@pvni
Copy link
Author

pvni commented Jul 18, 2016

Implemented this functionality.Thanks for support..

On Fri, Jul 15, 2016 at 1:17 PM, pavani annamaneni an.pavanirao@gmail.com
wrote:

HI,

when i select some dates and came back to another view.And when i go to
calendar those dates which are selected previously need to selectable .How
can i achieve this

On Thu, Jul 14, 2016 at 5:50 PM, Wenchao Ding notifications@github.com
wrote:

Can u share a demo to reproduce, coz it's working for me.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#357 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ADMajePmcS4y03ow0fYJb71AfVWdE0X7ks5qVil3gaJpZM4JF-U_
.

Thanks,Pavani A

Thanks,Pavani A

@ArtemBurdak
Copy link

Hi @pvni Try this

- (BOOL)calendar:(FSCalendar *)calendar shouldSelectDate:(NSDate *)date
{
    return [calendar isDate:date equalToDate:calendar.currentPage toCalendarUnit:FSCalendarUnitMonth];
}

Hey! I'm also trying to figure out how to disable selection of placeholder dates, but I don't quite understand how to use this function you mentioned. Could you please write it in Swift?

@AppinessVashum
Copy link

for Swift

func calendar(_ calendar: FSCalendar, shouldSelect date: Date, at monthPosition: FSCalendarMonthPosition) -> Bool {
Calendar.current.isDate(date, equalTo: calendar.currentPage, toGranularity: .month)
}

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

4 participants