欢迎光临
我们一直在努力

仿淘宝城市选择

建站超值云服务器,限时71元/月

仿淘宝城市选择

项目介绍:

仿淘宝城市选择

主要代码:

[Objective-C] 查看源文件 复制代码

#import "ViewController.h"
#import "XKEditAddressVC.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"仿淘宝城市选择";
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)chooseCity:(id)sender {
    XKEditAddressVC *vc = [XKEditAddressVC new];
    
    __block UIButton *btn = (UIButton *)sender;
    [vc setCompletionBlock:^(int i , id value)  {
        [btn setTitle:value forState:UIControlStateNormal];
    }];
    [self.navigationController pushViewController:vc animated:YES];
}

@end



CityChooseDemo.zip
(146.26 KB, 下载次数: 575)

2016-9-6 14:33 上传
点击文件名下载附件

城市选择

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 仿淘宝城市选择
分享到: 更多 (0)