app名称本地化自适应;分享图片接入
This commit is contained in:
1 parent
cbd1ce3313
commit
625e2b7934
66 files changed
+7772
-342
No files matched your search
@@ -30,12 +30,12 @@ void LaunchMiniProgram(const char* miniProgramID, const char* path){
|
||||
}
|
||||
|
||||
// 分享图片至微信
|
||||
void ShareImgToWX(int scene, UInt8 *msgByteArrayData, int arrayLength, const char* title, const char* description){
|
||||
void ShareImgToWX(int scene, UInt8 *msgByteArrayData, int arrayLength){
|
||||
WXImageObject *imageObject = [WXImageObject object];
|
||||
imageObject.imageData = [[NSData alloc] initWithBytes:msgByteArrayData length:arrayLength];
|
||||
WXMediaMessage *message = [WXMediaMessage message];
|
||||
message.title = [NSString stringWithUTF8String:title];
|
||||
message.description = [NSString stringWithUTF8String:description];
|
||||
// message.title = [NSString stringWithUTF8String:title];
|
||||
// message.description = [NSString stringWithUTF8String:description];
|
||||
// 用APP的Icon做缩略图
|
||||
NSDictionary *infoPlist = [[NSBundle mainBundle] infoDictionary];
|
||||
NSString *icon = [[infoPlist valueForKeyPath:@"CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles"] lastObject];
|
||||
@@ -67,7 +67,6 @@ void ShareUrlToWX(int scene, const char* url, const char* title, const char* des
|
||||
[WXApi sendReq:req completion:nil];
|
||||
}
|
||||
|
||||
|
||||
//判断是否安装微信
|
||||
bool IsWechatInstalled_iOS()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user