TSLocateView is a city picker component. you can uses it to picker a city's name and coordinate. This component is part of the most popular social network in China, DouDouYou兜兜友 (http://ddy.me), which is available download at http://itunes.apple.com/us/app/dou-dou-you/id379405145?mt=8.
How to use
- import TSLocateView in your prefix file.
- uses the UIActionSheetDelegate to handler the event.
// create an locateView, likes the UIAlertView TSLocateView *locateView = [[TSLocateView alloc] initWithTitle:@"定位城市" delegate:self]; [locateView showInView:self.view];