iphone PlayerPrefs

hi im making a game for the iphone and i have a problem saving the game when the application is closed.
i use a gameObject at the first scene that doesnt destroy on load so it goes through all the scenes.
Heres my script i dont know what im doing wrong here!!
(im trying with just 1 static var to test it)

“money.moneyT” is the static var that i want to save
and retrieve when starting the game again.

function Awake(){

DontDestroyOnLoad(this);

}

function Saving(){

PlayerPrefs.SetInt(“money”, money.moneyT);

}

function Loading(){

PlayerPrefs.GetInt(“money”);

}

function Start(){

Loading();

}

function OnApplicationQuit(){

Saving();

}

I tried using PlayerPrefs before on the iPhone, but nothing would ever save. I found this by PreviewLabs, and haven’t had a problem since. Might help you?

i did and still nothing :frowning:
whats is wrong i cant figured it out

function Saving(){

PlayerPrefs.SetInt("money", money.moneyT);

PlayerPrefs.Save();

}

OnApplicationQuit on IOS not be called