ios - 如何使用 ImageSlideshow 和标签

标签 ios swift

我正在使用这个库作为幻灯片:

ImageSlideshow

现在,我想在上面添加标签,但显示在图像后面:

enter image description here

enter image description here

我无法更改位置 label titleimage slider

最佳答案

You can call label to front by

试试这个

self.view.bringSubview(toFront: yourlabel)

或使用

yourimageslider.bringSubview(toFront: yourlabel)

或使用

yourscrollviewName.bringSubview(toFront: yourlabel)

You can send image view to the back by or could use

self.yourscrollviewName.sendSubview(toBack: yourImagesliderName)

关于ios - 如何使用 ImageSlideshow 和标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42604538/

相关文章:

ios - player-swift库,如何调整播放速率

swift - 如何仅在执行另一个代码块后才执行一个代码块

ios - 自定义点赞按钮 IOS SDK

ios - AVFoundation:将文本添加到 CMSampleBufferRef 视频帧

ios - 应用程序可以在不让用户知道电子邮件地址的情况下发送电子邮件吗?

iOS applicationWillEnterBackground 在哪里定义?什么时候叫?

swift - MapKit 中的中心位置在 UiLabel 中不可见

ios - 函数中的嵌入式开关,如何检索返回值?

ios - 自定义类 "Cannot find interface declaration"中无法识别 Objective-C 类别方法

android - 如何使用蓝牙将手机宣传为不同的设备?