Three call methods and three call Methods

Source: Internet
Author: User

Three call methods and three call Methods

The younger brother checked many questions about iOS program calls, but most of them were incomplete. Today I have summarized three methods, each of which is different and I hope to help you.

1. In this way, the original application cannot be returned after the call is completed, and the application will stay in the address book and be called directly. No prompt is displayed.

NSMutableString * str = [[NSMutableString alloc] initWithFormat: @ "tel: % @", @ "186xxxx6979"];

// NSLog (@ "str ======%@", str );

[[UIApplication sharedApplication] openURL: [NSURL URLWithString: str];

2. This method will return to the original program after the phone is called, and a prompt will pop up. We recommend this method.

NSMutableString * str = [[NSMutableString alloc] initWithFormat: @ "tel: % @", @ "186xxxx6979"];

UIWebView * callWebview = [[UIWebView alloc] init];

[CallWebview loadRequest: [NSURLRequest requestWithURL: [NSURL URLWithString: str];

[Self. view addSubview: callWebview];

[CallWebview release];

[Str release];

 

 

 

 

3. This method will also go back to the original program (note the telprompt here), and a prompt will pop up.

NSMutableString * str = [[NSMutableString alloc] initWithFormat: @ "telprompt: // % @", @ "186xxxx6979"];

// NSLog (@ "str ======%@", str );

[[UIApplication sharedApplication] openURL: [NSURL URLWithString: str]


Use excel to filter phone numbers. In the three workbooks, You need to filter the top 30-40 phone numbers. How can you sort them out in descending order?

You can use the following methods:
1. Create a new worksheet and copy all the data to the table (data starts from a2 ).
We recommend that you do not copy unnecessary data, such as the call duration.

2. Assume that the phone number is in column a, starting from a2, then b2 enters:
= INDEX (A: A, SMALL (IF (MATCH (A $1: A $1000 & "", A $1: A $1000 &"",) = ROW ($1: $1000), ROW ($1: $1000), 4 ^ 8), ROW )))&""
Press ctrl + shift + enter.
(If there is too much data, use advanced filtering to de-duplicate the list)
C2 Input
= If (b2 = "", "", countif (a: a, b2 ))
Column B generates a list of non-repeated phone numbers, and column c obtains the number of calls of the corresponding phone number.

3. Finally, copy the data, right-click the data, and choose "select Paste"> "value"> "OK". Then, sort the data by automatic filtering.

In fact, you can use a pivot table to filter data. However, if you are not familiar with it, it is not convenient to operate it.

It is best for the landlord to leave qq. For details, contact you or check whether there are other problems with the table.

The calculation method is "no". For example, 1-10 numbers, 5 numbers are drawn from them. If the numbers are not put back, I will select 3 numbers. Is there a probability in none of them?

C (5, 3)/C (10, 3)
= 5*4*3/(10*9*8)
= 1/12

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.