Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 我应该能够启动url按钮时按下使用ib_Iphone_Url_Uibutton_Launch - Fatal编程技术网

Iphone 我应该能够启动url按钮时按下使用ib

Iphone 我应该能够启动url按钮时按下使用ib,iphone,url,uibutton,launch,Iphone,Url,Uibutton,Launch,我认为ib中可能有类似于启动url的选项 如果您知道,,,,,不确定“我想显示一个启动url名称”,有人能回答吗?但是如果您想在safari中打开一个url,您可以使用 [[UIApplication sharedApplication] openURL:url]; 像这样的 -(IBAction) buttonPressed { NSURL *url = [NSURL URLWithString:@"http://www.url.com"]; [[UIApplicat

我认为ib中可能有类似于启动url的选项

如果您知道,,,,,

不确定“我想显示一个启动url名称”,有人能回答吗?但是如果您想在safari中打开一个url,您可以使用

[[UIApplication sharedApplication] openURL:url];
像这样的

-(IBAction) buttonPressed {  
    NSURL *url = [NSURL URLWithString:@"http://www.url.com"];  
    [[UIApplication sharedApplication] openURL:url]; 
}

可能是我们必须在ir按钮选项中设置的一些选项,任何一个都可以回答它吗?我不想加载url页面,我有一个徽标,当我触摸该徽标时,它应该在一个小视图或框中启动url名称…所以你想要一个加载网页的小子视图吗?嗯。。感谢您复制我的答案:)