Giter Site home page Giter Site logo

Comments (2)

TinyQ avatar TinyQ commented on May 22, 2024

你好,这个应该是手误打错了
[self.viewForExpand.subviews isEqual:cell]
应该是
[self.viewForExpand.superview isEqual:cell]

感谢你发现。多谢多谢。我已经更新了在Github上。
------------------ 原始邮件 ------------------
发件人: "杨東霖";[email protected];
发送时间: 2013年10月22日(星期二) 下午3:41
收件人: "TinyQ/TQMultistageTableView"[email protected];

主题: [TQMultistageTableView] 一点疑问。。。 (#1)

您好,感谢您无私的奉献,最近正好要用到类似的功能。在查看您的代码时,我遇到一些疑惑,可能是小弟才疏学浅,没能理解上去,望谅解。

(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { if (self.viewForExpand) { if ([self.selectIndexPath compare:indexPath] == NSOrderedSame && self.selectIndexPathIsOpen) { if (self.viewForExpand.superview && ![self.viewForExpand.subviews isEqual:cell]) { [self.viewForExpand removeFromSuperview]; } [cell addSubview:self.viewForExpand]; } else { if ([cell.subviews containsObject:self.viewForExpand]) { [self.viewForExpand removeFromSuperview]; } } } } 在以上代码中 有一个判断,[self.viewForExpand.subviews isEqual:cell]这里是一个NSArray和一个cell的比较,这是什么意思呢?

不知道我的问题有没有表述清楚,期待您的解答。


Reply to this email directly or view it on GitHub.

from tqmultistagetableview.

augustinelin avatar augustinelin commented on May 22, 2024

好的,感谢您能回复我。有机会可以一起交流一下,我qq号272194644,邮箱就是qq邮箱。

from tqmultistagetableview.

Related Issues (8)

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.