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

使用Swift 使用的话 如何 避免 被 @available 检查? #2

Open
yushuyi opened this issue Oct 9, 2015 · 6 comments
Open

使用Swift 使用的话 如何 避免 被 @available 检查? #2

yushuyi opened this issue Oct 9, 2015 · 6 comments

Comments

@yushuyi
Copy link

yushuyi commented Oct 9, 2015

有屏蔽掉 @available 办法吗 否则没办法在低版本执行相关代码

@onevcat
Copy link

onevcat commented Oct 10, 2015

-disable-availability-checking

@yushuyi
Copy link
Author

yushuyi commented Oct 13, 2015

@onevcat how to use?

@onevcat
Copy link

onevcat commented Oct 13, 2015

Swift Compiler - Custom Flags 里加上
-Xfrontend -disable-availability-checking

@calt
Copy link

calt commented Oct 13, 2015

Did you manage to get it to working with Swift?

I did set the -Xfrontend -disable-availability-checking compiler flag and the code builds.

However, when I run it, I get an EXC_BAD_ACCESS error when I use it on iOS 8.4 :

let stackView = UIStackView()

@hhgz9527
Copy link

@onevcat cool!

@MichaelPei
Copy link

@calt I met same issue, and I had to use a View to wrap the stack view written in Objective-C to work around, pretty ugly.
Have you solved this issue?

@Alex293 Alex293 mentioned this issue Dec 16, 2016
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

5 participants