# DashLine **Repository Path**: juwenz/DashLine ## Basic Information - **Project Name**: DashLine - **Description**: Customize Dash Line - **Primary Language**: Objective-C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-05-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DashLine 使用 `UIBezierPath` 和 `CAShaperLayer` 来自定义虚线,功能和使用到很简单,如下 DashLine *line = [[DashLine alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 1)]; line.center = self.view.center; line.dashColor = [UIColor redColor]; [self.view addSubview:line]; 在手机或者模拟器上运行会得到如下效果 ![Alt image](http://git.oschina.net/juwenz/DashLine/blob/master/screen.png) 如果发现任何问题或者需要添加新功能,可以在issue里面反馈,我会及时处理