We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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实现的UIViewController子类里,使用ivar_getTypeEncoding无法获取属性类型,返回是空字串"", 某些情况还会返回NULL导致crash, 看来在swift下要另外寻找方案了
The text was updated successfully, but these errors were encountered:
看起来是Xcode15才有这个问题,并且,可以确定 URL 类型的属性,会返回 NULL,其他属性返回空字符串。
Sorry, something went wrong.
if(ivar && ivar != NULL && ivar_getTypeEncoding(ivar)!= NULL){ ivarType = @(ivar_getTypeEncoding(ivar)); }else{ NSLog(@"swift ViewController ivar or ivar_getTypeEncoding(ivar) NULL"); }
No branches or pull requests
在用Swift实现的UIViewController子类里,使用ivar_getTypeEncoding无法获取属性类型,返回是空字串"", 某些情况还会返回NULL导致crash, 看来在swift下要另外寻找方案了
The text was updated successfully, but these errors were encountered: