ClientViewController.m 17.4 KB
Newer Older
曹云霄's avatar
曹云霄 committed
1 2 3 4 5 6 7 8 9
//
//  ClientViewController.m
//  Lighting
//
//  Created by 曹云霄 on 16/4/28.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "ClientViewController.h"
曹云霄's avatar
曹云霄 committed
10
#import "InformationTableViewCell.h"
曹云霄's avatar
曹云霄 committed
11
#import "ClientdetailsViewController.h"
勾芒's avatar
勾芒 committed
12 13
#import "MyclientEntityModel.h"

曹云霄's avatar
曹云霄 committed
14
@interface ClientViewController ()<UITableViewDelegate,UITableViewDataSource,UITextFieldDelegate>
曹云霄's avatar
曹云霄 committed
15

曹云霄's avatar
曹云霄 committed
16 17 18 19 20
/**
 *  客户数据源
 */
@property (nonatomic,strong) NSMutableArray *CustomerresultArray;

勾芒's avatar
勾芒 committed
21 22 23 24 25
/**
 *  当前页数
 */
@property (nonatomic,assign) int indexPage;

曹云霄's avatar
曹云霄 committed
26 27 28 29
@end

@implementation ClientViewController

曹云霄's avatar
曹云霄 committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43

/**
 *  初始化客户数据源
 */
- (NSMutableArray *)CustomerresultArray
{
    if (_CustomerresultArray == nil) {
        
        _CustomerresultArray = [NSMutableArray array];
    }
    return _CustomerresultArray;
}


曹云霄's avatar
曹云霄 committed
44 45 46
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
曹云霄's avatar
曹云霄 committed
47
    
曹云霄's avatar
曹云霄 committed
48
    [self uiConfigAction];
勾芒's avatar
勾芒 committed
49
    
曹云霄's avatar
曹云霄 committed
50 51
}

52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    
    // 禁用 iOS7 返回手势
    if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
        self.navigationController.interactivePopGestureRecognizer.enabled = NO;
    }
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    
    // 开启
    if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
        self.navigationController.interactivePopGestureRecognizer.enabled = YES;
    }
}


曹云霄's avatar
曹云霄 committed
74 75 76
#pragma mark -布局
- (void)uiConfigAction
{
曹云霄's avatar
曹云霄 committed
77 78 79 80 81 82 83 84 85 86 87 88 89
    //圆角
    self.customerNameBack.layer.masksToBounds = YES;
    self.customerNameBack.layer.cornerRadius = kCornerRadius;
    self.phoneNumberBack.layer.masksToBounds = YES;
    self.phoneNumberBack.layer.cornerRadius = kCornerRadius;
    self.companyNameBack.layer.masksToBounds = YES;
    self.companyNameBack.layer.cornerRadius = kCornerRadius;
    self.customerAddressBack.layer.masksToBounds = YES;
    self.customerAddressBack.layer.cornerRadius = kCornerRadius;
    self.addpersonInformationButton.layer.masksToBounds = YES;
    self.addpersonInformationButton.layer.cornerRadius = kCornerRadius;
    self.changePersonInformationButton.layer.masksToBounds = YES;
    self.changePersonInformationButton.layer.cornerRadius = kCornerRadius;
勾芒's avatar
勾芒 committed
90
    self.indexPage = 0;
曹云霄's avatar
曹云霄 committed
91 92 93 94
    //隐藏更改客户按钮
    self.changePersonInformationButton.hidden = YES;
    
    //代理
曹云霄's avatar
曹云霄 committed
95
    self.informationTableview.delegate = self;
曹云霄's avatar
曹云霄 committed
96
    self.informationTableview.dataSource = self;
勾芒's avatar
勾芒 committed
97
    self.informationTableview.tableFooterView = [UIView new];
曹云霄's avatar
曹云霄 committed
98
    self.searchPersonInformationField.delegate = self;
勾芒's avatar
勾芒 committed
99 100 101
    //监听键盘落下的通知
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(KeyboadrDismiss) name:UIKeyboardWillHideNotification object:nil];
    
