ios16百度浏览器没有边框

ios16百度浏览器没有边框,第1张

1、首先打开手机,进入到版本为ios16百度浏览器内。

2、其次在浏览器工具栏的右侧空白处点鼠标右键,出现一个快捷菜单,看“地址栏”前面有没有打钩

3、最后取消打钩选项即可有边框了。

- (void)addDottedLineFromImageView:(UIView *)bView {

    bView.layer.cornerRadius = 4

    CAShapeLayer*borderLayer =  [[CAShapeLayeralloc]init]

    borderLayer.bounds= bView.bounds

    borderLayer.position=CGPointMake(bView.centerX, bView.centerY)

    borderLayer.path = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0,0, 68, 68) cornerRadius:4].CGPath

    borderLayer.lineWidth=1

    //虚线边框---小边框的长度

    borderLayer.lineDashPattern = @[@6,@4]//前边是虚线的长度,后边是虚线之间空隙的长度

    borderLayer.lineDashPhase=0.1

    borderLayer.fillColor=UIColor.clearColor.CGColor

    borderLayer.strokeColor=BSHexColor(0xA6A8AB).CGColor

    [bView.layeraddSublayer:borderLayer]

}

在- (void)viewDidLoad中---->

self.myImageView.layer.borderWidth =2.0f//设置边框宽度

self.myImageView.layer.borderColor = [UIColor redColor].CGColor//设置边框颜色


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/bake/11382385.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-15
下一篇2023-05-15

发表评论

登录后才能评论

评论列表(0条)

    保存