S.M_Emamian
S.M_Emamian

Reputation: 17393

How to use ImageSlideshow and a label

I'm using this library as slideshow:

ImageSlideshow

now,I want to add label over it but that show behind of image :

enter image description here

enter image description here

I cannot change position label title and image slider.

Upvotes: 1

Views: 565

Answers (2)

KGen
KGen

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

Anbu.Karthik
Anbu.Karthik

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

Related Questions