#import <UIKit/>
#import "" ©interface yxpQrCode :UIViewController
***@end
//
//实现文件
〃 TestProject
//symbolStr]){
NSArray *arr = [symbolStr componentsSeparatedByString:@";"];
NSArray * arrlnfoHead = [[arr
objectAtlndex:0]componentsSeparatedByString:@":"];
NSArray * arrlnfoFoot = [[arr objectAtlndex:l]componentsSeparatedByString:@":"];
symbolStr = [NSString stringWithFormat:@"ssid: %@ \n password:%@",
[arrlnfoHead objectAtlndex:l],[arrlnfoFoot
objectAtlndex:l]];
UlPasteboard *pasteboard=[U I Pasteboard general Pasteboard];
〃然后,可以使用如下代码来把一个字符串放置到 剪贴板上:
= [arrlnfoFoot objectAtlndex:!];
〃二维码的扫描区域
・(void)setScanView
{
_scanView=[[UIView
alloc]initWithFrame:CGRectMake(0,0,VIEW_WIDTH,VIEW_HE IGHT-64)];
=[UIColor clearColor];
〃最上部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_EdgeLeft,
二维码扫描代码 来自淘豆网m.daumloan.com转载请标明出处.