import UIKit
//运行效果
class LineView: UIView {
//定义一个数组用来向每一个单元格添加Label
var labeltext = ["关注","粉丝","动态","私信","设置"]
override func drawRect(rect: CGRect) {
var context = UIGraphicsGetCurrentContext()
//设置画布样式
import UIKit
//运行效果
class LineView: UIView {
//定义一个数组用来向每一个单元格添加Label
var labeltext = ["关注","粉丝","动态","私信","设置"]
override func drawRect(rect: CGRect) {
var context = UIGraphicsGetCurrentContext()
//设置画布样式