LoginSignup
0
0

More than 5 years have passed since last update.

UIBezierPathの背景を透明にする

Posted at

Main_storyboard3.png

いまいち役に立たないInterface Builderくんが役に立ってくれました。

ちなみにここではGraphViewというクラスを作り、そのプロパティにUIBezierPathを持たせています。

GraphView.swift
class GraphView: UIView {
    ...
    var graph: UIBezierPath!
GraphView.swift
    required init?(coder aDecoder: NSCoder) {
        graph = UIBezierPath()
        super.init(coder: aDecoder)
    }

というか、最初から透明にしてくれればいいのに?


ブログ書いてます:http://weed.nagoya

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0