A little while ago I wrote a simple utility that can be added to your iOS project that allows you to notify users that you are shutting down this app. It is available on github and free to use.
You can refer users to a different app if you like. You can also stage the rollout with a cancel button that allows users to keep using the app. Then you can set a switch to only allow download of the new app.