#淘宝#复制分享宝贝内容,打开淘宝APP,自己主动弹出宝贝提示信息

场景描写叙述:

淘宝复制连接,分享出去,比方拷贝到QQ好友。微信好友,一个宝贝信息。然后你朋友长按复制你分享它了的这个宝贝。当然打开手机淘宝时。自己主动会跳出宝贝的信息,点击确定能够直接进入宝贝详情


简单实现方式:

- (void)applicationDidBecomeActive:(UIApplication *)application
{
    NSString  *string = [UIPasteboard generalPasteboard].string;
    
    if (string) {
         UIAlertView  *alert = [[UIAlertView alloc] initWithTitle:@"淘宝分享" message:string delegate:nil cancelButtonTitle:@"取消" otherButtonTitles:@"确定 ", nil];
        [alert show];
    }
}


复制信息后,打app会出现例如以下效果图:



非常奇妙吗?

创意无处不在

原文地址:https://www.cnblogs.com/clnchanpin/p/6805155.html