Accent
Traducción
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Ejemplos
Primero inicializamos la propiedad done antes de invocar init(coder:) en la superclase.
We first initialize the done property before invoking init?(coder:) on the superclass.
Después inicializamos el web driver self.wd al conectar al servidor Appium.
We then initialize the web driver self.wd by connecting to the Appium server.
Después de que un archivo haya sido seleccionado, lo cargamos en la instancia de FileReference que inicializamos anteriormente.
After a file has been selected, we load it to the FileReference instance that we initialised earlier.
Si inicializamos la variable, la expresión de inicialización debe se del mismo tipo o compatible con el especificado en la variable.
If we initialize the variable, its expression must be of the same type or a compatible type with that specified at the variable declaration.
Como el valor inicial de la ciudad seleccionada (SelectCity//Name) es UTC Time (ver archivo XML), inicializamos el nodo SelectCity//Time con la hora UTC actual.
Since the initial value of the selected city (SelectCity//Name) is UTC Time (see the XML file), we initialize the SelectCity//Time node with the current UTC time.
Después de eso, inicializamos una nueva instancia de Loader3D y le agregamos funciones de escucha que se activarán cuando se lance un Error al cargar un archivo 3D por completo.
After that, we initialise a new Loader3D instance, and add listeners to it which trigger when it fires an Error when a 3D file has completely loaded.
En este ejemplo diseñamos el cliente HTTP como un objeto static y lo inicializamos con en un método init() estático, que es llamado por el init() de JavaHTTPApplication tal como se describió con anterioridad.
In this example we made the Http client a static object and initialized it in a static init() method, which gets called by the init() of JavaHTTPApplication as described above.
Inicializamos una instancia Student invocando el inicializador personalizado que definimos anteriormente en la clase Persona.
We initialize a Student instance by invoking the custom initializer defined in the Person class.
Inicializamos una instancia de Boat, la asignamos a boat1, y establecemos su propiedad speed en 11.0.
We initialized a Boat instance, assigned it to boat1, and set its speed property to 11.0.
Inicializamos una instancia de la clase y le pedimos el UUID como una cadena invocando a UUIDString().
We initialize an instance of the class and ask it for the UUID as a string by invoking UUIDString().
Palabra del día
la lápida