在 iOS 應用中點擊按鈕,可開啟網頁版 QQ 群組加入頁面,引導使用者加入指定群組。
NSURL *url = [NSURL URLWithString:@"https://qun.qq.com/join.html"];
[[UIApplication sharedApplication] openURL:url];
Swift 版本:
if let url = URL(string: "https://qun.qq.com/join.html") {
UIApplication.shared.open(url)
}