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

FSCalendarDelegateAppearance placeholder color #180

Closed
jkdntc opened this issue Dec 31, 2015 · 7 comments
Closed

FSCalendarDelegateAppearance placeholder color #180

jkdntc opened this issue Dec 31, 2015 · 7 comments

Comments

@jkdntc
Copy link

jkdntc commented Dec 31, 2015

FSCalendarDelegateAppearance
optional public func calendar(calendar: FSCalendar!, appearance: FSCalendarAppearance!, titleDefaultColorForDate date: NSDate!) -> UIColor!

titlePlaceholderColor titleDefaultColor conflict

实现此协议后placeholder的颜色与日期的颜色如何区分开呢?

@WenchaoD
Copy link
Owner

WenchaoD commented Feb 3, 2016

我考虑下这个,谢谢。

@WenchaoD
Copy link
Owner

如果把placeholder的颜色自动设置一个alpha如何

@jkdntc
Copy link
Author

jkdntc commented Apr 22, 2016

最好能开放api修改这个数值,可以设置成完全透明达到不显示的效果

@WenchaoD
Copy link
Owner

现在可以不显示 readme的下方有说明 需要动态换高度

@coolcool1994
Copy link

FSCalendarDelegateAppearance
optional public func calendar(calendar: FSCalendar!, appearance: FSCalendarAppearance!, titleDefaultColorForDate date: NSDate!) -> UIColor!

conflicts with default titlePlaceholderColor. How would I know that the date in this delegate function is a placeholder? I dont understand Chinese..

@coolcool1994
Copy link

I tried - (void)reloadDataForCell:(FSCalendarCell *)cell atIndexPath:(NSIndexPath *)indexPath

if (cell.placeholder) {
cell.selected &= _pagingEnabled;
cell.dateIsToday &= _pagingEnabled;
cell.alpha = 0.5;
} else {
cell.alpha = 1.0;
}

But this doesn't work when the calendar loads for the first time. PlaceHolders still have alpha of 1.0 until you scroll left and right

@coolcool1994
Copy link

I had do something really ugly to get this to work, but hopefully there is a more graceful solution.

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

4 participants
@jkdntc @WenchaoD @coolcool1994 and others