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

标哥,打印NSURLResponse对象,在httpInternal这个属性的时候会遇到问题 #4

Open
hongdong opened this issue May 26, 2016 · 3 comments

Comments

@hongdong
Copy link

标哥,打印NSURLResponse对象,在httpInternal这个属性的时候会遇到问题

@hongdong
Copy link
Author

// object
if ([typeEncoding rangeOfString:@"@"].location != NSNotFound) {
    if ([self respondsToSelector:NSSelectorFromString(propertyName)]) {
        value =  ((id (*)(id, SEL))objc_msgSend)((id)self, NSSelectorFromString(propertyName));
    }
} else if ([typeEncoding rangeOfString:@"*"].location != NSNotFound) {
    if ([self respondsToSelector:NSSelectorFromString(propertyName)]) {
        char *v = ((char * (*)(id, SEL))objc_msgSend)((id)self, NSSelectorFromString(propertyName));
        value = [NSString stringWithUTF8String:v];
    }
} 

这样加上去就不会报错、

@hongdong
Copy link
Author

hongdong commented Jul 4, 2016

为什么这个问题还没有解决呢

@CoderJackyHuang
Copy link
Owner

这几天度假中~会抽时间解决掉!

原始邮件
发件人:Abnernotifications@github.com
收件人:CoderJackyHuang/HYBUnicodeReadableHYBUnicodeReadable@noreply.github.com
发送时间:2016年7月4日(周一) 14:30
主题:Re: [CoderJackyHuang/HYBUnicodeReadable] 标哥,打印NSURLResponse对象,在httpInternal这个属性的时候会遇到问题 (#4)

为什么这个问题还没有解决呢

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

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