Can I turn on the hotspot in objective-c in IOS 7?
You cannot enable such System settings via any app (at least without a jailbreak).
Objective-c results in an app for an iOS-device, thus you cannot achieve this.
Apple does not allow any app which tries to enter the App Store to activate:

WiFi
Location services
Personal hotspot
Many more features not named above