文件名称:SDK1.6.2 demo.zip
文件大小:12.88MB
文件格式:ZIP
更新时间:2019-03-08 06:10:03
SDK
#import "RespForWeChatViewController.h" #import "WXApiManager.h" #import "WXApiResponseHandler.h" #import "Constant.h" @implementation RespForWeChatViewController #pragma mark - View Lifecycle - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self setupHeadView]; [self setupLinesView]; [self setupFootView]; } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); } else { return YES; } } - (void)dealloc { [super dealloc]; } #pragma mark - User Actions - (void)sendTextContent { [WXApiResponseHandler respText:kTextMessage]; [self dismissModalViewControllerAnimated:YES]; } - (void)sendImageContent { NSString *filePath = [[NSBundle mainBundle] pathForResource:@"res1" ofType:@"jpg"]; NSData *imageData = [NSData dataWithContentsOfFile:filePath]; UIImage *thumbImage = [UIImage imageNamed:@"res1thumb.png"]; [WXApiResponseHandler respImageData:imageData MessageExt:nil Action:nil ThumbImage:thumbImage]; [self dismissModalViewControllerAnimated:YES]; } - (void)sendLinkContent { UIImage *thumbImage = [UIImage imageNamed:@"res2.png"]; [WXApiResponseHandler respLinkURL:kLinkURL Title:kLinkTitle Description:kLinkDescription ThumbImage:thumbImage]; [self dismissModalViewControllerAnimated:YES]; } - (void)sendMusicContent { UIImage *thumbImage = [UIImage imageNamed:@"res3.jpg"]; [WXApiResponseHandler respMusicURL:kMusicURL dataURL:kMusicDataURL Title:kMusicTitle Description:kMusicDescription ThumbImage:thumbImage]; [self dismissModalViewControllerAnimated:YES]; } - (void)sendVideoContent { UIImage *thumbImage = [UIImage imageNamed:@"res4.jpg"]; [WXApiResponseHandler respVideoURL:kVideoURL Title:kVideoTitle Description:kVideoDescription ThumbImage:thumbImage]; [self dismissModalViewControllerAnimated:YES]; } - (void)sendAppContent { Byte* pBuffer = (Byte *)malloc(BUFFER_SIZE); memset(pBuffer, 0, BUFFER_SIZE); NSData* data = [NSData dataWithBytes:pBuffer length:BUFFER_SIZE]; free(pBuffer); UIImage *thumbImage = [UIImage imageNamed:@"res2.jpg"]; [WXApiResponseHandler respAppContentData:data ExtInfo:kAppContentExInfo ExtURL:kAppContnetExURL Title:kAPPContentTitle Description:kAPPContentDescription MessageExt:kAppMessageExt MessageAction:kAppMessageAction ThumbImage:thumbImage]; } - (void)sendNonGifContent { NSString *filePath = [[NSBundle mainBundle] pathForResource:@"res5" ofType:@"jpg"]; NSData *emoticonData = [NSData dataWithContentsOfFile:filePath]; UIImage *thumbImage = [UIImage imageNamed:@"res5thumb.png"]; [WXApiResponseHandler respEmotionData:emoticonData ThumbImage:thumbImage]; }
【文件预览】:
SDK1.6.2 demo
----SDKExport()
--------WXApi.h(5KB)
--------libWeChatSDK.a(12.51MB)
--------read_me.txt(1KB)
--------WechatAuthSDK.h(2KB)
--------WXApiObject.h(20KB)
----.DS_Store(6KB)
----SDKSample_v2.0()
--------SDKSample.xcodeproj()
--------main.m(349B)
--------SDKSample-Prefix.pch(321B)
--------res2.png(36KB)
--------res1.jpg(35KB)
--------App()
--------Default.png(52KB)
--------ViewController()
--------Icon.png(2KB)
--------res5thumb.png(7KB)
--------ML.pdf(154KB)
--------res2.jpg(19KB)
--------Default-568h@2x.png(169KB)
--------Helper()
--------res5.jpg(24KB)
--------res3.jpg(14KB)
--------.DS_Store(6KB)
--------lindan.gif(690KB)
--------Icon@2x.png(4KB)
--------res4.jpg(39KB)
--------res7.jpg(10KB)
--------SDKSample-Info.plist(2KB)
--------Default@2x.png(172KB)
--------res1thumb.png(6KB)
--------iphone4.pdf(5.41MB)
--------res6.gif(51KB)
--------en.lproj()
--------Control()
--------res6thumb.png(12KB)
--------micro_messenger.png(4KB)