53 lines
1.6 KiB
Objective-C
53 lines
1.6 KiB
Objective-C
//
|
|
// ShopErWeiMaViewController.m
|
|
// Ifish
|
|
//
|
|
// Created by imac on 17/4/11.
|
|
// Copyright © 2017年 lianlian. All rights reserved.
|
|
//
|
|
|
|
#import "ShopErWeiMaViewController.h"
|
|
#import "QRCodeGenerator.h"
|
|
@interface ShopErWeiMaViewController ()
|
|
|
|
@end
|
|
|
|
@implementation ShopErWeiMaViewController
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
// Do any additional setup after loading the view from its nib.
|
|
[self addTitleViewWithTitle:@"店铺二维码"];
|
|
self.shopNameLabel.text = self.shopName;
|
|
|
|
self.view.backgroundColor = RGB(242, 242, 242);
|
|
NSString*str=[NSString stringWithFormat:@"IfishShopId:%@",self.shopId];
|
|
|
|
self.erweimaCode.image=[QRCodeGenerator qrImageForString:str imageSize:self.erweimaCode.bounds.size.width];
|
|
self.holdBackView.layer.masksToBounds = YES;
|
|
self.holdBackView.layer.cornerRadius = 10;
|
|
self.holdBackView.layer.shadowOffset = CGSizeZero;
|
|
self.holdBackView.layer.shadowOpacity = 0.8f;
|
|
|
|
UIBezierPath *shadowPath = [UIBezierPath bezierPathWithRect:self.holdBackView.bounds];
|
|
self.holdBackView.layer.shadowPath = shadowPath.CGPath;
|
|
self.bootomLabel.textColor = RGB(153, 153, 153);
|
|
}
|
|
|
|
- (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
|