ifish/Ifish/controllers/FishTinkController/centerPushcontrollers/StoreViewController.m

46 lines
1.5 KiB
Objective-C

//
// StoreViewController.m
// Ifish
//
// Created by imac on 15/10/3.
// Copyright © 2015年 imac. All rights reserved.
//
//默认店铺
#import "StoreViewController.h"
#import "MorShopViewController.h"
@interface StoreViewController ()
@end
@implementation StoreViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor= [UIColor colorWithRed:239.0/256.0 green:239.0/256.0 blue:244.0/256.0 alpha:1];
[self addTitleViewWithTitle:@"店铺"];
UIBarButtonItem *rt=[[UIBarButtonItem alloc]initWithTitle:@"更多店铺" style:UIBarButtonItemStyleDone target:self action:@selector(moreStore)];
self.navigationItem.rightBarButtonItem=rt;
self.navigationItem.rightBarButtonItem.tintColor=[UIColor whiteColor];
[self LoadData];
}
-(void)LoadData{
self.detailView.text=[NSString stringWithFormat:@"地址:%@%@%@\n营业时间:%@\n主营:%@\n联系电话:%@\n店长:%@\n", _mermodel.cityName, _mermodel.areaName, _mermodel.road, _mermodel.startTime, _mermodel.mainBusiness, _mermodel.contactPhone, _mermodel.salutation];
self.detailView.textColor=[UIColor grayColor];
self.storeNameLabel.text= _mermodel.shopName;
self.storeNameLabel.textColor=COLOR_LABEL_TITLE;
}
-(void)moreStore{
MorShopViewController*moreShopvc=[[MorShopViewController alloc]init];
[self.navigationController pushViewController:moreShopvc animated:YES];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end