我正在創建一個我已經爲Android for iOS創建的應用程序。我在Android應用程序中有一個用戶類,但我不確定如何爲iOS執行此操作。 Android中的課程如下:iOS開發中的獲取/設置類
public class User {
protected int score;
public User() {
score = 0;
}
public long getScore() {
return score;
}
public User getScore(int score) {
this.score = score;
return this;
}
public int changeScore(int deltaScore) {
this.score += deltaScore;
return this.score;
}
}
我想你應該開始閱讀一本關於目標C掌握基本知識......只是我的愚見。 – fortran