AugustRush / UICollectionView-ARDynamicHeightLayoutCell

Automatically UICollectionViewCell size calculating.
MIT License
564 stars 86 forks source link

How to use without storyboard? #2

Closed sahil263 closed 9 years ago

sahil263 commented 9 years ago

I am using xibs in my project. I followed your guidelines. But, still I am not able to make it work with xib.

Please provide the details, for how to add it with xib.

AugustRush commented 9 years ago

Can you tell me the details of errors?

发自我的 iPhone

在 2015年6月6日,01:49,sahil sharma notifications@github.com 写道:

I am using xibs in my project. I followed your guidelines. But, still I am not able to make it work with xib.

Please provide the details, for how to add it with xib.

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

sahil263 commented 9 years ago

The collection view cells doesn't display any data...

AugustRush commented 9 years ago

You should registering a cell's nib if you use nib,or registering a cell's class if you have no nib,don't forget set the reuse identifier.my demo is using a nib without storyboard.

发自我的 iPhone

在 2015年6月6日,04:49,sahil sharma notifications@github.com 写道:

The collection view cells doesn't display any data...

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

sahil263 commented 9 years ago

Yes, I have registered the cell's nib in viewDidLoad of my ViewController class. I'll try to attach my code here (when I reach my work place).

AugustRush commented 9 years ago

Maybe your cell's autolayout constant isn't correctly.

发自我的 iPhone

在 2015年6月6日,07:54,sahil sharma notifications@github.com 写道:

Yes, I have registered the cell's bid in viewDidLoad of my ViewController class.

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

sahil263 commented 9 years ago

@AugustRush Ok, I'll look into it throughly.