Hola, Apple

1

Hablemos de iOS

2

Conozcamos XCode

3

驴Necesito un iPhone para ser iOS Developer?

Tu primera app en iOS

4

隆Hola, Mundo Apple!

5

Navegaci贸n con UINavigationController

6

Modales en la navegaci贸n

7

Utilizando controles en c贸digo

8

Autolayout vs SwiftUI

9

Autolayout

10

Listas con UITableView

11

Celdas personalizadas para nuestras listas.

12

Persistencia: UserDefaults

Manejo de dependencias

13

CocoaPods

14

Carthage

Servicios Web

15

Primeros pasos para consumir servicios

16

Afinando detalles para consumir servicios

17

Convirtiendo los JSON a modelos

18

Alamofire

Proyecto: PlatziTweets

19

Bienvenido a PlatziTweets

20

Configurando Proyecto

21

Dise帽ando vistas iniciales

22

Configuraci贸n de vistas iniciales

23

Configuraci贸n de registro

24

Descripci贸n de la API de PlatziTweets

25

Conexi贸n de la API y Autenticaci贸n

26

Registro de usuarios

27

Dise帽o del Tweet

28

Obteniendo Tweets

29

Creaci贸n de vista para publicar Tweets

30

Publicando Tweets

31

Borrando Tweets

32

Integraci贸n de la c谩mara

33

Conexi贸n con Firebase

34

Configuraci贸n de XCode para correr app

35

Subir imagen a Firebase

36

Publicar Tweet con imagen

37

Tomando Videos para el Tweet

38

Publicar Tweet con video

39

Detalles del video

40

Accediendo al GPS

41

Implementando mapas con MapsKit

42

Mostrando todos los estudiantes en el mapa

43

Retos del proyecto

En producci贸n

44

Enviar a pruebas con Firebase Distribution

45

Enviar tu aplicaci贸n a APP Store Connect

46

Distribuci贸n de tu app con TestFlight

iOS Avanzado

47

Dark Mode

48

SwiftUI

49

Terminando detalles de una vista con SwiftUI

50

Objective-C

Hola, iOS Developer

51

Felicidades

52

Expert Session: 隆nuevo espacio para resolver tus dudas sobre el desarrollo de Apps para iOS!

You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesi贸n a prueba de IA

Antes: $249

Currency
$209
Suscr铆bete

Termina en:

0 D铆as
18 Hrs
16 Min
54 Seg

Mostrando todos los estudiantes en el mapa

42/52
Resources

How to properly configure a map in iOS?

Setting up maps in iOS can be a painstaking process, but once you acquire the necessary skills, you can create impressive apps that offer great functionality to users. Below, we'll explore how to avoid common problems when programming maps and how to extend your capabilities to work with and visualize geographic data effectively.

Why do unwanted margins appear on the map?

When programming the size of items in iOS, such as a map, you may face margin issues. This can happen due to the view lifecycle that does not always guarantee the full size of the scheduled element, especially if the size adjustment is made during view loading(viewDidLoad). To fix it:

  1. Move the map setting to the viewDidAppear lifecycle method.
  2. This ensures that the map is set once all elements are fully visible on screen.

How to pass data between screens in Swift with Storyboards?

Passing data between screens is crucial, especially if we work with multiple View Controllers in an application. Using prepare(for segue: UIStoryboardSegue, sender: Any?) is a great way to handle transitions and pass specific information.

  1. Identifier Validation: Checks that the segue being executed has the proper identifier, for example, "showMap".
  2. Caste Destination: Once inside the correct block, casts the segue destination to the correct View Controller, such as MapViewController.
  3. Property mapping: Pass the necessary data to the next view by directly setting the properties. For example, pass a list of posts through mapViewController.posts.
if segue.identifier == "showMap" { if let mapViewController = segue.destination as? MapViewController { mapViewController.posts = dataSource.filter { $0.hasLocation } }}

How to add markers to a map effectively?

Adding visual markers to your maps is critical for geographic interaction within an application. The process includes creating annotations that indicate specific locations on the map.

  1. Create an annotation: Use MKPointAnnotation to set a marker.
  2. Set coordinates: Assign location and title to each marker based on information from your data objects, such as posts.
for post in posts { let marker = MKPointAnnotation() marker.coordinate = CLLocationCoordinate2D(latitude: post.location.latitude, longitude: post.location.longitude) marker.title = post.text marker.subtitle = post.author.name mapView.addAnnotation(marker)}

How to focus the map on the last location of interest?

Displaying the map focused on a specific location helps to improve the user experience. You can achieve this by setting the map camera to focus on the last point of interest automatically.

  1. Select the last post: Get the latest entry in your list of posts.
  2. Set the map camera: Sets the starting position of the map using MKMapCamera.
if let lastPost = posts.last { let lastPostLocation = CLLocationCoordinate2D(latitude: lastPost.location.latitude, longitude: lastPost.location.longitude) let mapCamera = MKMapCamera(lookingAtCenter: lastPostLocation, fromDistance: 30, pitch: 0, heading: 12) mapView.setCamera(mapCamera, animated: true)}

Recommendations for improving map functionality

Finally, we recommend you explore more functionality through MapKit to add interactivity and customization to your maps. Some ideas include:

  • Draw lines between locations: Useful for logistics applications.
  • Establish delimited areas of interest: Highlight specific zones based on business data.
  • Incorporate real-time data: Such as traffic or weather, to enrich the information presented.

Keep exploring and practicing, as the potential of maps is vast and impressive. This will not only enrich your apps but also broaden your knowledge of iOS development.

Contributions 1

Questions 0

Sort by:

Want to see more contributions, questions and answers from the community?

Super, para ver el 煤ltimo post en realidad hay que hacer posts.first en lugar de posts.last, ya que posts.last es el ultimo elemento de la tabla, es decir el primer tweet 馃槢