勾芒's avatar
勾芒 committed
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
    
    //下拉刷新
    self.informationTableview.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
        
        ConsumerQueryCondition *condition = [[ConsumerQueryCondition alloc]init];
        DataPage *page = [[DataPage alloc]init];
        page.page = 0;
        condition.page = page;
        
        page.rows = 10;
        [self getShoppersAssociatedCustomer:condition isRemoveArray:YES];
        
    }];
    [self.informationTableview.mj_header beginRefreshing];
    //上拉加载
    self.informationTableview.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
        
        ConsumerQueryCondition *condition = [[ConsumerQueryCondition alloc]init];
        DataPage *page = [[DataPage alloc]init];
        page.page = self.indexPage ++;
        page.rows = 10;
        condition.page = page;
        [self getShoppersAssociatedCustomer:condition isRemoveArray:NO];
    }];
曹云霄's avatar
曹云霄 committed
126 127
}

曹云霄's avatar
曹云霄 committed
128

曹云霄's avatar
曹云霄 committed
129 130

#pragma mark -获取导购关联客户
勾芒's avatar
勾芒 committed
131
- (void)getShoppersAssociatedCustomer:(ConsumerQueryCondition *)condition isRemoveArray:(BOOL)remove
曹云霄's avatar
曹云霄 committed
132 133 134 135 136 137
{
    
    [self CreateMBProgressHUDLoding];
    [[NetworkRequestClassManager Manager] NetworkRequestWithURL:[NSString stringWithFormat:@"%@%@",ServerAddress,@"/consumer/query"] WithRequestType:0 WithParameter:condition WithReturnValueBlock:^(id returnValue) {
        
        [self RemoveMBProgressHUDLoding];
勾芒's avatar
勾芒 committed
138
        [self endRefreshingForTableView:self.informationTableview];
曹云霄's avatar
曹云霄 committed
139 140
        if ([returnValue[@"code"] isEqualToNumber:@0]) {
            
勾芒's avatar
勾芒 committed
141 142 143
            if (remove) {
                [self.CustomerresultArray removeAllObjects];
            }
曹云霄's avatar
曹云霄 committed
144
            ConsumerPageResult *Customerresult = [[ConsumerPageResult alloc]initWithDictionary:returnValue[@"data"] error:nil];
勾芒's avatar
勾芒 committed
145
            for (TOConsumerEntity *objc in Customerresult.results) {
曹云霄's avatar
曹云霄 committed
146
                
勾芒's avatar
勾芒 committed
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
                 MyclientEntityModel *myclientModel = [[MyclientEntityModel alloc]init];
                 myclientModel.fid = objc.fid;
                 myclientModel.createName = objc.createName;
                 myclientModel.createBy = objc.createBy;
                 myclientModel.createDate = objc.createDate;
                 myclientModel.sysOrgCode = objc.sysOrgCode;
                 myclientModel.name = objc.name;
                 myclientModel.mobile = objc.mobile;
                 myclientModel.province = objc.province;
                 myclientModel.city = objc.city;
                 myclientModel.country = objc.country;
                 myclientModel.address = objc.address;
                 myclientModel.picture = objc.picture;
                 myclientModel.lastVisitedTime = objc.lastVisitedTime;
                
                [self.CustomerresultArray addObject:myclientModel];
曹云霄's avatar
曹云霄 committed
163
            }
勾芒's avatar
勾芒 committed
164 165 166 167 168 169 170 171 172
            //刷新后添加选中状态
            for (int i=0; i<self.CustomerresultArray.count; i++) {
                MyclientEntityModel *myclientModel = [self.CustomerresultArray objectAtIndex_opple:i];
                if ([[Customermanager manager].customerID isEqualToString:myclientModel.fid]) {
                    InformationTableViewCell *cell = [self.informationTableview cellForRowAtIndexPath:[NSIndexPath indexPathForRow:i inSection:0]];
                    myclientModel.selectedState = YES;
                    cell.setCurrentCustomer.selected = YES;
                }
            }
曹云霄's avatar
曹云霄 committed
173 174 175 176 177 178 179 180 181 182 183 184
            [self.informationTableview reloadData];
        }
        else
        {
            [self ErrorMBProgressView:returnValue[@"message"]];
        }
        
    } WithErrorCodeBlock:^(id errorCodeValue) {
        
        
    } WithFailureBlock:^(id error) {
        
勾芒's avatar
勾芒 committed
185
        [self RemoveMBProgressHUDLoding];
勾芒's avatar
勾芒 committed
186
        [self endRefreshingForTableView:self.informationTableview];
曹云霄's avatar
曹云霄 committed
187 188 189 190
    }];
}


