I have been using Data Transfer Objects in Jave, like
public class AccountDEM
{
private String userName;
private String userAuthToken;
private int user_Id;
public void setuserName(String _userName)
{
this.userName=_userName;
}
public string getuserName()
{
return userName;
}
...
}
How can i use the same in Objective C.Probably “Properties of Objective C” will serve the purpose i think. But can some one explain it in detail, how to use the property of Objective C to write DTO’s and using them effectively and to keep it memory safe(avoiding memory leaks).
If possible , please try converting the above code to Obj C.
For properties you can read http://objective-c-properties.blogspot.in/