iPhone game keep progress after app update

First a technical question. When someone updates a iPhone app, does it replace the whole application file. Or just the part of the app that have changed since the last version?

Second, how can store certain variables so i can save game progress after someone updates my unity iPhone game to a newer version?

It replaces the whole app. Use PlayerPrefs to save game progress (prefs are not wiped with updates).