在海韓帝國可以看的,更新的也很快,v+這個321524,在航空公司以及各機票售票處,未能在乘坐飛機后7日內(nèi)領(lǐng)取行程單的旅客,可以在購票站補打行程單。2、購票后至飛機起飛后的30天內(nèi)打印行程單服務(wù)有效。機場領(lǐng)取行程單的旅客,務(wù)必在起飛后30天內(nèi)領(lǐng)取。3、飛機起飛后的30天以后申請打印行程單服務(wù)無效。超過30天無法打印行程單。這時需要聯(lián)系承運人(航空公司)或購票的銷售商協(xié)商解決。4、在指定bai的機場柜臺行程單領(lǐng)取,一般的航空公司都會在機場設(shè)置機行程單領(lǐng)取柜臺。5、如有不明白的問題可以咨詢機場工作人員,他們會給你詳細的解答。1、為保護您的合法權(quán)益,在網(wǎng)上預訂機票,須注意查看網(wǎng)站上是否具備工商局頒發(fā)的網(wǎng)上電子標識,電信主管部門頒發(fā)的ICP證號,國際航空運輸協(xié)會(IATA)頒發(fā)的國際證書。2、正規(guī)的經(jīng)營航空客運代理業(yè)務(wù)的旅du行社或票務(wù)代理公司除需有固定的經(jīng)營場所外,還應具備以下條件:(1)具有'國際航空運輸協(xié)會'頒發(fā)的IATA執(zhí)照號碼。(2)具有民航局頒發(fā)的經(jīng)營航空客運代理業(yè)務(wù)的許可。只有國內(nèi)客票代理權(quán)的公司不可經(jīng)營國際票務(wù)業(yè)務(wù)。(3)具有固定的經(jīng)營場所和民航預訂終端系統(tǒng)。(4)具有經(jīng)過民航和國際航空運輸協(xié)會培訓合格的票務(wù)專業(yè)人員。RTHTHRTH3、為保證查到正確的票價,請詢價時告知準確的去程、回程日期,并要求書面確認報價。4、航空公司會不時推出促銷價格和有關(guān)信息,敬請經(jīng)常留意'最新消息'欄目。5、為避免機位緊張時訂不到座位,最好盡可能提前將機位訂好。預訂機位是不收費的,屆時如決定不購票可通知訂票取消
創(chuàng)新互聯(lián)于2013年開始,先為昌圖等服務(wù)建站,昌圖等地企業(yè),進行企業(yè)商務(wù)咨詢服務(wù)。為昌圖企業(yè)網(wǎng)站制作PC+手機+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問題。
可以實現(xiàn)的,二維碼包含的信息是由你控制的,對這兩個二維碼做不同標示,掃描時根據(jù)這個標示做個判斷就可以實現(xiàn)
/
// 頭文件
// TestProject
//
#import UIKit/UIKit.h
#import "ZBarSDK.h"
@interface yxpQrCode : UIViewController
@end
//
// 實現(xiàn)文件
// TestProject
//
#import "yxpQrCode.h"
#define SCANVIEW_EdgeTop 40.0
#define SCANVIEW_EdgeLeft 50.0
#define TINTCOLOR_ALPHA 0.2 //淺色透明度
#define DARKCOLOR_ALPHA 0.5 //深色透明度
@interface yxpQrCode () ZBarReaderViewDelegate
{
UIView *_QrCodeline;
NSTimer *_timer;
//設(shè)置掃描畫面
UIView *_scanView;
ZBarReaderView *_readerView;
}
@end
@implementation yxpQrCode
- ( id )initWithNibName:( NSString *)nibNameOrNil bundle:( NSBundle*)nibBundleOrNil
{
self = [ super initWithNibName :nibNameOrNil bundle :nibBundleOrNil];
if ( self ) {
// Custom initialization
}
return self ;
}
- ( void )viewDidLoad
{
[ super viewDidLoad ];
self . title = @"掃描二維碼" ;
//初始化掃描界面
[ self setScanView ];
_readerView = [[ ZBarReaderView alloc ] init ];
_readerView . frame = CGRectMake ( 0 , 64 , VIEW_WIDTH , VIEW_HEIGHT - 64 );
_readerView . tracksSymbols = NO ;
_readerView . readerDelegate = self ;
[ _readerView addSubview : _scanView ];
//關(guān)閉閃光燈
_readerView . torchMode = 0 ;
[ self . view addSubview : _readerView ];
//掃描區(qū)域
//readerView.scanCrop =
[ _readerView start ];
[ self createTimer ];
}
#pragma mark -- ZBarReaderViewDelegate
-( void )readerView:( ZBarReaderView *)readerView didReadSymbols:( ZBarSymbolSet*)symbols fromImage:( UIImage *)image
{
const zbar_symbol_t *symbol = zbar_symbol_set_first_symbol (symbols.zbarSymbolSet );
NSString *symbolStr = [ NSString stringWithUTF8String : zbar_symbol_get_data(symbol)];
//判斷是否包含 頭'http:'
NSString *regex = @"http+:[^//s]*" ;
NSPredicate *predicate = [ NSPredicate predicateWithFormat : @"SELF MATCHES %@",regex];
UIAlertView *alertView=[[ UIAlertView alloc ] initWithTitle : @"" message:symbolStr delegate : nil cancelButtonTitle : @"取消" otherButtonTitles : nil ];
[alertView show ];
//判斷是否包含 頭'ssid:'
NSString *ssid = @"ssid+:[^//s]*" ;;
NSPredicate *ssidPre = [ NSPredicate predicateWithFormat : @"SELF MATCHES %@",ssid];
if ([predicate evaluateWithObject :symbolStr]) {
}
else if ([ssidPre evaluateWithObject :symbolStr]){
NSArray *arr = [symbolStr componentsSeparatedByString : @";" ];
NSArray * arrInfoHead = [[arr objectAtIndex : 0 ]componentsSeparatedByString : @":" ];
NSArray * arrInfoFoot = [[arr objectAtIndex : 1 ]componentsSeparatedByString : @":" ];
symbolStr = [ NSString stringWithFormat : @"ssid: %@ /n password:%@" ,
[arrInfoHead objectAtIndex : 1 ],[arrInfoFoot objectAtIndex : 1 ]];
UIPasteboard *pasteboard=[ UIPasteboard generalPasteboard ];
//然后,可以使用如下代碼來把一個字符串放置到剪貼板上:
pasteboard. string = [arrInfoFoot objectAtIndex : 1 ];
}
}
//二維碼的掃描區(qū)域
- ( void )setScanView
{
_scanView =[[ UIView alloc ] initWithFrame : CGRectMake ( 0 , 0 , VIEW_WIDTH, VIEW_HEIGHT - 64 )];
_scanView . backgroundColor =[ UIColor clearColor ];
//最上部view
UIView * upView = [[ UIView alloc ] initWithFrame : CGRectMake ( 0 , 0 ,VIEW_WIDTH , SCANVIEW_EdgeTop )];
upView. alpha = TINTCOLOR_ALPHA ;
upView. backgroundColor = [ UIColor blackColor ];
[ _scanView addSubview :upView];
//左側(cè)的view
UIView *leftView = [[ UIView alloc ] initWithFrame : CGRectMake ( 0 ,SCANVIEW_EdgeTop , SCANVIEW_EdgeLeft , VIEW_WIDTH - 2 * SCANVIEW_EdgeLeft )];
leftView. alpha = TINTCOLOR_ALPHA ;
leftView. backgroundColor = [ UIColor blackColor ];
[ _scanView addSubview :leftView];
/******************中間掃描區(qū)域****************************/
UIImageView *scanCropView=[[ UIImageView alloc ] initWithFrame : CGRectMake (SCANVIEW_EdgeLeft , SCANVIEW_EdgeTop , VIEW_WIDTH - 2 * SCANVIEW_EdgeLeft ,VIEW_WIDTH - 2 * SCANVIEW_EdgeLeft )];
//scanCropView.image=[UIImage imageNamed:@""];
scanCropView. layer . borderColor =[ UIColor getThemeColor ]. CGColor ;
scanCropView. layer . borderWidth = 2.0 ;
scanCropView. backgroundColor =[ UIColor clearColor ];
[ _scanView addSubview :scanCropView];
//右側(cè)的view
UIView *rightView = [[ UIView alloc ] initWithFrame : CGRectMake ( VIEW_WIDTH- SCANVIEW_EdgeLeft , SCANVIEW_EdgeTop , SCANVIEW_EdgeLeft , VIEW_WIDTH - 2 *SCANVIEW_EdgeLeft )];
rightView. alpha = TINTCOLOR_ALPHA ;
rightView. backgroundColor = [ UIColor blackColor ];
[ _scanView addSubview :rightView];
//底部view
UIView *downView = [[ UIView alloc ] initWithFrame : CGRectMake ( 0 ,VIEW_WIDTH - 2 * SCANVIEW_EdgeLeft + SCANVIEW_EdgeTop , VIEW_WIDTH , VIEW_HEIGHT-( VIEW_WIDTH - 2 * SCANVIEW_EdgeLeft + SCANVIEW_EdgeTop )- 64 )];
//downView.alpha = TINTCOLOR_ALPHA;
downView. backgroundColor = [[ UIColor blackColor ] colorWithAlphaComponent :TINTCOLOR_ALPHA ];
[ _scanView addSubview :downView];
//用于說明的label
UILabel *labIntroudction= [[ UILabel alloc ] init ];
labIntroudction. backgroundColor = [ UIColor clearColor ];
labIntroudction. frame = CGRectMake ( 0 , 5 , VIEW_WIDTH , 20 );
labIntroudction. numberOfLines = 1 ;
labIntroudction. font =[ UIFont systemFontOfSize : 15.0 ];
labIntroudction. textAlignment = NSTextAlignmentCenter ;
labIntroudction. textColor =[ UIColor whiteColor ];
labIntroudction. text = @"將二維碼對準方框,即可自動掃描" ;
[downView addSubview :labIntroudction];
UIView *darkView = [[ UIView alloc ] initWithFrame : CGRectMake ( 0 , downView.frame . size . height - 100.0 , VIEW_WIDTH , 100.0 )];
darkView. backgroundColor = [[ UIColor blackColor ] colorWithAlphaComponent: DARKCOLOR_ALPHA ];
[downView addSubview :darkView];
//用于開關(guān)燈操作的button
UIButton *openButton=[[ UIButton alloc ] initWithFrame : CGRectMake ( 10 , 20 ,300.0 , 40.0 )];
[openButton setTitle : @"開啟閃光燈" forState: UIControlStateNormal ];
[openButton setTitleColor :[ UIColor whiteColor ] forState :UIControlStateNormal ];
openButton. titleLabel . textAlignment = NSTextAlignmentCenter ;
openButton. backgroundColor =[ UIColor getThemeColor ];
openButton. titleLabel . font =[ UIFont systemFontOfSize : 22.0 ];
[openButton addTarget : self action : @selector (openLight) forControlEvents: UIControlEventTouchUpInside ];
[darkView addSubview :openButton];
//畫中間的基準線
_QrCodeline = [[ UIView alloc ] initWithFrame : CGRectMake (SCANVIEW_EdgeLeft , SCANVIEW_EdgeTop , VIEW_WIDTH - 2 * SCANVIEW_EdgeLeft , 2 )];
_QrCodeline . backgroundColor = [ UIColor getThemeColor ];
[ _scanView addSubview : _QrCodeline ];
}
- ( void )openLight
{
if ( _readerView . torchMode == 0 ) {
_readerView . torchMode = 1 ;
} else
{
_readerView . torchMode = 0 ;
}
}
- ( void )viewWillDisappear:( BOOL )animated
{
[ super viewWillDisappear :animated];
if ( _readerView . torchMode == 1 ) {
_readerView . torchMode = 0 ;
}
[ self stopTimer ];
[ _readerView stop ];
}
//二維碼的橫線移動
- ( void )moveUpAndDownLine
{
CGFloat Y= _QrCodeline . frame . origin . y ;
//CGRectMake(SCANVIEW_EdgeLeft, SCANVIEW_EdgeTop, VIEW_WIDTH-2*SCANVIEW_EdgeLeft, 1)]
if (VIEW_WIDTH- 2 *SCANVIEW_EdgeLeft+SCANVIEW_EdgeTop==Y){
[UIView beginAnimations: @"asa" context: nil ];
[UIView setAnimationDuration: 1 ];
_QrCodeline.frame=CGRectMake(SCANVIEW_EdgeLeft, SCANVIEW_EdgeTop, VIEW_WIDTH- 2*SCANVIEW_EdgeLeft, 1 );
[UIView commitAnimations];
} else if (SCANVIEW_EdgeTop==Y){
[UIView beginAnimations: @"asa" context: nil ];
[UIView setAnimationDuration: 1 ];
_QrCodeline.frame=CGRectMake(SCANVIEW_EdgeLeft, VIEW_WIDTH- 2*SCANVIEW_EdgeLeft+SCANVIEW_EdgeTop, VIEW_WIDTH- 2 *SCANVIEW_EdgeLeft, 1 );
[UIView commitAnimations];
}
}
- ( void )createTimer
{
//創(chuàng)建一個時間計數(shù)
_timer=[NSTimer scheduledTimerWithTimeInterval: 1.0 target: self selector:@selector (moveUpAndDownLine) userInfo: nil repeats: YES ];
}
- ( void )stopTimer
{
if ([_timer isValid] == YES ) {
[_timer invalidate];
_timer = nil ;
}
}
- ( void )didReceiveMemoryWarning
{
[ super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end --遠標ITJOB
1、方法一:
(1)使用相機自帶的掃描二維碼功能,首先,打開iphone電源,回到ios的主屏幕界面;
(2)然后在主屏幕界面,從下往上滑動打開“控制中心”;
(3)在“控制中心”找到“二維碼掃面”。點擊打開;
(4)然后將要掃描的二維碼對準攝像頭;
(5)掃描完成,就可以選擇打開連接了。
2、方法二:蘋果手機的QQ、微信等app也具有掃描二維碼的功能。
(1)在手機桌面用力按下相應app的圖標呼出二級菜單;
(2)在二級菜單選擇“掃一掃”即可。
本文標題:ios二維碼掃描開發(fā),ios二維碼掃描功能
本文鏈接:http://www.rwnh.cn/article44/dscophe.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信小程序、關(guān)鍵詞優(yōu)化、營銷型網(wǎng)站建設(shè)、靜態(tài)網(wǎng)站、App開發(fā)、移動網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)