0

I am trying to make a program, in which, user can auto dial the number(last call preferably),similar to what we have in old telephone.

I need to get the last dial number from the call list and on one touch, user can make a call on that number.

Please guide me to get the idea, to achieve this.

Thanks

FirstTimer
  • 313
  • 1
  • 5
  • 14

2 Answers2

1

You cannot modify Phone app's logic. You can't.

Raptor
  • 53,206
  • 45
  • 230
  • 366
  • 1
    +1 and Apple wouldn't allow an app like this to go onto the app store. If your app can get the last phone number dialed, then other apps can maliciously log and/or transmit all the logged numbers somewhere off phone (i.e. big security risk). – Michael Dautermann Nov 21 '12 at 09:12
0

from Programmatically Dial a Phone number and pass DTMF using the iPhone SDK

Somehow helpful:


I dont know why everyone says you cant... you CAN!

NSString *phoneNumber = @"15555551212"; NSString *dtmfAfterPickup = @"1234"; NSString *telString = [NSString stringWithFormat:@"tel:%@,%@", phoneNumber, dtmfAfterPickup]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:telString]];

This will dial the phoneNumber bypassing the dial/cancel prompt... 1 second after the call is answered, the dtmfAfterPickup string will be automatically dialed.

Its a good idea to detect whether or not the device support phone calls

Community
  • 1
  • 1
FirstTimer
  • 313
  • 1
  • 5
  • 14
  • Did you try ? You can dial the number, but you cannot access the phone history. You can't make a phone app replacing the original one as well; it violates App Store Submission rule. – Raptor Nov 21 '12 at 10:30