Coder Social home page Coder Social logo

yzpulldownmenudemo's Introduction

yzpulldownmenudemo's People

Contributors

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

yzpulldownmenudemo's Issues

dealloc方法不执行

导致子控制器的dealloc方法也不执行,退出页面第二次打开的时候点击TableView的cell导致崩溃

加上导航控制器,然后第二次push进来之后,必奔溃

加上导航控制器,然后第二次push进来之后,必奔溃,报错的原因和我的一样的.原因是YZPullDownMenu.m里的self.controllers保存的是第一次push进来的自控制器,第二次push进来的时候, NSInteger col = [self.controllers indexOfObject:note.object]; 取不到索引,然后紧接着 UIButton *btn = self.menuButtons[col]; 就会报数组越界的错误
2222

点击时崩溃

发生在这一句代码:
// 获取对应按钮
UIButton *btn = self.menuButtons[col];

'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 9223372036854775807 beyond bounds [0 .. 1]'

循环引用问题解决方法

在YZPullDownMenu.m里setup方法
_observer上一行__weak typeof(self) weakSelf = self;
_observer的回调方法里self改weakSelf
完成

应用崩溃

YZPullDownMenu中的setup方法,在通知的回调block中强引用了self,导致self不能释放,也不能移除观察者,当项目中有多个地方使用了YZPullDownMenu时会导致应用崩溃。

自定义button可以再加一点

自定义的button中有个layoutSubViews,在super的下面,最好加上
if(self.imageView.image == nil) {
return;
}
如果不加,当button没有图片时,文字不会居中,而是紧靠左边!

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.