Giter Site home page Giter Site logo

mkgraphicview's Introduction

MKGraphicView 蒙文图文混排

MKGraphicView - 依赖 SDWebImage - UIImageView+WebCache

  • info.plist 添加你的字体 Fonts provided by application

#import <MKGraphicView/MKGraphicView.h>

  • MKGraphicViewDelegate
click Image
- (void)attributedLabel:(nonnull MKGraphicView *)label selectedImage:(nonnull MKAttributedImage *)selectedImage;
click URL
- (void)attributedLabel:(nonnull MKGraphicView *)label selectedLink:(nonnull MKAttributedLink *)selectedLink; 
self.graphicView = [[MKGraphicView alloc]initWithFrame:CGRectMake(0, 44, self.view.bounds.size.width, self.view.bounds.size.height - 44 - 34)];
self.graphicView.textColor = [UIColor blackColor];
self.graphicView.numberOfLines = 9;
self.graphicView.lineSpacing = 10;
self.graphicView.imageSize = CGSizeMake(50, 50);
self.graphicView.font = [UIFont fontWithName:@"Menk-Har_a-Tig" size:20];
self.graphicView.linkFont = [UIFont fontWithName:@"Menk-Har_a-Tig" size:20];
self.graphicView.linkColor = [UIColor blueColor];
self.graphicView.highlightColor = [[UIColor blueColor]colorWithAlphaComponent:.5];
self.graphicView.text = @"CoreText                  CoreText  CoreGraphics      https://developer.apple.com/documentation/coretext [/https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1576038113840&di=9d45bf0999cb1e0ba96145fff7781811&imgtype=0&src=http%3A%2F%2Fimg3.coin163.com%2F96%2F90%2FzuQRJz.png] CoreGraphics  OSX  iOS              [/444.gif] CoreText                          (           )";
[self.view addSubview:self.graphicView];

// - 写的太乱整理好上传代码,先就静态包吧...

mkgraphicview's People

Contributors

amdrl avatar

Stargazers

ᠵᠠᠭᠠᠨᠵᠠᠪ ᠪᠤᠷᠵᠢᠭᠤᠳ ᠰᠠᠴᠤᠷᠠᠭ avatar 公众号:iOS逆向 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.