99 lines
2.8 KiB
Objective-C
99 lines
2.8 KiB
Objective-C
//
|
|
// AboutUsViewController.m
|
|
// Ifish
|
|
//
|
|
// Created by imac on 15/9/29.
|
|
// Copyright © 2015年 imac. All rights reserved.
|
|
//
|
|
|
|
#import "AboutUsViewController.h"
|
|
#import "IfishUDPBroadCastHelper.h"
|
|
|
|
@interface AboutUsViewController ()
|
|
|
|
@end
|
|
|
|
@implementation AboutUsViewController
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
self.view.backgroundColor=COLOR_BACK_;
|
|
[self addTitleViewWithTitle:@"关于我们"];
|
|
|
|
//app 版本
|
|
NSDictionary *infoDic=[[NSBundle mainBundle] infoDictionary];
|
|
// CFShow((__bridge CFTypeRef)(infoDic));
|
|
NSString *app_Version=[infoDic objectForKey:@"CFBundleShortVersionString"];
|
|
NSLog(@"app_Version%@",app_Version);
|
|
app_Version=@"4.7.4";
|
|
NSString *versionStr = [NSString stringWithFormat:@"v%@",app_Version];
|
|
NSString *buildVersion = [infoDic objectForKey:@"CFBundleVersion"];
|
|
if (buildVersion.length > 0) {
|
|
versionStr = [versionStr stringByAppendingString:[NSString stringWithFormat:@"(%@)", buildVersion]];
|
|
}
|
|
self.versionLabel.text=versionStr;
|
|
//build 版本
|
|
// NSString *app_build=[infoDic objectForKey:@"CFBundleVersion"];
|
|
|
|
[self addlongPress];
|
|
|
|
}
|
|
|
|
- (void)didReceiveMemoryWarning {
|
|
[super didReceiveMemoryWarning];
|
|
}
|
|
-(void)addlongPress{
|
|
|
|
UILongPressGestureRecognizer*longpress=[[UILongPressGestureRecognizer alloc]initWithTarget:self action:@selector(longpressRecongnizer:)];
|
|
|
|
longpress.minimumPressDuration = 3;
|
|
|
|
[self.view addGestureRecognizer:longpress];
|
|
|
|
|
|
}
|
|
|
|
|
|
-(void)longpressRecongnizer:(UILongPressGestureRecognizer*)longPressGesture{
|
|
|
|
if (longPressGesture.state==UIGestureRecognizerStateEnded) {
|
|
//logo 长安切换设备环境
|
|
|
|
CGPoint locationP= [longPressGesture locationInView:self.view];
|
|
|
|
BOOL isIn= CGRectContainsPoint( self.logoImg.frame ,locationP);
|
|
|
|
if (isIn) {
|
|
|
|
NSLog(@"3miao");
|
|
[[IfishUDPBroadCastHelper sharedInstance] broadCaseUDP];
|
|
[self.view makeToast:@"切换指令发送成功"];
|
|
|
|
}else{
|
|
|
|
|
|
UIAlertView*alert=[[UIAlertView alloc]initWithTitle:@"哟,发现彩蛋了~" message:@"爱鱼奇初创团队:\n服务端攻城狮:郭恭文\n安卓美男子:欧阳达\nios宅男:练向\n射鸡师腐女:杨继莹\nios烟鬼:肖鸿宇\n软妹子UI:张馨妍\n骚男UI:吴磊磊\nCEO大大:欧阳国务\n产品汪:单志锋\n想要获得他们的联系方式,请长按100秒~" delegate:self cancelButtonTitle:nil otherButtonTitles:@"确定", nil];
|
|
[alert show];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
-(void)viewWillAppear:(BOOL)animated{
|
|
[super viewWillAppear:animated];
|
|
|
|
|
|
}
|
|
|
|
-(void)viewDidDisappear:(BOOL)animated{
|
|
[super viewDidDisappear:animated];
|
|
|
|
}
|
|
|
|
@end
|