Giter Club home page Giter Club logo

pscollectionview's Issues

just some questions

how can i add object with the exists items...

i mean i have NSMutable�Array for dataSource in page 1,

now i get page 2 data, i add the object to the items ,and use the reloadData method,and it don't work .

after reloadData,the view still display the old data (page 1),not the new data (page 1 + page 2).

somebody help me ??thanks ~!

Please add semantic version tags

I’ve recently added PSCollectionView to the CocoaPods package manager repo.

CocoaPods is a tool for managing dependencies for OSX and iOS Xcode projects and provides a central repository for iOS/OSX libraries. This makes adding libraries to a project and updating them extremely easy and it will help users to resolve dependencies of the libraries they use.

However, PSCollectionView doesn't have any version tags. I’ve added the current HEAD as version 0.0.1, but a version tag will make dependency resolution much easier.

Semantic version tags (instead of plain commit hashes/revisions) allow for resolution of cross-dependencies.

In case you didn’t know this yet; you can tag the current HEAD as, for instance, version 1.0.0, like so:

$ git tag -a 1.0.0 -m "Tag release 1.0.0"
$ git push --tags

How to add a UILabel in PSCollectionViewCell ?

Hi , there

Thanks so much for letting me know about this fantastic component "PSCollectionView".
I am getting troubles to add a label in PSCollectionViewCell.
How can I add this ?

Many thanks in advice..

Song.

can't support to ios4

when I run in simulator of ios4, it terminated with the error as below:

sendAsynchronousRequest:queue:completionHandler:]: unrecognized selector sent to class 0x967f18
2012-07-26 17:01:19.419 BroBoard[6282:b903] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSURLConnection sendAsynchronousRequest:queue:completionHandler:]: unrecognized selector sent to class 0x967f18'

What if the cell is UIWebView?

After UIWebView finished loading, it will called webViewDidFinishLoad and heightForViewWithObject need to recalculate again and maybe numberOfViewsInCollectionView need to be called again?

when has headerView, some cell can`not selected

i add a header for PSCollectionView, and cause a bug, the index 2 (sometimes other) cell have no selected event dispatch. i debug it, and found that it cause by the NSStringFromCGRect and CGRectFromString, the two method "not completely interchangeable"
i fix the bug by create a new method instead of NSStringFromCGRect. and all is ok.

+(NSString *)toString:(CGRect)frame{
return [NSString stringWithFormat:@"{{%f, %f}, {%f, %f}}", frame.origin.x, frame.origin.y, frame.size.width, frame.size.height];
}

i got signal sigabrt

this line;
-[NSNull sizeWithFont:constrainedToSize:lineBreakMode:]:

lldb output:

2012-07-14 10:08:47.278 BroBoard[8913:f803] -[NSNull sizeWithFont:constrainedToSize:lineBreakMode:]: unrecognized selector sent to instance 0x146cce8
2012-07-14 10:08:47.279 BroBoard[8913:f803] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull sizeWithFont:constrainedToSize:lineBreakMode:]: unrecognized selector sent to instance 0x146cce8'
*** First throw call stack:
(0x13d6022 0x1567cd6 0x13d7cbd 0x133ced0 0x133ccb2 0x9340 0x4111 0x5ba2 0x51cd 0x3e85 0x3d6c 0xa2155e 0x95e63e 0x9571e7 0x956eea 0x9e70ad 0x3d9c330 0x3d9e509 0x130d803 0x130cd84 0x130cc9b 0x12bf7d8 0x12bf88a 0x20626 0x2b22 0x2a95)
terminate called throwing an exception(lldb)

maybe something wrong with the label size.

pod

could you plz make it pod

Missing classes

Hi, in PSCollectionViewCell.h missing PSView
in PSCollectionView.m - UIView+PSKit.h

Can I get it somewhere?

Thanks

Flickers on reloadData and reuse identifier not present

Hi,
I found this written in your code.

/**
Stores a view for later reuse
TODO: add an identifier like UITableView
*/

  • (void)enqueueReusableView:(PSCollectionViewCell *)view;

In current code, this is not is taken care and its not using any identifier like UITableViewCell uses.
Can you please guide me so that i can do it, if nobody is doing it ?
Or if done can you point me to the correct code.

I don't exactly know how to add identifier and add code in -prepareForReuse() function.
The problem is, because of this i get a flicker while calling reloadData and it doesn't looks good.

How would i make this work in PSCollectionView

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return tweets.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"TweetCell";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
    }

NSDictionary *tweet = [tweets objectAtIndex:indexPath.row];
NSString *text = [tweet objectForKey:@"text"];
NSString *name = [[tweet objectForKey:@"user"] objectForKey:@"name"];

cell.textLabel.text = text;
cell.detailTextLabel.text = [NSString stringWithFormat:@"by %@", name];

return cell;
}

P.S. When is the example/demo app coming out!

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.