Coder Social home page Coder Social logo

tmquiltview's People

Contributors

bvirlet avatar readmecritic 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  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

tmquiltview's Issues

Cell disappear (serious bug)

In original demo project

Change number of cell

- (NSInteger)quiltViewNumberOfCells:(TMQuiltView *)TMQuiltView {
    return 3; // [self.images count];
}

Change the height of cell

- (CGFloat)quiltView:(TMQuiltView *)quiltView heightForCellAtIndexPath:(NSIndexPath *)indexPath {
    return 100; //[self imageAtIndexPath:indexPath].size.height / [self quiltViewNumberOfColumns:quiltView];
}

After scroll to top to so that first two cell hidden then release scrolling, the second cell is disappeared.

iOS 7 / ARC Compatible?

Love this library! Want to use it for an app I am building, but can you update it to be more compliant with ARC and iOS 7? Thanks!

1 photo disappears

Modify TMDemoQuiltViewController to have only one cell:

const NSInteger kNumberOfCells = 1;

Run the demo project and scroll up the view until you completely hide the photo in the upper margin. It seems as if the photo doesn't come back down.

Label burry

After adding UILabel to the TMQuiltViewCell view, text getting blurred on right list of the view.

two issues

the first one, each append datas, the view will calculate cell's frame from index 0.
the second, drag up the scroll view and make the last cell out of visible view , then move up your fingers you'll find all of cells is remove from supperview.

How to know which cell was clicked?

Hello i want to display the image in a uiimageview when the user click on an image. How do i know which cell index was clicked? Mant thanks :)

TMQuiltView memory leak

dealloc code releases _reusableViewsDictionary first, but then cleanupColumns code path will re-create the dictionary and leak all objects in it. The fix is to move cleanupColumns to the beginning of dealloc.

  • (void)dealloc {
    [_indexPaths release], _indexPaths = nil;
    [_reusableViewsDictionary release], _reusableViewsDictionary = nil;
    [_rowsToInsert release], _rowsToInsert = nil;
    [_rowsToDelete release], _rowsToDelete = nil;

    [self cleanupColumns]; <== leaks _reusableViewsDictionary

    [self removeGestureRecognizer:self.tapGestureRecognizer];
    [_tapGestureRecognizer release], _tapGestureRecognizer = nil;

    [super dealloc];
    }

TMQuiltView should cache the heightForCellAtIndexPath

TMQuiltViewDelegate have protocol: - (CGFloat)heightForCellAtIndexPath:(NSIndexPath *)indexPath;. And it result a performance issue if the height need a calculation according to cell content. The currently implementation simply request the method every time it layoutSubView(though rectForCellAtIndex).

Like UITableView, it should call once for each indexPath and cache it. Prevent re-calculation during scroll. The cache should be clear after the user call follow method:

- (void)beginUpdates;
- (void)resetView;

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.