What is the different between,
(CFDataRef) data
&
(__bridge CFDataRef) data
Xcode asked me to change it to bridge. Is that because of ARC?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, ARC needs to be given instructions when you cast between toll-free bridged types. In this case
__bridgetells ARC to do nothing, so this will behave the same as the previous standard cast.You can read the Transitioning to ARC Release Notes for more details on the different ways to do bridging casts.