开发者

What does the -> mean in objective C

Can Anyone explain what this means:

oauth->url = [[NSURL alloc] initWithSc开发者_开发问答heme:@"https" host:host path:unencodedPath];

It is variable assignment but why does it use '->' is this something to do with it being a Class method?


It references the instance variable url of the oauth instance. It is pure C syntax.


Same thing it means in C/C++. Objective C objects don't use -> but C/C++ classes do.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