| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589 |
- //
- // GUWENViewController.m
- // jitao
- //
- // Created by 罗云飞 on 2018/8/19.
- // Copyright © 2018年 罗云飞. All rights reserved.
- //
- #import "GUWENViewController.h"
- #import "SQFiltrateView.h"
- #import "GuWenCell.h"
- #import "GuWenDetailViewController.h"
- #import "CityListViewController.h"
- #import "GUWenlistModel.h"
- @interface GUWENViewController ()<UITableViewDelegate,UITableViewDataSource,CityListViewDelegate,UITextFieldDelegate>{
- SQFiltrateItem *item1;
- SQFiltrateView *filtrateView;
- UITableView *newtableView;
- NSMutableArray *dataArray;
- int pageIndex;
- int pageSize;
- int pageNumber;
- UIView *showView;
- NSString *timeOrhaoping;
- NSString *guwentype;
- NSString *Sheng;
- NSString *Shi;
- NSString *Qu;
- UIView *textBGview;
- UIView *dhView;
- UIButton *backButton;
- }
- @end
- @implementation GUWENViewController
- - (void)viewWillAppear:(BOOL)animated
- {
- [super viewWillAppear:animated];
- [self.navgationBar setHidden:YES];
- if (self.navigationController.viewControllers.count <= 1) {
- NSLog(@"111");
- if (NavHeader == 88) {
- textBGview.sd_layout
- .leftSpaceToView(dhView, 15)
- .heightIs(30)
- .topSpaceToView(dhView, 45)
- .rightSpaceToView(dhView, 60);
- }else{
- textBGview.sd_layout
- .leftSpaceToView(dhView, 15)
- .heightIs(30)
- .topSpaceToView(dhView, 25)
- .rightSpaceToView(dhView, 60);
- }
- backButton.hidden = YES;
- }else{
- NSLog(@"222");
- if (NavHeader == 88) {
- textBGview.sd_layout
- .leftSpaceToView(dhView, 55)
- .heightIs(30)
- .topSpaceToView(dhView, 45)
- .rightSpaceToView(dhView, 60);
- }else{
- textBGview.sd_layout
- .leftSpaceToView(dhView, 55)
- .heightIs(30)
- .topSpaceToView(dhView, 25)
- .rightSpaceToView(dhView, 60);
- }
- backButton.hidden = NO;
- }
- }
- - (void)viewDidDisappear:(BOOL)animated
- {
- [super viewDidDisappear:animated];
- [self.navgationBar setHidden:NO];
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self setNavTitle:@"顾问"];
- [self loadsUI];
- [self loaddata];
- [self classificationview];
- [self loadsView];
- [self addRefreshing];
- [self networkRequest:nil Shijian:timeOrhaoping Sousuo:self.seachStr GuWentype:guwentype];
- // Do any additional setup after loading the view.
- }
- - (void)loaddata{
- dataArray = NewMutableArrayInit;
- pageIndex = 1;
- pageSize = 10;
- pageNumber = 1;
- timeOrhaoping = @"0";
- guwentype = @"";
- Sheng = @"";
- Shi = @"";
- Qu = @"";
- }
- - (void)networkRequest:(id)object Shijian:(NSString *)sortType Sousuo:(NSString *)name GuWentype:(NSString *)consultantType
- {
- int pageNumberIndex=1;
-
- if (!object) {
- [MBProgressHUD showLoadToView:self.view title:@"请稍后..."];
- }else if ([object isKindOfClass:[MJRefreshNormalHeader class]]) {
- pageNumberIndex = 1;
- }else if ([object isKindOfClass:[MJRefreshBackNormalFooter class]]) {
- pageNumberIndex = pageNumber+1;
- }
- NSMutableDictionary *parameters = NewMutableDictionaryInit;
- [parameters safeSetObject:@(pageSize) forKey:@"pageSize"];
- [parameters safeSetObject:@(pageNumberIndex) forKey:@"pageNo"];
- [parameters safeSetObject:timeOrhaoping forKey:@"sortType"];//排序 0时间 1好评率
- [parameters safeSetObject:name forKey:@"name"];//搜索输入名称
- [parameters safeSetObject:consultantType forKey:@"consultantType"]; // 顾问类型 0 专利代理人 1 专利顾问 2 版权顾问 3 商标顾问
- [parameters safeSetObject:Sheng forKey:@"province"];//省
- [parameters safeSetObject:Shi forKey:@"city"];//市
- [parameters safeSetObject:Qu forKey:@"area"];//区
-
- [NetworkRequestManager requestGetWithInterfacePrefix:JT_NewconsultantList parameters:parameters onSuccess:^(id requestData) {
- [self dismiss:object];
- if ([requestData[@"error"] count] !=0) {
- for (NSDictionary *dic in requestData[@"error"]) {
- [MBProgressHUD showError:dic[@"message"] toView:self.view];
- }
- }else{
- pageNumber = pageNumberIndex;
- if ([object isKindOfClass:[MJRefreshNormalHeader class]] || pageNumber==1) {
- [dataArray removeAllObjects];
- }else if ([object isKindOfClass:[MJRefreshBackNormalFooter class]]) {
- NSMutableArray *arr = requestData[@"data"][@"list"];
- if ([arr count]<=0) {
- [[[UIApplication sharedApplication].delegate window] makeToast:NewConnectServerNoMoreDataTitle duration:1.0 position:CSToastPositionBottom];
- return;
- }
- }
- for (NSDictionary *dic in requestData[@"data"][@"list"]) {
- GUWenlistModel *model = [[GUWenlistModel alloc] initWithDictionary:dic error:nil];
- [dataArray addObject:model];
- }
- //查询不到类型底图
- if (dataArray.count<=0) {
- [self addErrorLoadingFrame:CGRectMake(0, NavHeader+44, newtableView.width, newtableView.height) title:@"暂无数据" buttonTitle:nil imageString:NewNoDataErrorImage];
- }else {
- [self hideReloadingview];
- [newtableView reloadData];
- }
- }
- } onFailure:^{
- [self dismiss:object];
- }];
- }
- #pragma mark -------分类-------------
- - (void)classificationview{
- UILabel *line = [[UILabel alloc] initWithFrame:CGRectMake(0, NavHeader, SCREEN_WIDTH, 1)];
- line.backgroundColor = NewLineGrayColor;
- [self.view addSubview:line];
-
- item1 = [[SQFiltrateItem alloc]init];
- item1.listType = OptionListType_Cell;
- item1.numberType = OptionNumberType_Single;
- // NSMutableArray *arr = NewMutableArrayInit;
- // for (NSDictionary *dic in industrytypeArray) {
- // [arr addObject:dic[@"name"]];
- // }
- item1.optionData = @[@"时间",@"好评率"];
- item1.title = @"时间";
-
- SQFiltrateItem *item2 = [[SQFiltrateItem alloc]init];
- item2.listType = OptionListType_Cell;
- item2.numberType = OptionNumberType_Single;
- /*
- 0--专利, 1--软著, 2--项目, 3--版权, 4--工业设计, 5--配方, 6--非标
- */
- item2.optionData = @[@"不限",@"专利代理人",@"专利顾问",@"版权顾问",@"商标顾问"];
- item2.title = @"知识产权顾问";
-
- filtrateView = [[SQFiltrateView alloc]initWithFrame:CGRectMake(0, NavHeader+1, SCREEN_WIDTH, 44)
- filtrateItems:@[item1,item2]];
- [filtrateView touchBlock:^(SQFiltrateView * _Nonnull view, SQFiltrateItem * _Nonnull item) {
- NSLog(@"%@:%@",item.title,item.choseSet);
- if ([item.title isEqualToString:@"时间"]) {
- for (NSSet *luo in item.choseSet) {
- NSString *str = [NSString stringWithFormat:@"%@",luo];
- if ([str isEqual:@"0"]) {
- NSLog(@"时间");
- timeOrhaoping = @"0";
- }else{
- NSLog(@"好评率");
- timeOrhaoping = @"1";
- }
- }
- }else if ([item.title isEqualToString:@"知识产权顾问"]){
- for (NSSet *luo in item.choseSet) {
- NSString *str = [NSString stringWithFormat:@"%@",luo];
- if ([str isEqual:@"0"]) {
- NSLog(@"不限");
- guwentype = @"";
- }else if([str isEqual:@"1"]){
- NSLog(@"专利代理人");
- guwentype = @"0";
- }else if([str isEqual:@"2"]){
- NSLog(@"专利顾问");
- guwentype = @"1";
- }else if([str isEqual:@"3"]){
- NSLog(@"版权顾问");
- guwentype = @"2";
- }else if([str isEqual:@"4"]){
- NSLog(@"商标顾问");
- guwentype = @"3";
- }
- }
- }
- [self networkRequest:nil Shijian:timeOrhaoping Sousuo:@"" GuWentype:guwentype];
- }];
- [self.view addSubview:filtrateView];
- }
- #pragma mark ----自定义导航
- - (void)loadsUI{
- dhView = [UIView new];
- dhView.backgroundColor = NewButtonColor;
- [self.view addSubview:dhView];
-
- dhView.sd_layout
- .leftEqualToView(self.view)
- .rightEqualToView(self.view)
- .heightIs(NavHeader)
- .topEqualToView(self.view);
-
- UIImageView *imgaeview1111= [UIImageView new];
- [imgaeview1111 setImage:NewImageNamed(@"pp")];
- imgaeview1111.userInteractionEnabled = YES;
- [dhView addSubview:imgaeview1111];
-
- imgaeview1111.sd_layout
- .leftEqualToView(dhView)
- .heightIs(NavHeader)
- .rightEqualToView(dhView)
- .topEqualToView(dhView);
-
-
- textBGview = [UIView new];
- textBGview.backgroundColor = NewWhiteColor;
- ViewBorderRadius(textBGview, 3, 1, NewClearColor);
- [dhView addSubview:textBGview];
-
- backButton= [UIButton buttonWithType:UIButtonTypeCustom];
- backButton.frame = CGRectMake(10, 27, 30, 30);
- [backButton setBackgroundColor:[UIColor clearColor]];
- // [backButton setBackgroundImage:NewImageNamed(@"fh") forState:UIControlStateNormal];
- [backButton setImage:NewImageNamed(@"fh") forState:UIControlStateNormal];
- [backButton addTarget:self action:@selector(popViewController) forControlEvents:UIControlEventTouchUpInside];
- [dhView addSubview:backButton];
- //tj
- UIImageView *imageview = [UIImageView new];
- [imageview setImage:NewImageNamed(@"search")];
- [textBGview addSubview:imageview];
-
- imageview.sd_layout
- .widthIs(11)
- .heightIs(10)
- .centerYEqualToView(textBGview)
- .leftSpaceToView(textBGview, 10);
-
- UITextField *textfield = [NewControlPackage textFieldInitWithFrame:CGRectMake(0, 0, 0, 0) backgroundImage:nil backgroundColor:NewWhiteColor textColor:NewGrayColor placeholder:@"请输入关键字" hidden:NO tag:100 font:NewFont(fitScreenWidth(12)) textAlignment:NSTextAlignmentLeft clearButtonMode:UITextFieldViewModeAlways clearsOnBeginEditing:NO adjustsFontSizeToFitWidth:NO secureTextEntry:NO keyboardType:UIKeyboardTypeDefault returnKeyType:UIReturnKeySearch userInteractionEnabled:YES];
- textfield.text = self.seachStr;
- textfield.delegate = self;//设置代理
-
- [textfield addTarget:self action:@selector(textFieldEditingChanged:) forControlEvents:UIControlEventEditingChanged];
- [textBGview addSubview:textfield];
-
- textfield.sd_layout
- .leftSpaceToView(textBGview, 30)
- .topEqualToView(textBGview)
- .bottomEqualToView(textBGview)
- .rightEqualToView(textBGview);
-
-
- UIButton *button = [UIButton new];
- [button setImage:NewImageNamed(@"dq") forState:UIControlStateNormal];
- NewTouchUpInside(button, buttonclick:);
- [dhView addSubview:button];
-
- button.sd_layout
- .centerYEqualToView(textBGview)
- .heightIs(19)
- .widthIs(19)
- .rightSpaceToView(dhView, 15);
-
- }
- #pragma mark -----加载界面-------
- - (void)loadsView{
- [self.view addSubview:newtableView = [NewControlPackage tableViewInitWithFrame:CGRectMake(0, NavHeader+44, SCREEN_WIDTH, SCREEN_HEIGHT-NavHeader-44-TABBAR_HEIGHT) backgroundColor:NewLineGrayColor style:UITableViewStyleGrouped delegate:self dataSource:self showsHorizontalScrollIndicator:NO showsVerticalScrollIndicator:NO hidden:NO tag:100 userInteractionEnabled:YES]];
- newtableView.separatorStyle = NO;
- }
- #pragma mark-------------------------UITableView------------------------------------
- -(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
- {
- return 1;
- }
- //返回每段行数
- -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
- {
- return dataArray.count;
- }
- -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
- {
- static NSString *Cell = @"Cell";
- GuWenCell * cell = [tableView dequeueReusableCellWithIdentifier:Cell];
- if (cell == nil) {
- cell = [[GuWenCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:Cell];
- }
- [cell setSelectionStyle:UITableViewCellSelectionStyleNone];//(这种是没有点击后的阴影效果)
- cell.accessoryType = UITableViewCellAccessoryNone;
- if (dataArray.count>0) {
- [cell assignment:dataArray[indexPath.row]];
- }
- return cell;
- }
- -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
- {
- return 150;
- }
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
- GuWenDetailViewController *vc = [[GuWenDetailViewController alloc] init];
- GUWenlistModel *model = dataArray[indexPath.row];
- vc.ID = model.uid;
- NewPushViewController(vc);
- }
- // tableView 如果是Gruop类型的话,section之间的间距变宽,执行返回高度的同时还需要执行return UIView的代理
- - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
- return CGFLOAT_MIN;
- }
- - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
- return CGFLOAT_MIN;
- }
- - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
- return [[UIView alloc] init];
- }
- - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
- return [[UIView alloc] init];
- }
- #pragma mark - TextField作字符输入限制
- - (void)textFieldEditingChanged:(UITextField *)textField
- {
- if ([textField.text length]>10) {
- UITextRange *markedRange = [textField markedTextRange];
- if (markedRange) {
- return;
- }
- NSRange range = [textField.text rangeOfComposedCharacterSequenceAtIndex:10];
- textField.text = [textField.text substringToIndex:range.location];
- [self.view makeToast:@"搜索最多输入10个字哦~" duration:1.5 position:CSToastPositionCenter];
- }
- // resultsTitleStr = textField.text;
-
- NSLog(@"%@",textField.text);
- }
- - (void)buttonclick:(UIButton *)sender {
- CityListViewController *cityListView = [[CityListViewController alloc]init];
- cityListView.delegate = self;
- //热门城市列表
- cityListView.arrayHotCity = [NSMutableArray arrayWithObjects:@"全国",@"北京",@"上海",@"天津",@"重庆",@"成都",@"广州",@"深圳",@"深圳",@"西安",@"南京",@"杭州", nil];
- //历史选择城市列表
- cityListView.arrayHistoricalCity = [NSMutableArray arrayWithObjects:@"福州",@"厦门",@"泉州", nil];
- //定位城市列表
- cityListView.arrayLocatingCity = [NSMutableArray arrayWithObjects:@"长沙", nil];
-
- // [self presentViewController:cityListView animated:YES completion:nil];
- NewPushViewController(cityListView);
- }
- - (void)didClickedWithCityName:(NSString*)cityName
- {
- NSString *sheng;
- NSString *shi;
- NSString *qu;
- NSString *path = [[NSBundle mainBundle] pathForResource:@"locationAll" ofType:@"txt"];
- NSString *content = [[NSString alloc] initWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
-
- NSDictionary *dic = [self jsonStringToKeyValues:content];
- NSMutableArray *array1= dic[@"list"];
- NSLog(@"%@",cityName);
- for (int i = 0; i<array1.count; i++) {
- NSMutableArray *array2 = array1[i][@"cityList"];
- for (int j = 0; j<array2.count; j++) {
- NSString *chengshi = array2[j][@"name"];
- if ([chengshi isEqualToString:@"市辖区"]) {
- if ([cityName isEqualToString:array1[i][@"name"]]) {
- sheng = array1[i][@"id"];
- }
- }else if ([chengshi rangeOfString:cityName].location != NSNotFound) {
- //包含
- sheng = array1[i][@"id"];
- shi = array2[j][@"id"];
- }
- }
- }
- Sheng = sheng;
- Shi = shi;
- [self networkRequest:nil Shijian:timeOrhaoping Sousuo:@"" GuWentype:guwentype];
- NSLog(@"省:%@市:%@区:%@",sheng,shi,qu);
-
- }
- //json字符串转化成OC键值对
- - (id)jsonStringToKeyValues:(NSString *)JSONString {
- NSData *JSONData = [JSONString dataUsingEncoding:NSUTF8StringEncoding];
- NSDictionary *responseJSON = nil;
- if (JSONData) {
- responseJSON = [NSJSONSerialization JSONObjectWithData:JSONData options:NSJSONReadingMutableContainers error:nil];
- }
-
- return responseJSON;
- }
- #pragma mark - 上拉下拉初始化
- - (void)addRefreshing
- {
-
- __weak typeof(self) weakSelf = self;
- __weak UITableView *tableView = newtableView;
- tableView.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
-
- if ([NetworkRequestManager connectedToNetwork]) {
- // [weakSelf networkRequest:tableView.mj_header];
- [self networkRequest:tableView.mj_header Shijian:timeOrhaoping Sousuo:@"" GuWentype:guwentype];
-
- }else{
- [tableView.mj_header endRefreshing];
- }
- }];
-
- tableView.mj_footer = [MJRefreshBackNormalFooter footerWithRefreshingBlock:^{
-
- if ([NetworkRequestManager connectedToNetwork]) {
-
- // [weakSelf networkRequest:tableView.mj_footer];
- [self networkRequest:tableView.mj_footer Shijian:timeOrhaoping Sousuo:@"" GuWentype:guwentype];
- }else{
- [tableView.mj_footer endRefreshing];
- }
- }];
- }
- - (void)dismiss:(id)object
- {
- if ([object isKindOfClass:[MJRefreshNormalHeader class]]) {
-
- __weak UITableView *newvc = newtableView;
- [newvc.mj_header endRefreshing];
-
- }else if ([object isKindOfClass:[MJRefreshBackNormalFooter class]]){
-
- __weak UITableView *newvc = newtableView;
- [newvc.mj_footer endRefreshing];
-
- }else {
- [MBProgressHUD hideHUDForView:self.view];
- }
- }
- #pragma mark- 外部触发自动刷新
- - (void)autoDownRefresh
- {
- dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
- [self autoRefresh];
- });
- }
- #pragma mark- 网络请求
- - (void)autoRefresh
- {
- __weak UITableView *tableView = newtableView;
- [tableView.mj_header beginRefreshing];
- }
- #pragma mark 初始化展示框
- - (void) addErrorLoadingFrame:(CGRect)frame title:(NSString *)text buttonTitle:(NSString *)buttonText imageString:(NSString *)image
- {
- if(!showView)
- {
- [self.view addSubview:showView = [[UIView alloc] initWithFrame:frame]];
- [showView setHidden:NO];
- [showView setBackgroundColor:NewBgGrayColor];
-
- UIImage *NOimg = [UIImage imageNamed:image];
- UIImageView *tempIcon = [[UIImageView alloc]initWithImage:NOimg];
- [showView addSubview:tempIcon];
- tempIcon.sd_layout
- .leftSpaceToView(showView, (showView.width/2)-(NOimg.size.width/4.0f))
- .topSpaceToView(showView, (showView.height/2)-100.0f-(NOimg.size.height/4.0f))
- .widthIs(NOimg.size.width/2.0f)
- .heightIs(NOimg.size.height/2.0f);
-
- UILabel *tipLab = [UILabel new];
- [showView addSubview:tipLab];
- [tipLab setText:text];
- [tipLab setTextAlignment:NSTextAlignmentCenter];
- [tipLab setTextColor:NewLightGrayColor];
- [tipLab setBackgroundColor:NewClearColor];
- [tipLab setFont:NewAutoFont(16.0)];
- tipLab.sd_layout
- .leftEqualToView(showView)
- .rightEqualToView(showView)
- .topSpaceToView(tempIcon,10)
- .heightIs(20.0);
-
- if (buttonText.length>0) {
- UIButton *button=[UIButton buttonWithType:UIButtonTypeCustom];
- [showView addSubview:button];
- [button setTitle:buttonText forState:UIControlStateNormal];
- [button setTitleColor:NewNavigationColor forState:UIControlStateNormal];
- ViewBorderRadius(button, 16, 2, NewNavigationColor);
- [button addTarget:self action:@selector(reloadingData) forControlEvents:UIControlEventTouchUpInside];
- CGFloat width = [NewUtils heightforString:[NSString stringWithFormat:@"%@",buttonText] andHeight:34 fontSize:16];
-
- button.sd_layout
- .leftSpaceToView(showView, (showView.width/2)-((width+35)/2))
- .topSpaceToView(tipLab, 30.0)
- .widthIs(width+35)
- .heightIs(34);
- }
- }
-
- [UIView beginAnimations:@"ShowArrow" context:nil];
-
- [UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
-
- [UIView setAnimationDuration:0.25f];
-
- [UIView setAnimationDelegate:self];
- [showView setAlpha:1.0f];
- [UIView commitAnimations];
-
- }
- - (void)hideReloadingview
- {
- [UIView animateWithDuration:0.25 animations:^{
-
- showView.hidden = YES;
-
- } completion:^(BOOL finished) {
- for (id obj in showView.subviews) {
-
- [obj removeFromSuperview];
- }
- showView = nil;
- [showView removeFromSuperview];
- }];
- }
- //搜索虚拟键盘响应
- - (BOOL)textFieldShouldReturn:(UITextField *)textField
- {
-
- NSLog(@"点击了搜索");
- [textField resignFirstResponder];
- [self networkRequest:nil Shijian:timeOrhaoping Sousuo:textField.text GuWentype:guwentype];
- return YES;
-
- }
- - (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
|