bennyguitar / CollapseClick

A collapsible list that functions like a UITableView, except you can collapse and open cells on a click. Feed it UIViews for what is shown when each cell is open. Works via delegation similar to UITableView.
MIT License
533 stars 83 forks source link

CollapseClickCell not loading #6

Open isarfaktor opened 11 years ago

isarfaktor commented 11 years ago

Hello, after doing all the steps, like you wrote, I got the message: "could not load NIB with name 'CollapseClickCell'

Did I miss something out? I don't think I have to configure one, do I?

bennyguitar commented 11 years ago

Is CollapseClickCell.xib added into your project?

isarfaktor commented 11 years ago

Hi, I included the files by using cocoa pods. there was no collapseclickcell.xib in this podfile included. so i tried it by manually adding it. same effect there.?

On Mar 29, 2013, at 11:06 PM, Ben Gordon notifications@github.com wrote:

Is CollapseClickCell.xib added into your project?

— Reply to this email directly or view it on GitHub.

bennyguitar commented 11 years ago

Good catch, it looks like I only included .m/.h files in the podspec. After adding it, you still get the same error?

isarfaktor commented 11 years ago

absolutely yes :) hm… i downloaded your file package from github and tried to add it manually, but it does not recognize the file at all… maybe I could give it a try again, after you've added the XIB to the podfile. Then I can give you feedback again.

On Mar 30, 2013, at 5:20 PM, Ben Gordon notifications@github.com wrote:

Good catch, it looks like I only included .m/.h files in the podspec. After adding it, you still get the same error?

— Reply to this email directly or view it on GitHub.

bennyguitar commented 11 years ago

The only thing I can think of, is that it may not be in the "Copy Bundle Resources" list inside of "Build Phases" when you click on the target. (located in the same place you add new frameworks)

The new podspec is updated to include the xib.

isarfaktor commented 11 years ago

Cool.. I give it a try and will give you feedback ASAP!

On Mar 30, 2013, at 6:17 PM, Ben Gordon notifications@github.com wrote:

The only thing I can think of, is that it may not be in the "Copy Bundle Resources" list inside of "Build Phases" when you click on the target. (located in the same place you add new frameworks)

The new podspec is updated to include the xib.

— Reply to this email directly or view it on GitHub.

AnasQ commented 11 years ago

I also get this error and I installed using CocoaPods. The xib is in the "Copy Bundle Resources" list in the Pods project.

temojin commented 11 years ago

i still have the same problems with pod version 1.0.1.

TimE90 commented 11 years ago

Same here! What to do?

morteza2128 commented 11 years ago

Use this code by Storyboard CollapseClickCell cell = [[CollapseClickCell alloc] initWithFrame:CGRectMake(0, 0, 320, kCCHeaderHeight)]; //cell = [views objectAtIndex:0]; UIStoryboard sto = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle: nil];

CustomCollapsCellViewController *col = [sto  instantiateViewControllerWithIdentifier:@"someidentifieryousetinIB"];

cell = col.collapseView;

but not work and give error that cell is null in CollapseClick.m

at this codes // Add to DataArray & isClickedArray [self.isClickedArray addObject:[NSNumber numberWithBool:NO]]; [self.dataArray addObject:cell]; <<<<<---- why @bennyguitar ???

HLGgithub commented 11 years ago

Same problem here.... "could not load NIB with name 'CollapseClickCell'