曹云霄's avatar
曹云霄 committed
191 192 193
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    InformationTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"information" forIndexPath:indexPath];
曹云霄's avatar
曹云霄 committed
194
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
勾芒's avatar
勾芒 committed
195
    cell.indexNumber = indexPath.row;
曹云霄's avatar
曹云霄 committed
196
    cell.model = [self.CustomerresultArray objectAtIndex_opple:indexPath.row];
勾芒's avatar
勾芒 committed
197 198 199 200
    //清空其他选中状态
    [cell setBlockSeletced:^(NSInteger index) {
        [self SetCustomerButtonClick:index];
    }];
曹云霄's avatar
曹云霄 committed
201
    return cell;
曹云霄's avatar
曹云霄 committed
202 203
}

曹云霄's avatar
曹云霄 committed
204 205
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
曹云霄's avatar
曹云霄 committed
206
    return self.CustomerresultArray.count;
曹云霄's avatar
曹云霄 committed
207
}
曹云霄's avatar
曹云霄 committed
208

曹云霄's avatar
曹云霄 committed
209
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
曹云霄's avatar
曹云霄 committed
210
{
曹云霄's avatar
曹云霄 committed
211
    return 100;
曹云霄's avatar
曹云霄 committed
212 213
}

曹云霄's avatar
曹云霄 committed
214

曹云霄's avatar
曹云霄 committed
215 216 217 218
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"StoryboardwithCYX" bundle:nil];
    ClientdetailsViewController *clientdetails = [storyboard instantiateViewControllerWithIdentifier:@"clientdetails"];
勾芒's avatar
勾芒 committed
219
    clientdetails.model = [self.CustomerresultArray objectAtIndex_opple:indexPath.row];
勾芒's avatar
勾芒 committed
220 221 222 223 224 225 226
    clientdetails.cellindex = indexPath.row;
    //设置当前客户
    [clientdetails setCurrentUserBlock:^(NSInteger index) {
        InformationTableViewCell *cell = [self.informationTableview cellForRowAtIndexPath:[NSIndexPath indexPathForRow:index inSection:0]];
        cell.setCurrentCustomer.selected = YES;
        [self SetCustomerButtonClick:index];
    }];
曹云霄's avatar
曹云霄 committed
227 228
    [self.navigationController pushViewController:clientdetails animated:YES];
}
曹云霄's avatar
曹云霄 committed
229 230


