Help with understanding C# code and porting to Objective-C

后端 未结 7 1363
心在旅途
心在旅途 2021-01-20 15:35

Ok, I have this prototype that was written by someone else in C# and I\'m trying to put it into Objective-C. Now, I haven\'t had any formal experience with C# yet, so I don\

7条回答
  •  终归单人心
    2021-01-20 16:00

    If I may, it is rather like the having both the following methods in an Objective-C class:

    • (id)init;
    • (id)initWithNumber:(NSNumber *)number;

    Constructors and initializers are analogues, they just look a little different.

提交回复
热议问题