Reputation: 17393
I'm using this library as slideshow:
now,I want to add label over it but that show behind of image :
I cannot change position label title
and image slider
.
Upvotes: 1
Views: 565
Reputation: 50
You can use
self.view.bringSubview(toFront:subViewObj)
subViewObj might be your label, But subViewObj should be added some where in root view. Here the root view is self.view.
Upvotes: 1
Reputation: 82756
You can call label to front by
try this
self.view.bringSubview(toFront: yourlabel)
or use
yourimageslider.bringSubview(toFront: yourlabel)
or use
yourscrollviewName.bringSubview(toFront: yourlabel)
You can send image view to the back by or could use
self.yourscrollviewName.sendSubview(toBack: yourImagesliderName)
Upvotes: 3