Convert/cast CFReadStreamRef to NSInputStream (iOS5)

后端 未结 1 1028
无人共我
无人共我 2021-01-21 12:31

I am trying to port my app to iOS5. I am using a TCP connection to a server via CFSockets. My problem now is the conversion (cast) from CFReadStreamRef to NSInputStream (same wi

相关标签:
1条回答
  • 2021-01-21 13:17

    Managing Toll-Free Bridging states very clearly that you should use something like this:

    NSInputStream *iStream = objc_unretainedObject(readStream);
    
    0 讨论(0)
提交回复
热议问题