iOS 分享到微信之后返回应用关闭发送成功的提示,并自定义提示,具体内容如下
1.关闭发送成功的提示
只要在分享的时候调用一下代码即可:
[UMSocialConfig setFinishToastIsHidden:YES position:UMSocialiToastPositionCenter];
2.自定义提示
//如果点击返回app会调用这个方法
- (void)didFinishGetUMSocialDataInViewController:(UMSocialResponseEntity *)response {
//返回200说明分享成功
if (response.responseCode == 200) {
//分享成功之后弹出这个提示语
//自己添加遮罩层,并添加点击手势,方便回收提示
self.mask2 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreen_Width, kScreen_Height)];
self.mask2.backgroundColor = [[UIColor colorWithHexColorString:@"000000"] colorWithAlphaComponent:0.5];
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tap:)];
[self.mask2 addGestureRecognizer:tap];
[self.view.window addSubview:self.mask2];</