0
我有一个Java类,我使用add方法返回类对象。我正在尝试编写一个等效的Obj-C方法。我是否需要将客观C方法声明为void并更新方法内的类变量?返回java对象中的类对象Objective-C
public class TesCodeRequest{
private String apiKey;
private String apiSecret;
private String endpoint;
public TesCodeRequest(String apiKey, String apiSecret, String endpoint) {
//initialization done here
}
public TesCodeRequest add(String endpoint, Object... fields) {
//method
}
}
中的OBJ-C预计add方法
-(void)add:(NSString *)endPoint andObject:(NSArray *field{
//endpoint and other variables to be updated here.
}