ifish/Ifish/controllers/IfishTabControllers/探索/shopCertification/ShopCertifyCheckViewControl...

82 lines
2.5 KiB
Objective-C

//
// ShopCertifyCheckViewController.m
// Ifish
//
// Created by imac on 16/8/19.
// Copyright © 2016年 lianxiang. All rights reserved.
//
#import "ShopCertifyCheckViewController.h"
#import "WoShiShangJiaViewController.h"
@interface ShopCertifyCheckViewController ()
@end
@implementation ShopCertifyCheckViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.statusImg.image = [UIImage imageNamed:@"shop_certifycheck"];
self.statuesViewBtn.hidden = YES;
NSString *titleStr=@"工作人员正在审核,请耐心等待。详情电话:021-54131006";
NSMutableAttributedString * attributedString = [[NSMutableAttributedString alloc] initWithString:titleStr];
NSMutableParagraphStyle * paragraphStyle = [[NSMutableParagraphStyle alloc] init];
//[paragraphStyle setLineSpacing:8];
[attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, titleStr.length)];
[attributedString addAttribute:NSForegroundColorAttributeName value:[UIColor orangeColor] range:NSMakeRange(20,12)];
self.statysLabel.userInteractionEnabled = YES;
[self.statysLabel setAttributedText:attributedString];
UITapGestureRecognizer *labelTapGestureRecognizer = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(labelTouchUpInside:)];
[self.statysLabel addGestureRecognizer:labelTapGestureRecognizer];
}
//打电话
-(void)labelTouchUpInside:(UITapGestureRecognizer *)gesture{
//拨打电话
if ([UIApplication instancesRespondToSelector:@selector(canOpenURL:)]) {
NSString *telNumber = [NSString stringWithFormat:@"telprompt://%@",@"021-54131006"];
NSURL *aURL = [NSURL URLWithString: telNumber];
if ([[UIApplication sharedApplication] canOpenURL:aURL])
{
[[UIApplication sharedApplication] openURL:aURL];
}
}
}
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
}
- (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