Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7710991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:15:48+00:00 2026-06-01T01:15:48+00:00

i develop a calling program in the below way. my main aim is enter

  • 0

i develop a calling program in the below way.
my main aim is enter the number in textfield and whenever i press the call button it convert

into the integer and then perform calling action.in xcode is there any possibility to create a

code for outgoing call?

And is there any possibility to block the incoming calls?

i am writing the code below way.

my .h file is

@interface mytextViewController : UIViewController
{             
  IBOutlet UILabel *enterphonenumber;           
    int currentNumber;        
}

@property(nonatomic,retain)IBOutlet UILabel *enterphonenumber;

-(IBAction)call;

-(IBAction)press:(id)sender;

@end

my .m file is

-(IBAction)press:(id)sender    
{    
    currentNumber = currentNumber*10 + (int)[sender tag];

    enterphonenumber.text = [NSString stringWithFormat:@"%i",currentNumber];    
}    

-(IBAction)call

{        
    int x =[enterphonenumber.text intValue];       

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:x]];
//[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"%tel:9963610177"]];
    NSLog(@"sample %@",[NSURL URLWithString:@"my phone number is calling"]);
}

And also how to examine it performs a calling

please any one help because i am the new to develop this application

Thanking you,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:15:50+00:00Added an answer on June 1, 2026 at 1:15 am

    Try using the tel protocol.

    if ([[[UIDevice currentDevice] model] isEqualToString:@"iPhone"])
    {
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel://%d", number]]];
    }
    

    You cannot block any incoming calls.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I am loooking for a way to develop an algorithm which is supposed
What's the best way to call a class constructor that can have lots of
I develop a jQuery plugin for projection of 360° images, where the main means
I use phonegap 1.3.0 to develop mobile application. when i click one button that
We develop asp.net webforms using visual studio 2008. For multilingual support, we translate all
I develop various web apps, use CSS and JavaScript extensively, and need to be
I develop a critical application used by a multi-national company. Users in offices all
I develop code using .net, and sometimes using ruby. My friend wants me to
We develop iPhone apps in Europe and sometimes we demo them in the USA
I develop a module with multiple threads and one Cache in std::map. Some times

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.