zoukankan      html  css  js  c++  java
  • iOS开发之地域选择

        代码地址:

    https://github.com/boundlessocean/AreaPickViewDome.git

        

        效果:

     

     

    第一步: 将BLAreaPickerView

    导入工程

     

     
     

    第二步: 设置代理

    @interface LHQNewAddCustomersCtrl ()<BLPickerViewDelegate>

     

     

    第三步: 在需要显示控件的地方初始化

     

    - (void)dataBtnClicked1{

        _pickView = [[BLAreaPickerView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 150)];

        _pickView.pickViewDelegate = self;

        [_pickView bl_show];

    }

     

     

    第四步: 实现代理方法,给按钮赋值

     

     

    #pragma mark - - BLPickerViewDelegate

    - (void)bl_selectedAreaResultWithProvince:(NSString *)provinceTitle city:(NSString *)cityTitle area:(NSString *)areaTitle{

    //    NSLog(@"%@,%@,%@",provinceTitle,cityTitle,areaTitle);

        NSString *areaStr = [NSString stringWithFormat:@"%@%@%@",provinceTitle,cityTitle,areaTitle];

        _areaStr = areaStr;

        [_dataBtn1 setTitle:_areaStr forState:UIControlStateNormal];

    }

     

     

     

     

     

                  李洪强

     

            2017年6月14日于北京

     

     

     

     
  • 相关阅读:
    python虚拟环境使用
    虚拟化网络进阶管理
    虚拟化进阶管理
    KVM虚拟化
    Xen虚拟化
    Virtualization基础
    Virnish使用
    CentOS配置FTP服务器
    Ajax结合Json进行交互数据(四)
    将 数据库中的结果集转换为json格式(三)
  • 原文地址:https://www.cnblogs.com/LiLihongqiang/p/7009635.html
Copyright © 2011-2022 走看看