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

在Today Extension中无法使用,应为Today Extension中没有UIApplication对象 #81

Closed
tanranran opened this issue Sep 20, 2018 · 6 comments

Comments

@tanranran
Copy link

如题

@youngsoft
Copy link
Owner

这个和UIApplication对象没有关系吧。

@tanranran
Copy link
Author

@youngsoft
MyViewSizeClass 里面的myLayoutTopPadding 方法里面用到了[UIApplication sharedApplication].statusBarFrame

而Today Extension里面是用不了UIApplication sharedApplication的

@youngsoft
Copy link
Owner

好的,知道原因了,我最近正在准备升级一个版本为了支持iPhoneX 系列的新设备以及iOS12和XCODE10。就这两天会出一个新的版本,请稍候。。。

@tanranran
Copy link
Author

@youngsoft 谢谢大佬,我可能是第一个用MyLinearLayout写Today Extension O(∩_∩)O

@youngsoft
Copy link
Owner

@tanranran 新版本已经可以支持Application Extension的能力了,请更新到1.6.1

@tanranran
Copy link
Author

@youngsoft 谢谢大佬,1.6.1已经可以完美使用

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