小编Rah*_*ngh的帖子

如何使警报控制器中的可点击链接迅速

我的应用截图

我想要这样的警报对话框。其中包含一个可点击的链接,例如蓝色突出显示的文本。当用户单击该文本时,它将在浏览器中打开一个链接。为此,我正在使用第三方库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)

ios swift uialertcontroller

6
推荐指数
0
解决办法
4299
查看次数

左下角重叠单元格

我需要底部单元格为圆形并与上方单元格重叠。我尝试使用拐角半径和蒙版拐角,但没有给出结果。我附上了设计,如果有人可以帮助我。谢谢

在此处输入图片说明

uikit ios swift

5
推荐指数
1
解决办法
199
查看次数

快速在图像周围创建圆形进度条

我正在尝试围绕图像创建一个圆形进度条,如下面的屏幕截图所示。到目前为止,我已经设法使用下面的代码创建了一个带有绿色边框的圆形图像:

    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)

我的问题是,如何从边框创建一个圆形进度条而不是我设置的?或者我是否需要删除此边框并采取不同的方法?

像这样

uiimageview ios swift

1
推荐指数
1
解决办法
3133
查看次数

标签 统计

ios ×3

swift ×3

uialertcontroller ×1

uiimageview ×1

uikit ×1