国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

IOS繪圖——簡單三角形

2019-11-14 19:32:57
字體:
來源:轉載
供稿:網友

#import <UIKit/UIKit.h>

 @interface MyView : UIView

@end

 

#import "MyView.h"

@implementation MyView

- (instancetype)initWithFrame:(CGRect)frame {

    self = [super initWithFrame:frame];

    if (self) {

        // Initialization code

    }

    return self;

}

 

- (void)drawRect:(CGRect)rect {

    

    CGContextRef context = UIGraphicsGetCurrentContext();

    CGContextMoveToPoint(context, 75, 10);

    CGContextAddLineToPoint(context, 10, 150);

    CGContextAddLineToPoint(context, 160, 150);

    

    

    CGContextClosePath(context);

    [[UIColor blackColor] setStroke];

    [[UIColor redColor] setFill];

    CGContextDrawPath(context, kCGPathFillStroke);

}

 

 

@end

 


 

我的CSDN博客地址:http://blog.csdn.net/qw963895582/article


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 湄潭县| 肇庆市| 勐海县| 马关县| 永靖县| 理塘县| 扎赉特旗| 疏勒县| 鸡西市| 钦州市| 盐亭县| 彰武县| 英吉沙县| 百色市| 徐水县| 太原市| 丁青县| 石城县| 区。| 辉南县| 本溪市| 沾化县| 勃利县| 桦甸市| 西乌| 江都市| 益阳市| 民勤县| 尉犁县| 施秉县| 谷城县| 阿拉善盟| 墨脱县| 云阳县| 武汉市| 镇巴县| 平武县| 桂平市| 甘南县| 开原市| 湘西|