Objective-C pointers?

前端 未结 7 1665
无人及你
无人及你 2020-12-29 10:49

I am new to coding and trying to get up to speed with Objective-C. Came across some code I did not understand. I was hoping someone could clarify it for me. In the case belo

7条回答
  •  别那么骄傲
    2020-12-29 11:07

    Wow, Thank you all for the great responses!

    I guess what I am really meant is a reference to an object and not a pointer. Nonetheless I guessing the appended , *foo2 resides in the same memory as foo. Also foo2 is released form memory at the same time as foo. I still have a lot more to lean but one day at a time!

提交回复
热议问题