勾芒's avatar
勾芒 committed
231 232
#pragma mark -设置为当前客户回调
- (void)SetCustomerButtonClick:(NSInteger)index;
曹云霄's avatar
曹云霄 committed
233
{
勾芒's avatar
勾芒 committed
234
    
曹云霄's avatar
曹云霄 committed
235 236 237 238
    for (InformationTableViewCell *cell in self.informationTableview.visibleCells) {
        
        cell.setCurrentCustomer.selected = NO;
    }
勾芒's avatar
勾芒 committed
239 240 241 242 243 244
    for (MyclientEntityModel *model in self.CustomerresultArray) {
        
        model.selectedState = NO;
    }
    MyclientEntityModel *model = [self.CustomerresultArray objectAtIndex_opple:index];
    model.selectedState = YES;
曹云霄's avatar
曹云霄 committed
245
    
勾芒's avatar
勾芒 committed
246 247 248
    self.customerNameField.text = model.name;
    self.phoneNumberField.text = model.mobile;
    self.customerAddress.text = model.address;
勾芒's avatar
勾芒 committed
249
    //保存客户信息
勾芒's avatar
勾芒 committed
250 251
    [Shoppersmanager manager].currentCustomer = YES;
    [Customermanager manager].customerID = model.fid;
勾芒's avatar
勾芒 committed
252 253 254 255
    [Customermanager manager].customerName = model.name;
    [Customermanager manager].customerPhoneNumber = model.mobile;
    [Customermanager manager].companyAddress = model.address;
    [Customermanager manager].cutomerAddress = model.address;
勾芒's avatar
勾芒 committed
256 257
    [self.addpersonInformationButton setTitle:@"退出当前客户" forState:UIControlStateNormal];
    self.changePersonInformationButton.hidden = NO;
勾芒's avatar
勾芒 committed
258
    [self SetupUserRequest];
曹云霄's avatar
曹云霄 committed
259
}
曹云霄's avatar
曹云霄 committed
260

曹云霄's avatar
曹云霄 committed
261

勾芒's avatar
勾芒 committed
262

勾芒's avatar
勾芒 committed
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281
#pragma mark -设置为当前用户请求、写入访问时间
- (void)SetupUserRequest
{

    [[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@%@",ServerAddress,@"/consumer/saveLastVisitedTime?consumerId=",[Customermanager manager].customerID] WithRequestType:1 WithParameter:nil WithReturnValueBlock:^(id returnValue) {
        
        if ([returnValue[@"code"] isEqualToNumber:@0]) {
            NSLog(@"写入客户访问时间成功");
        }
        
    } WithErrorCodeBlock:^(id errorCodeValue) {
        
    } WithFailureBlock:^(id error) {
        
        NSLog(@"写入客户访问时间失败");
    }];
}


勾芒's avatar
勾芒 committed
282

勾芒's avatar
勾芒 committed
283
#pragma mark -添加客户信息、或者退出当前客户
曹云霄's avatar
曹云霄 committed
284 285 286 287 288 289 290 291
- (IBAction)addCustomerInformationORExit:(UIButton *)sender {
    
    if ([sender.currentTitle isEqualToString:@"退出当前客户"]) {
      
        self.customerNameField.text = nil;
        self.customerAddress.text = nil;
        self.phoneNumberField.text = nil;
        self.companyNameField.text = nil;
勾芒's avatar
勾芒 committed
292 293 294 295
        self.customerNameField.enabled = YES;
        self.customerAddress.enabled = YES;
        self.phoneNumberField.enabled = YES;
        self.companyNameField.enabled = YES;
曹云霄's avatar
曹云霄 committed
296
        self.changePersonInformationButton.hidden = YES;
勾芒's avatar
勾芒 committed
297 298
        [Shoppersmanager manager].currentCustomer = NO;
        [Customermanager manager].customerID = nil;
勾芒's avatar
勾芒 committed
299
        [self.changePersonInformationButton setTitle:@"更改客户信息" forState:UIControlStateNormal];
勾芒's avatar
勾芒 committed
300 301 302 303 304 305 306 307 308 309
        
        //全部为为选中状态
        for (InformationTableViewCell *cell in self.informationTableview.visibleCells) {
            
            cell.setCurrentCustomer.selected = NO;
        }
        for (MyclientEntityModel *model in self.CustomerresultArray) {
            
            model.selectedState = NO;
        }
曹云霄's avatar
曹云霄 committed
310 311 312
        [sender setTitle:@"添加客户信息" forState:UIControlStateNormal];
        return;
    }
勾芒's avatar
勾芒 committed
313
    [self addCustomerInformation:NO];
曹云霄's avatar
曹云霄 committed
314 315 316
}


