Apple interview question

How does memory management work in iOS?