-1

I am using this code phone calling from iPhone its calling directly to particular number.My question is it it possible to have some intermediate dialing screen so when i click on this button it leads to that screen and by clicking call button there i can make a call.Dial screen
should be like the image.

-(IBAction)call{

    NSString *StrNumber = @"15553451290";
    [[UIApplication sharedApplication] ![enter image description here][1]openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",StrNumber]]];

}
Cœur
  • 37,241
  • 25
  • 195
  • 267
mshau
  • 503
  • 4
  • 19

3 Answers3

1

Yes, its possible. You will have to create a new screen with buttons of digits and calling button. You will have to get the phone number by those digits/buttons. And get the resultant full number and use it in the above function. The function will be called when user presses the call button.

Saleh
  • 380
  • 3
  • 19
  • thank you but i don't want to design this screen.My question is iphone is giving such functionality without designing it from our side? – mshau Jun 20 '12 at 09:51
  • @Saleh: i meant the same. She will have to create a custom view. But there is no such default facility available in ios unlike android – coder1010 Jun 20 '12 at 10:07
1

U can do it by using icarousel.Just create temperorary view which have collection of buttons with numbers and call symbol.Then define a function to button that loads the view like pop in and pop out and u can do rest of the methods.

Vishnu
  • 2,243
  • 2
  • 21
  • 44
-1

No @zink. I think this facility is not available in ios. You can make a custom view like this and then from there you can put [[UIApplication sharedApplication] ![enter image description here][1]openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",StrNumber]]];

coder1010
  • 412
  • 5
  • 15