勾芒's avatar
勾芒 committed
317 318
#pragma mark -添加客户信息请求 -新增、或者修改
- (void)addCustomerInformation:(BOOL)isChange
曹云霄's avatar
曹云霄 committed
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344
{
    [self.view endEditing:YES];
    if (self.customerNameField.text.length == 0) {
        
        [self ErrorMBProgressView:@"客户名不能为空"];
        return;
    }
    if (self.phoneNumberField.text.length == 0) {
        
        [self ErrorMBProgressView:@"手机号码不能为空"];
        return;
    }
    
    NSString *phoneNumber = self.phoneNumberField.text;
    if (![HENLENSONG isValidateMobile:phoneNumber]) {
        
        [self ErrorMBProgressView:@"手机号码格式不正确"];
        return;
    }
    
    //客户信息类
    TOConsumerEntity *customerEntity = [[TOConsumerEntity alloc]init];
    customerEntity.createName = self.customerNameField.text;
    customerEntity.mobile = self.phoneNumberField.text;
    customerEntity.address = self.customerAddress.text;
    customerEntity.name = self.companyNameField.text;
勾芒's avatar
勾芒 committed
345 346 347 348
    //修改
    if (isChange) {
       customerEntity.fid = [Customermanager manager].customerID;
    }
曹云霄's avatar
曹云霄 committed
349 350 351 352 353 354 355
    
    [self CreateMBProgressHUDLoding];
    [[NetworkRequestClassManager Manager] NetworkRequestWithURL:[NSString stringWithFormat:@"%@%@",ServerAddress,@"/consumer/save"] WithRequestType:0 WithParameter:customerEntity WithReturnValueBlock:^(id returnValue) {
        
        [self RemoveMBProgressHUDLoding];
        if ([returnValue[@"code"] isEqualToNumber:@0]) {
            
勾芒's avatar
勾芒 committed
356 357 358 359 360 361 362 363 364
            //新增保存ID
            if (!isChange) {
                [Customermanager manager].customerID = returnValue[@"data"];
                [self SuccessMBProgressView:@"新增成功"];
            }else
            {
                [self SuccessMBProgressView:@"修改成功"];
                [self.changePersonInformationButton setTitle:@"更改客户信息" forState:UIControlStateNormal];
            }
勾芒's avatar
勾芒 committed
365 366 367 368 369
            //保存客户信息
            [Customermanager manager].customerName = customerEntity.name;
            [Customermanager manager].customerPhoneNumber = customerEntity.mobile;
            [Customermanager manager].companyAddress = customerEntity.address;
            [Customermanager manager].cutomerAddress = customerEntity.address;
勾芒's avatar
勾芒 committed
370
            [Shoppersmanager manager].currentCustomer = YES;
曹云霄's avatar
曹云霄 committed
371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398
            [self.addpersonInformationButton setTitle:@"退出当前客户" forState:UIControlStateNormal];
            self.changePersonInformationButton.hidden = NO;
            self.customerNameField.enabled = NO;
            self.customerAddress.enabled = NO;
            self.phoneNumberField.enabled = NO;
            self.companyNameField.enabled = NO;
        }
        else
        {
            [self ErrorMBProgressView:returnValue[@"message"]];
        }
        
    } WithErrorCodeBlock:^(id errorCodeValue) {
        
        
        
    } WithFailureBlock:^(id error) {
        
        [self RemoveMBProgressHUDLoding];
        
    }];
}


