开发者

How i customize GPS and Camera setting in my application using objective-C in iphone?

I m the beginner in iphone software development. I want to make my own customize settings in iphone using objective-C in my own application. In setting UIView i want to perform to set ON/OFF mode of GPS and Camera using UISegment cont开发者_C百科roller/UISwitch.That means i only ON/OFF of GPS and camera setting. I was lot of searching on device setting command(GPS and Camera) using objective-C and now i get frustrate.


You access the GPS system using Core Location. But don't assume it's GPS, because (a) iPod touches and early iPhones don't have GPS, and (b) if the phone is inside a building it may not be able to get a GPS fix.

You turn Core Location on and off using CLLocationManager. Use the startUpdatingLocation and stopUpdatingLocation methods to turn it on and off.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