我想要这样的警报对话框。其中包含一个可点击的链接,例如蓝色突出显示的文本。当用户单击该文本时,它将在浏览器中打开一个链接。为此,我正在使用第三方库SimpleAlert
这是我的代码...
func popUpMsg(){
let msg = "\n Hi Rahul! Welcome back to the early access queue for the app, Once you've been accepted into the beta, we'll notify you using the contact info you have on file with Facebook. \n\n But just a second, if you haven't already done so, you can increase your odds of jumping ahead in the queue by telling us a little about yourself. Please complete our 4-question survey to give it a shot. …Run Code Online (Sandbox Code Playgroud) 我正在尝试围绕图像创建一个圆形进度条,如下面的屏幕截图所示。到目前为止,我已经设法使用下面的代码创建了一个带有绿色边框的圆形图像:
self.image.layer.cornerRadius = self.image.frame.size.width / 2
self.image.clipsToBounds = true
self.image.layer.borderWidth = 6.0
self.image.layer.borderColor = UIColor.greenColor.CGColor
Run Code Online (Sandbox Code Playgroud)
我的问题是,如何从边框创建一个圆形进度条而不是我设置的?或者我是否需要删除此边框并采取不同的方法?