It's best to think of iOS apps exactly as they are, a service. When you buy/download an app, it's not your own, you're using a service in the form of an app.
The app will continue to work as long as it's supported by its developer and Apple doesn't forcibly remove it. If the developer no longer supports it, it's just a matter of time before it'll stop working.