IOS development and ios development

Source: Internet
Author: User

IOS development and ios development

First of all, this function should have been used.

For example, if you download an e-book and select the open method, you may see the installed reading App on your mobile phone.

Or, if your QQ receives a file, you can select a local application to open it.

How is this function implemented?

To put it simply. It is to call the URL to enable a third-party application.


First, the opened application needs to provide this function, that is, it needs to register a URL Schemes for third-party use.


If you want your application to be called, you can set it like this.

In the xxxx info. plist file, add the following attributes:

Similar to this:


Note: The URL Schemes is required and the URL identifier is optional.

In addition, it is recommended that all URL Schemes be in lower case, because when the data is received later, it is case-insensitive and both are converted to lower case.

The specified format is URL Schemes: // URL identifier


Then, you need to add the following code in Appdelegate. m to process the processing after receiving the request.

// Process URL request-(BOOL) application :( UIApplication *) application handleOpenURL :( NSURL *) url {NSLog (@ "% @", url ); if ([[url scheme] isw.tostring: @ "myurltest"]) {// processing link NSString * text = [[url host] stringByReplacingPercentEscapesUsingEncoding: NSUTF8StringEncoding]; UIAlertView * myAlert = [[UIAlertView alloc] initWithTitle: @ "New message" message: text delegate: self cancelButtonTitle: @ "o" otherButtonTitles: nil]; [myAlert show]; return YES;} return NO ;}

Here I wrote a demonstration to determine whether the URL of the application is opened. If yes, a warning box is displayed, showing the incoming data.

Of course, it depends on you.



Then, a third-party application can directly open it.

Let's make a simple demonstration and use Safari to open it directly.

Enter myurltest: // hello to indicate that the URL Schemes of the opened application is myurltest, and the input data is hello.



Of course, you can use the following method to open an application:


NSURL *url  = [NSURL URLWithString:@"myurltest:"];[[UIApplication sharedApplication] openURL:url];

In addition, Mark the URL Schemes of some known applications.

What interesting iOS URL schemes do you know?



Ios Development Engineer salary


This is the salary sample we collected. We can see that the average salary of ios development engineers in Beijing is 13184, and the salary of fresh graduates is about 6-8. This is normal. The University has learned the knowledge, this is because the knowledge of c ++ and java is far from the project development. If the o base is trained, the salary should be about 6 K. When the work experience is 1-2 years, the salary will be normal for tens of thousands.
Because this course is rarely offered in universities, most of the students who want to enter the ios development industry need to study again, if you want to learn more, you need to do more enterprise-level projects like a good programmer training camp, so that you can get started directly when you enter the company.


 
Where are ios development tutorials? Ios development can be self-taught?

I can say with certainty that I can learn ios development without a foundation.
I have my own experience in this field. When I graduated from college, I was unable to find a suitable job,
At the teacher's suggestion, I participated in qianfeng's ios development course.
In less than four months, I finished my study smoothly. At that time, our school also had no ios courses, so I had no foundation at all,
I was also worried that I could not learn it. Finally, under the guidance of the teachers, I successfully completed the ios development course.
I have been working for several months now, and now I am working very well.
There are a lot of ios development and training institutions, so the landlord must look for it before deciding
I hope that the landlord will be as lucky as me to find a good school and successfully complete his learning plan.

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.