Is there a function or constant defining the amount of available memory for an app in iPhone OS?

I'm looking for a device-independent way (iPod touch, iPhone, iPad) to know how much memory the app has left.

Edit
Report