Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How would i make this work in PSCollectionView #19

Closed
prnk28 opened this issue Apr 16, 2013 · 17 comments
Closed

How would i make this work in PSCollectionView #19

prnk28 opened this issue Apr 16, 2013 · 17 comments

Comments

@prnk28
Copy link

prnk28 commented Apr 16, 2013

- (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!

@Sean-Wang
Copy link

I think you must change a little source of PSCollectionView. And I will pull request a Demo show how to work ASAP.

@prnk28
Copy link
Author

prnk28 commented Apr 17, 2013

Thank you, the help is appreciated!

@prnk28
Copy link
Author

prnk28 commented Apr 17, 2013

Sorry to burden you but how long will it take?

@prnk28
Copy link
Author

prnk28 commented Apr 18, 2013

Have you finished yet @Sean-Wang the development of my application depends on this!!!???!!?

@Sean-Wang
Copy link

@prnk28 Sorry about my delay.

@prnk28
Copy link
Author

prnk28 commented Apr 18, 2013

@Sean-Wang No problem just making sure you were still there :)

@Sean-Wang
Copy link

@prnk28 Today, I will pull request.

@prnk28
Copy link
Author

prnk28 commented Apr 18, 2013

@Sean-Wang Okay!

@Sean-Wang
Copy link

@prnk28 I pulled a simple demo ( #20 ) for PSCollectionView. Have fun!

@prnk28
Copy link
Author

prnk28 commented Apr 19, 2013

@Sean-Wang My app is Arc enabled and this code didnt work, and/or how would i have both arc and not arc in the same application.

@prnk28
Copy link
Author

prnk28 commented Apr 19, 2013

@Sean-Wang I found that your demo uses both ARC and non-ARC

@Sean-Wang
Copy link

My demo project aslo use ARC, but JSONKit is not support ARC, so you must add -fno-objc-arc compiler flags for JSONKit. @prnk28

@prnk28
Copy link
Author

prnk28 commented Apr 19, 2013

@Sean-Wang sorry im new where would i put that under :)

@Sean-Wang
Copy link

@prnk28 Good luck and have fun!

@prnk28
Copy link
Author

prnk28 commented Apr 21, 2013

@Sean-Wang I got it to build correctly and instead of Interface Builder i am using storyboards for my app is there anything i have to do because nothing shows up when i run my code!

@Sean-Wang
Copy link

@prnk28 Sorry, I have not used Storyboard.

@prnk28
Copy link
Author

prnk28 commented Feb 2, 2024

I'm finally closing this issue

@prnk28 prnk28 closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants