在我的应用程序中,我想在单个UIButton
上添加多个图像。Swift将多个图像添加到单个UIButton中
这是我现在有:
NextButton = UIButton(frame: CGRect(x: width*0, y: height*0.55, width: width*0.95, height: height*0.05))
NextButton.addTarget(self, action: #selector(OnNextPressed), for: .touchUpInside)
NextButton.isExclusiveTouch = true
NextButton.setTitle("ButtonText", for: UIControlState())
NextButton.setTitleColor(UIColor(red:0, green:0, blue:0, alpha:1.0), for: UIControlState())
NextButton.setBackgroundImage(UIImage(named: "ButtonOutline"), for: .normal)
view.addSubview(NextButton)
我想将第二图象作为一个箭头指向下一个页面。 在此先感谢:)
按钮作品的其余部分,但我不知道如何使箭头出现
如果您提供了您拥有的内容和想要获得的内容的屏幕截图,那就太好了。 –
1秒生病只是预览 –