Is there a way to disable/enable location services on iPhone simulator through objective c code?

I have read other questions already, but they mostly seem to talk about core location services. Is there something to handle this? (I also would not mind using undocumented API if any exist)
No, your code can not enable or disable the users Location Services. Nor should it be able to. You don’t want Apps with the ability to make that decision for the user.