P
P
Petrushka2015-03-23 21:25:56
Objective-C
Petrushka, 2015-03-23 21:25:56

Objective-c mapKit?

Good day, I started to learn mapKit, I looked at a couple of lessons, there was nothing unusual, they added a label, wrote a normal piece of code, added buttons, implemented protocols, etc., in
general, nothing unusual. But then I came across 1 lesson, the guy just added a button on bar and in the method of this button I wrote the following code:

-(IBAction)actionDirection:(id)sender {
    NSString * urlString = @"http://maps.apple.com/maps?daddr=40.707184,-73.998392";
    ;
}

installed the outlet, of course, and so, after clicking, I get a LOT of different functionality (and labels, and map mode, and more).
Question: what does this code do? how did we get all this?
PS sorry for my literacy
23d0e1cb87a6499186461f90b099c71d.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s0L, 2015-03-24
@s0L

Learn to read documentation. The code opens the standard application "Maps"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question