#pragma mark -更改客户信息
- (IBAction)changeCustomerInformation:(UIButton *)sender {
    
    
勾芒's avatar
勾芒 committed
399 400 401 402 403 404 405 406 407 408 409 410
    if ([sender.currentTitle isEqualToString:@"保存"]) {
        
        [self.customerNameField resignFirstResponder];
        [sender setTitle:@"更改客户信息" forState:UIControlStateNormal];
         [self addCustomerInformation:YES];
    }else
    {
        dispatch_async(dispatch_get_main_queue(), ^{
            [self.customerNameField becomeFirstResponder];
        });
        [sender setTitle:@"保存" forState:UIControlStateNormal];
    }
曹云霄's avatar
曹云霄 committed
411 412 413 414 415 416 417
    self.customerNameField.enabled = YES;
    self.customerAddress.enabled = YES;
    self.phoneNumberField.enabled = YES;
    self.companyNameField.enabled = YES;
}


勾芒's avatar
勾芒 committed
418

曹云霄's avatar
曹云霄 committed
419 420 421
#pragma mark -UITextFieldDelegate代理 ----搜索
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
曹云霄's avatar
曹云霄 committed
422
    [textField resignFirstResponder];
曹云霄's avatar
曹云霄 committed
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438
    [self searchCustomerInforMation];
    return YES;
}


#pragma amrk -搜索客户信息
- (void)searchCustomerInforMation
{
    if (self.searchPersonInformationField.text.length == 0) {
        
        [self ErrorMBProgressView:@"搜索信息不能为空"];
        return;
    }

    [self CreateMBProgressHUDLoding];
    ConsumerQueryCondition *searchCustomer = [[ConsumerQueryCondition alloc]init];
曹云霄's avatar
曹云霄 committed
439 440 441
    DataPage *page = [[DataPage alloc]init];
    page.page = 0;
    searchCustomer.page = page;
曹云霄's avatar
曹云霄 committed
442 443 444 445 446 447 448 449 450
    searchCustomer.nameEquals = self.searchPersonInformationField.text;
    searchCustomer.mobileEquals = self.searchPersonInformationField.text;
    //request
    [[NetworkRequestClassManager Manager] NetworkRequestWithURL:[NSString stringWithFormat:@"%@%@",ServerAddress,@"/consumer/query"] WithRequestType:0 WithParameter:searchCustomer WithReturnValueBlock:^(id returnValue) {
        
        [self RemoveMBProgressHUDLoding];
        if ([returnValue[@"code"] isEqualToNumber:@0]) {
            
            ConsumerPageResult *result = [[ConsumerPageResult alloc]initWithDictionary:returnValue error:nil];
勾芒's avatar
勾芒 committed
451 452 453 454 455
            [self.CustomerresultArray removeAllObjects];
            for (TOConsumerEntity *model in result.results) {
                [self.CustomerresultArray addObject:model];
            }
            [self.informationTableview reloadData];
曹云霄's avatar
曹云霄 committed
456 457 458
        }
        else
        {
勾芒's avatar
勾芒 committed
459
            [self ErrorMBProgressView:returnValue[@"message"]];
曹云霄's avatar
曹云霄 committed
460 461 462 463 464 465
        }
        
    } WithErrorCodeBlock:^(id errorCodeValue) {
        
    } WithFailureBlock:^(id error) {
        
勾芒's avatar
勾芒 committed
466
        [self RemoveMBProgressHUDLoding];
曹云霄's avatar
曹云霄 committed
467
    }];
勾芒's avatar
勾芒 committed
468 469 470 471 472 473 474 475 476 477 478 479 480
}


#pragma mark -键盘落下,判断更改信息按钮是否可见,可见则取消输入框的响应
- (void)KeyboadrDismiss
{
    if (!self.changePersonInformationButton.selected) {
     
        self.customerNameField.enabled = NO;
        self.customerAddress.enabled = NO;
        self.phoneNumberField.enabled = NO;
        self.companyNameField.enabled = NO;
    }
曹云霄's avatar
曹云霄 committed
481
}
曹云霄's avatar
曹云霄 committed
482 483


曹云霄's avatar
曹云霄 committed
484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end