网站/小程序/APP个性化定制开发,二开,改版等服务,加扣:8582-36016

给View加自定义的网格线

应用介绍

    该源码案例是一个给View加自定义的网格线,源码XIYGridBackgroundView,在view上绘制需要的线 XIYGridBackgroundView *view1 = [[XIYGridBackgroundView alloc] initWithFrame:CGRectMake(20, 40, self.view.frame.size.width-40, 200)]; view1.lineNumber = XIYLineNumberMake(4, 3); 4条水平线(不包含上下边),3条竖直线 view1.strokeColor = [UIColor lightGrayColor]; view1.lineInsets = UIEdgeInsetsMake(0, 0, 0, 0); view1.borderColor = [UIColor lightGrayColor]; view1.borders = UIRectEdgeTop|UIRectEdgeBottom; view1.autoresizingMask = UIViewAutoresizingFlexibleWidth; [self.view addSubview:view1];

    立即下载

    请到会员中心签到后即可获得免费下载!

    相关下载

    评论 共有 0 条评论

    暂无评论
    0
    0
    0
    立即
    投稿
    发表
    评论
    返回
    顶部