How can I check if the user has the current version of my app and also pop up a message to request them to update their app version?
Something like what you would see below.

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to have a WebService on your server (or something similar) that your app requests at startup, to know which is the latest version available. (If you don’t have a WS yet and really don’t want to implement one for that, you may also simply use an XML or text file that contains the version too)
Then compare this version retrieved from your server with the current version of the application, using
[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"].If they are different, you can display the alertview and redirect to
itms-apps://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=[APPID]&mt=8(replacingAPPIDwith your iTunes Connect App ID), which is the link that will make your iPhone open the AppStore application directly on your application’s update page