You can't invoke the passcode screen of the general settings, but you can implement your own passcode screen with components like that :
Passcode open-source components
So you can add in your app settings a UISwich to enable the feature, and prompt the passcode screen to add a new code, and when you have a protected section, tell the passcode with the component.