#import <UIKit/>
#import ""
***@interface yxpQrCode :UIViewController
***@end
//
//实现文件
// TestProject
ct:symbolStr]){
NSArray *arr = [symbolStr
componentsSeparated ByString:
NSArray * arrlnfoHead = [[arr objectAtln dex:0]comp onen tsSeparatedByString:@":"];
NSArray * arrlnfoFoot = [[arr objectAtlndex:l]comp onen tsSeparatedByString:@":"];
symbolStr = [NSString stringWithFormat:@"ssid: %@ \n password:%@",
[arrlnfoHead object At I ndex:l],[arrlnfoFoot objectAtlndex:l]];
UlPasteboard *pasteboard=[U I Pasteboard gen eralPasteboard];
〃然后,可以使用如下代码来把一个字符串放置到 剪贴板上:
= [arrl nfoF oot object At I ndex:l];
〃二维码的扫描区域
・(void)setScanView
{
_scanView=[[UIView alloc]initWithFrame:CGRectMake(0,0,VIEW_WIDTH,VIEW_HE IGHT-64)];
=[UIColor clearColor];
〃最上咅l^view
UlView* upView 二[[UlView
Hoc]initWithFrame:CGRectMake(0,0/VIEW_WIDTH,SCANVIE W_EdgeTop)];
二TINTCOLOR_ALPHA;
二[UlColor blackColor];
[_scanView addSubview:upView];
//左侧的view
UlView *leftView = [[UlView alloc]initWithFrame:CGRectMake(0,SCANVIEW_EdgeTop,SCA NVIEW_EdgeLeft,VIEW_WIDTH-2*SCANVIEW_EdgeLeft)];
=TINTCOLOR_ALPHA;
二[UlColor blackColor];
[_scanView addSubviewJeftView];
******************中间扫扌苗区土或
UllmageView *scanCropView二[[UIImageView alloc]initWithFrame:CGRectMake(SCANVIEW_Ed
二维码扫描代码 来自淘豆网m.daumloan.com转载请标明出处.