¿Cómo agregar etiquetas en BWWalkthrough View Controller con Swift 3?
yo sueloBiblioteca BWWalkthrough para imágenes de diapositivas en mi aplicación. yoagregar etiquetas de título y mensaje en cada diapositiva
me gustaríatraducir a cada etiqueta
Entonces, arrastro la etiqueta aIBOutlet
y agrego texto de NStranslation enViewDidLoad
.
Pero, cuando ejecuto el código, recibí un error fatal.
Aquí está mi código.
EnBWWalkthroughPageViewController.swift
,
@IBOutlet weak var lblTitle1: UILabel!
override open func viewDidLoad() {
super.viewDidLoad()
lblTitle1.text = NSLocalizedString("Date:", comment: "")
self.view.layer.masksToBounds = true
subviewsSpeed = Array()
for v in view.subviews{
speed.x += speedVariance.x
speed.y += speedVariance.y
if !notAnimatableViews.contains(v.tag) {
subviewsSpeed.append(speed)
}
}
}
Recibí un error en estos códigos siguientes(BWWalkthroughViewController.swift).
viewController.view.translatesAutoresizingMaskIntoConstraints = false
ylblTitle1.text = NSLocalizedString ("Fecha:", comentario: "")
¿Alguien podría ayudarme por favor?