C pointers vs. Objective-C pointers

前端 未结 7 1556
醉酒成梦
醉酒成梦 2021-02-06 05:37

I\'m coming from an Objective-C background and am trying to expand my knowledge in C. One thing has me confused, however, and that\'s the difference between pointers in C and O

7条回答
  •  悲&欢浪女
    2021-02-06 05:55

    &string has type NSString **, whereas stringPointer has type NSString *, thus the warning. Then you try to assign an instance of NSString (with type NSString *) to a variable of type NSString, thus the error.

提交回复
热议问题