There is a single file code:

// // Constants.swift // pixel-city // // Created by apple on 01.02.2018. // Copyright © 2018 apple. All rights reserved. // import Foundation let apiKey = "bca9713a70298e4376337d7a5876fb8b" func flickrUrl(forApiKey key: String, withAnnotation annotation: DroppablePin, andNumberOfPhotos number: Int) -> String { let url = "https://api.flickr.com/services/rest/? method=flickr.photos.search&api_key=\(apiKey)&lat=\. (annotation.coordinate.latitude)&lon=\. (annotation.coordinate.longitude)&radius=2&radius_units=km&per_page=\. (number)&format=json&nojsoncallback=1" print(url) return url } 

And a piece of code for the second file. I ask you to pay attention to the last line:

 let touchPoint = sender.location(in: mapView) let touchCoordinate = mapView.convert(touchPoint, toCoordinateFrom: mapView) let annotation = DroppablePin(coordinate: touchCoordinate, identifier: "droppablePin") mapView.addAnnotation(annotation) print(flickrUrl(forApiKey: apiKey, withAnnotation: annotation, andNumberOfPhotos: 40)) 

So far, nothing is displayed in the Debug area field: enter image description here

It should be like this: enter image description here

Please tell me what the problem is!

  • Delegate assigned? - VAndrJ
  • Tell me, where is the "Filter" field ?? I recently study ios development so I don’t know where it is - Aresandro

1 answer 1

Check if the Filter field is not filled. If filled, the console will display only what its value contains.