Code Monkey home page Code Monkey logo

zjgenwoyou's Introduction

#ZJGenWoYou

轮播图的使用

  =========   轮播图调用该方法 =========
        let customView = CustomSliderView.init(frame: CGRectMake(0, 0, UIScreen.mainScreen().bounds.width, 300), type: SliderViewSourceType.SourceTypeLocalSource, imageArray: imageArray, sliderTime: 3.0)
        customView.delegate = self
        self.view.addSubview(customView)

SDWebImage 的导入

  1. 上网下载SDWebImage包。下载地址:https://github.com/rs/SDWebImage
  2. 找到SDWebImage.xcodeproj,并加入项目中
  3. 在Build Phases中的Link Binary With Libraries选项卡中,加入ImageIO.framework、libSDWebImage.a
  4. 在Build Settings中的Linking选项卡中找到Other Linker Flags,双击右边区域,在弹出的框中点击+按钮,输入-ObjC
  5. 在我们的项目中添加一个h文件,取名为“SDWebImage+Header.h”,打开头文件,引入#import <SDWebImage/UIImageView+WebCache.h>
  6. 在Build Settings 中 找到并双击Object-C Bridging Header 输入相对路径("$(SRCROOT)/当前工程名字/需要包含头文件所在文件夹")

zjgenwoyou's People

Contributors

liguoliangios avatar qwe12369 avatar

Watchers

 avatar  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.