I have submitted three in-house apps to app store with the username and password requirement to access the app. But it was rejected the second time. I followed the solutions offered here in the following posts,
Alternative solutions for in-house iPhone enterprise app distribution
iPad in-house App distribution through App Store
I used an alertview to ask for username and password. Username and password are saved in keychain. My applications are single window applications that doesn't require internet connection. How can I submit my app to the app store? Some suggest implementing php username and login for the app. How can I accomplish that? Can anyone give an explanation ?
Reason I have got from Apple:
We found that your app is an in-house application, intended for employees or members of your organization. As such, it is not appropriate for the App Store.
For information on distributing proprietary, in-house applications, please refer to the iOS Developer Enterprise Program.
If you cannot - or choose not to - revise your app to be in compliance with the App Store Review Guidelines, you may wish to build an HTML5 web app instead. You can distribute web apps directly on your web site; the App Store does not accept or distribute web apps.
HTML5 is the major new version of HTML and enables audio and video to play natively in the browser without requiring proprietary plug-ins. Using HTML5, web apps can look and behave like native iPhone and iPad apps, and using HTML5's Offline Application Cache, a web app can work even when the device is offline. With web apps, you have flexibility to deliver as much or as little functionality as you desire.
To get started with iPhone or iPad web apps, please review Getting Started with iPhone Web Apps.
For a description of the HTML elements and attributes you can use in Safari on iPhone, check out Safari HTML Reference: Introduction.