admin 管理员组

文章数量: 1184232

拨打电话方式

第一种,不会跳出app

UIWebView *callWebView = [[ UIWebView alloc ] init ];

NSURL *telURL = [ NSURL URLWithString : @"tel:10086" ];

[callWebView loadRequest :[ NSURLRequest requestWithURL :telURL]];

[ self . view addSubview :callWebView];

第二种,不会跳出app

NSString *allString = [ NSString stringWithFormat : @"tel:10086" ];

[[ UIApplication sharedApplication ] openURL :[ NSURL URLWithString :allString]];

第三种,不会跳出app




本文标签: 智能手机 不会跳出 系统