Git Product home page Git Product logo

vcpicker's Introduction

你好,世界 👋

  • 📙 Focusing on Swift & iOS
  • 🔨 Creator of applications and frameworks
  • 🐏 Founder of BudSwift
  • ☕ cola & coffee lover

vcpicker's People

Contributors

beforeold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

frankzhuo zcgong

vcpicker's Issues

代码问题

  • (void)DarkAnimation{
    __block typeof(self) Self = self;
    [UIView animateWithDuration:1.5f animations:^{
    Self.backgroundView.backgroundColor = [Self.backgroundView.backgroundColor colorWithAlphaComponent:0.6f];
    } completion:^(BOOL finished) {
    [Self HighlightAnimation];
    }];
    }
    一、__block是block里面改self才用啊,没有改self不用写吧,

二、看代码貌似是想解决循环引用,应该这样写才对吧
__weak typeof(self) weakSelf = self;

三、不是遇到block在里面用self都会产生循环引用, [UIView animateWithD 这个方法里,block持有self,但self不持有这个block,所以不会循环引用

crash

下面是日志
2018-03-23 15:52:46.236908+0800 TestVCPicker2[63310:3876984] [VCPicker exception: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[3]]

是在调用- (void)findAndShowControllers 方法导致的

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.