Customize iPhone Dialer
Is there a way to customize the calling dialer interface of iphone to make calls and everything as that the iphone dialer supports by using a public API reference. If there is a way then can anyone please direct me to a proper link where I can read about it. I know
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8005551212"]];
this helps to make a开发者_C百科 call but I want to not open the default interface which I don't want to open. I will appreciate if anyone can help me with this.
Regards, Ankur
No, there's no public interface for that. If you really need that feature you can try to send bug report to Apple with a request for it.
As @Vladimir says, this is not built in, so you'll need to build your own.
To do so is pretty easy:
- Create a xib file with a set of
UIButton
s (for #s 1-9), aUILabel
to show the currently entered number, and a "Call" button.- Hook up the presses on the number
UIButton
s and add the digit to a local variableNSString
on your ViewController. Update theUILabel
with this number. - When the call
UIButton
is pressed, take the locally stored # and place the aforementioned method call with it.
- Hook up the presses on the number
Originally from my answer here.
精彩评论