Problems with using xcode (IOS)

Source: Internet
Author: User

1. Code sign error: the identity 'iphone developer 'doesn' t match any valid, non-expired certificate/private key pair in your Keychains

At first, I thought it was wrong to set the Code Sign. After searching for the Internet for a long time, I tried all kinds of methods without any effect. In the end, I restarted my computer in a rage, and then I was puzzled. Me X! I bought a table last year!

I personally think it is a valuable reference:

Http://stackoverflow.com/questions/9949700/iphone-developer-doesnt-match-any-valid-non-expired-certificate-private-key-p/9950273#9950273

Http://stackoverflow.com/questions/11869486/how-can-i-solve-the-code-sign-error-the-identity-ipad-doesnt-match-any-valid

2. simple application of GPS on iOS platform (obtain longitude and latitude and detailed address)

-(Void) reversegeocoder :( mkreversegeocoder *) geocoder didfindplacemark :( mkplacemark *) placemark

The placemark obtained by using the above method may be a null value in the member variable. You can only make a non-empty judgment before using it.

Summary:

1. Do not count on the rigor of the code written by others. Be sure to protect yourself.

2. The placemark member uses null values. In my personal opinion, it can reduce unnecessary memory usage and overhead for creating string objects. In the future, you can also use this initialization method for your code.


3.

Common xcode4 shortcut keys

4. Convert the long type to a string:

Long long testlong= 999999;

Char stingtest [32];

Sprintf (stringtest, "%LlD ", testlong );

That is, the two l are in front of D and cannot be found online. Ask the student to know.

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.