diff --git a/OpenShareDemo/openshare/ViewController.m b/OpenShareDemo/openshare/ViewController.m index 59ee4aa..ab0da03 100644 --- a/OpenShareDemo/openshare/ViewController.m +++ b/OpenShareDemo/openshare/ViewController.m @@ -21,7 +21,7 @@ @interface ViewController () @implementation ViewController{ NSDictionary *icons; UIScrollView *panel; - UIImage *testImage,*testThumbImage; + UIImage *testImage,*testThumbImage,*hdImage; NSData *testGifImage,*testFile; } @@ -30,6 +30,7 @@ - (void)viewDidLoad { //初始化测试数据 testImage = [UIImage imageNamed:@"Default"];//[NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Default@2x" ofType:@"png"]]; testThumbImage= [UIImage imageNamed:@"logo"];//[NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"logo" ofType:@"png"]]; + hdImage = [UIImage imageNamed:@"Default"]; testGifImage= [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"logo" ofType:@"gif"]]; testFile= [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"test" ofType:@"pdf"]]; @@ -324,7 +325,7 @@ -(UIView*)weixinView:(CGRect)frame{ seg.center=CGPointMake(frame.size.width/2, 20); [ret addSubview:seg]; - NSArray *titles=@[@"发送Text消息",@"发送Photo消息",@"发送Link消息",@"发送Music消息",@"发送Video消息",@"发送App消息",@"发送非gif表情",@"发送gif表情",@"发送文件消息"]; + NSArray *titles=@[@"发送Text消息",@"发送Photo消息",@"发送Link消息",@"发送Music消息",@"发送Video消息",@"发送App消息",@"发送非gif表情",@"发送gif表情",@"发送文件消息",@"小程序分享"]; NSArray *fromX=@[@(frame.size.width/4),@(frame.size.width*3/4)]; int fromY=calcYFrom(seg)+ 40; for (int i=0; i