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

关于isIPhoneX 函数 #19

Open
qiuyan81 opened this issue Jan 12, 2023 · 4 comments
Open

关于isIPhoneX 函数 #19

qiuyan81 opened this issue Jan 12, 2023 · 4 comments

Comments

@qiuyan81
Copy link

presentedViewControllerFrame.size = presentedViewContentSize;
if(self.pType == TLPopTypeActionSheet){
if([[self class] isIPhoneX]){/////这个函数已经过时了,应该使用安全区域去实现吧?
presentedViewControllerFrame.size.height += 34;
}

        presentedViewControllerFrame.origin.y = CGRectGetMaxY(containerViewBounds) - presentedViewControllerFrame.size.height;
    }else if(self.pType == TLPopTypeAlert || self.pType == TLPopTypeAlert2){
        // 垂直居中
        presentedViewControllerFrame.origin.y = (CGRectGetMaxY(containerViewBounds) - presentedViewContentSize.height) * 0.5;
    }
@LoongerTao
Copy link
Owner

LoongerTao commented Jan 12, 2023 via email

@LoongerTao
Copy link
Owner

感谢支持!我现在已经没做iOS了,项目也不会维护了。如果你需要使用的话,可以根据需求和实际情况进行调整。

@qiuyan81
Copy link
Author

感谢支持!我现在没有做iOS了,项目也不会维护了。如果你需要使用,可以根据需求和实际情况进行调整。

可惜了,大佬,我用你的组件好几年了...

@LoongerTao
Copy link
Owner

感谢🙏,我现在转产品了。工作特别忙,也没时间去关注iOS方面的迭代了。
你如果觉得好用,可以把它变成自己的项目,使用创造/维护的东西才是更有成就感!

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