Latest 1.1.1
Homepage https://github.com/liying9213/NTLocationSelectView
License MIT
Platforms ios 8.0, requires ARC
Dependencies FMDB, Masonry
Frameworks UIKit
Authors

NTLocationSelectView

Describe

收货地址选择器(京东)

Installation

CocoaPods

pod 'NTLocationSelect'

Then, run the following command:

$ pod install

Usage

NTChooseLocationView * locationView = [[NTChooseLocationView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    __weak typeof (self) weakSelf = self;
    locationView.showAnimate = ^(){
        [UIView animateWithDuration:0.25 animations:^{
            weakSelf.view.transform =CGAffineTransformMakeScale(0.95, 0.95);
        }];
    };
    locationView.hiddenAnimate = ^(){
        [UIView animateWithDuration:0.2 animations:^{
            weakSelf.view.transform =CGAffineTransformMakeScale(1, 1);
        }];
    };
    [locationView showLocationViewWithData:nil WithBlock:^(NSString *location, NSString *locationCode) {
//        location 选择的地址
//        locationCode 地址所对应的ID(1;1;1)分别对应(省;市;区;镇)
    }];
    [[[UIApplication sharedApplication] windows][0] addSubview:locationView];

Latest podspec

{
    "name": "NTLocationSelect",
    "version": "1.1.1",
    "summary": "NTLocationSelect is a shipping address selector.",
    "homepage": "https://github.com/liying9213/NTLocationSelectView",
    "license": "MIT",
    "authors": {
        "liying": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/liying9213/NTLocationSelectView.git",
        "tag": "1.1.1"
    },
    "source_files": "NTLocationSelectView/locationSelectView/**/*.{h,m}",
    "resources": "NTLocationSelectView/locationSelectView/**/NTLocation.bundle",
    "frameworks": "UIKit",
    "libraries": "sqlite3",
    "dependencies": {
        "FMDB": [],
        "Masonry": []
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This