对于iPhone应用程序,是否可以在产品上使用Whatsapp链接?一旦链接它会通过whatsapp发送消息给我的手机号码。请指教。Whatsapp链接在产品上?
12
A
回答
2
你做任何的方法作为tafh建议这是自定义的方法或者通过iOS应用程序开发人员我建议你去文档交互控制器,初始化一个UIDocumentInteractionController。这些都可以帮助您管理交互。查看下面的链接了解更多信息。
(UIDocumentInteractionController *) setupControllerWithURL: (NSURL) fileURL
usingDelegate: (id <UIDocumentInteractionControllerDelegate>) interactionDelegate {
UIDocumentInteractionController *interactionController =
[UIDocumentInteractionController interactionControllerWithURL: fileURL];
interactionController.delegate = interactionDelegate;
return interactionController;
}
0
0
我不知道你的意思到底是什么,但也许这是你在找什么:http://www.whatsapp.com/faq/en/iphone/23559013
NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"];
if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) {
[[UIApplication sharedApplication] openURL: whatsappURL];
}
+0
感谢您的回复 – SampathKumar
1
notification = @"Your Daily Inspiration by the ";
notification = [notification stringByAppendingString:@"\n"];
notification = [notification stringByAppendingString:textview.text];
NSString *whats=notification;
NSString *baseURL = [NSString stringWithFormat:@"whatsapp://send?text=%@",whats];
NSURL *url = [NSURL URLWithString:[baseURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
if ([[UIApplication sharedApplication] canOpenURL: url]) {
[[UIApplication sharedApplication] openURL: url];
}
else
{
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Sorry"
message:@"You can't send a thought on Whatsapp"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alertView show];
}
使用该代码的IM发送的WhatsApp的,你应该看看下面的链接
0
相关问题
- 1. Magento产品图片链接
- 2. 产品链接不工作
- 3. Wordpress#创建产品链接
- 4. 获取Aliexpress上的产品的推荐链接(分享)链接?
- 5. 在产品页面上自动选择可下载的产品链接Magento
- 6. 通过产品ID创建与Magento产品的直接链接
- 7. 可下载的产品链接在1.9.2
- 8. 将旧产品链接重定向到新的prestashop产品链接
- 9. 分享链接使用whatsapp
- 10. HREF WhatsApp的链接数量
- 11. WooCommerce - 不链接到使用“单一产品简码”产品
- 12. Mod重写大产品链接到购物产品
- 13. 产品链接重定向到主要产品页面
- 14. 更改Magento产品列表,产品链接文本
- 15. Magento - 产品页面中的上一个和下一个产品链接(检查产品状态)
- 16. 图像未显示在WhatsApp链接
- 17. jQuery快速选择产品链接
- 18. Kentico发票 - 包括链接到产品
- 19. 产品表链接不同类型
- 20. 单个产品下载链接
- 21. WooCommerce更改单一产品链接
- 22. 链接magento log_url_info表到产品
- 23. Magento的产品网址链接
- 24. 重定向旧产品链接
- 25. 更改产品链接直接进入产品详细信息页面 - woocommerce
- 26. 使用产品ID删除magento购物车商品产品链接
- 27. Magento:在目录 - >管理产品中添加产品页面链接?
- 28. 在新订单邮件中添加产品链接到sku(或产品名称)
- 29. 将简单产品链接到列在Magento分组产品下的页面
- 30. WhatsApp链接无法在移动设备上工作
@Neji感谢您的修改 – 2013-10-03 11:36:50