對於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. 產品鏈接不工作
- 2. Magento產品圖片鏈接
- 3. Wordpress#創建產品鏈接
- 4. 獲取Aliexpress上的產品的推薦鏈接(分享)鏈接?
- 5. Bigcommerce PHP API鏈接品牌到產品
- 6. 在產品頁面上自動選擇可下載的產品鏈接Magento
- 7. 通過產品ID創建與Magento產品的直接鏈接
- 8. 可下載的產品鏈接在1.9.2
- 9. 將舊產品鏈接重定向到新的prestashop產品鏈接
- 10. 通過產品名稱獲取產品永久鏈接,Woocommerce
- 11. 產品鏈接重定向到主要產品頁面
- 12. Mod重寫大產品鏈接到購物產品
- 13. WooCommerce - 不鏈接到使用「單一產品簡碼」產品
- 14. 更改Magento產品列表,產品鏈接文本
- 15. 分享鏈接使用whatsapp
- 16. HREF WhatsApp的鏈接數量
- 17. Magento - 產品頁面中的上一個和下一個產品鏈接(檢查產品狀態)
- 18. WordPress的永久鏈接產品
- 19. jQuery快速選擇產品鏈接
- 20. 單個產品下載鏈接
- 21. Woocommerce - 鏈接到產品類別
- 22. 重定向舊產品鏈接
- 23. WooCommerce產品永久鏈接不工作
- 24. Magento的產品網址鏈接
- 25. WooCommerce更改單一產品鏈接
- 26. 鏈接magento log_url_info表到產品
- 27. 顯示隨機產品鏈接
- 28. Kentico發票 - 包括鏈接到產品
- 29. 產品錶鏈接不同類型
- 30. 圖像未顯示在WhatsApp鏈接
@Neji感謝您的修改 – 2013-10-03 11:36:50