panyaorui / CityList

定位和选择城市

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

定位和选择城市

动画效果

image

##使用说明

1.引用CoreLocation类库用于定位服务

image

2.设置定位权限NSLocationWhenInUseUsageDescription(使用应用程序时允许定位)

image

3.直接跳转CityViewController即可

var cityViewController:CityViewController = CityViewController(nibName: "CityViewController", bundle: nil);
        self.presentViewController(cityViewController, animated: true) { () -> Void in
            
        }

About

定位和选择城市


Languages

Language:Objective-C 59.6%Language:Swift 40.1%Language:C++ 0.4%