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

centerForDate #512

Closed
HungryFour opened this issue Dec 11, 2016 · 1 comment
Closed

centerForDate #512

HungryFour opened this issue Dec 11, 2016 · 1 comment

Comments

@HungryFour
Copy link

您好~ 最新的版本中,这个centerForDate 方法已经被替换了吗?

@WenchaoD
Copy link
Owner

你好,建议使用-cellForDate:atMonthPosition:获取到当前的cell,然后使用UIView的方法

- (CGRect)convertRect:(CGRect)rect toView:(nullable UIView *)view;
- (CGRect)convertRect:(CGRect)rect fromView:(nullable UIView *)view;

获取当前cell的frame.

如果寻找简便方法,可以使用-frameForDate:

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