当我点击按钮哪个标题点击这里放大然后我想要在第一个视图上显示活动指示器,并在加载此视图时删除.

但我回去然后显示活动指示器,在此视图中显示.

在第一个vie .m文件中,我使用此代码进行操作.
-(IBAction)btnSelected:(id)sender{
UIButton *button = (UIButton *)sender;
int whichButton = button.tag;
NSLog(@"Current TAG: %i", whichButton);
UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
[spinner setCenter:CGPointMake(160,124)];
[self.view addSubview:spinner];
[spinner startAnimating];
if(whichButton==1)
{
[spinner stopAnimating];
first=[[FirstImage alloc]init];
[self.navigationController pushViewController:first animated:YES];
[spinner hidesWhenStopped ];
}}
Run Code Online (Sandbox Code Playgroud)
在上面的代码我有按钮动作,我在其中调用下一个视图.现在我想在查看上传时显示/显示活动指示器.在下一个视图中,我有一个图像视图,其中我上传的图像我已经声明了一个也不起作用的活动指示器.怎么样?
我的xcode项目中有一个本地html文件.但我不能用UIWebView加载该本地html文件.
我想提供一种功能,用户可以通过点击显示该号码的标签旁边的按钮来拨打电话号码.我有基本的按钮操作方法:
-(IBAction)Call:(id)sender{
//Define function
}
Run Code Online (Sandbox Code Playgroud)
...但我不明白如何在方法中触发电话拨号.
iphone ×2
uiview ×2
xcode ×2
ios ×1
ipad ×1
objective-c ×1
uilabel ×1
uitextfield ×1
uiwebview ×1