-
Notifications
You must be signed in to change notification settings - Fork 945
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
Register custom cell #8
Comments
Hi @dkcas11 Thanks. |
Hey @WenchaoD I basically just copy/pasted your code in, from the README and use the frame from my existing UICollectionView (which i then set isHidden = true) and the same frame for pageControl too. The cell is here https://www.dropbox.com/s/9hp7kw9s5hl0lrw/Custom%20Cell.zip?dl=1 |
I have the same problem. I hope it will be handled quickly. self.pagerView.registerNib(UINib(nibName: "CustomPagerViewCell", bundle: nil), forCellWithReuseIdentifier: "cell") Value of type 'FSPagerView' has no member 'registerNib'" I wish that I wanted to implement it through NIB. |
Hey guys. The function |
@dkcas11 If you cannot find |
Yea, i forgot i had removed it again... D'oh.. :) |
Okay, so right now it works, but it looks like the normal square cells are still behind my custom cell? Apart from this it really works smooth and well! |
Hi @dkcas11
|
@WenchaoD |
@dkcas11 // Clear background colors in FSPagerViewCell subclass
self.contentView.backgroundColor = UIColor.clear
self.backgroundColor = UIColor.clear |
@WenchaoD
I have really run out of ideas of where the issue is.. |
Like This:
|
I have custom page cell, i added FSPageControll in my custom cell. But when i'm going to access to member of FSPageControll, the member is nil. I've created my custom XIB and put FSPageControll into that. But FSPageControl always nil. Why? Any Suggest? |
I had the same problem, this worked for me:
and do not forget to set reuseIdentifier inside xib. |
Hey,
I would like to use your library to implement centered cells with custom width, and infinite scrolling.
But trying to register my custom cell - that subclasses FSPagerViewCell - still produces a normal FSPagerViewCell. I cast the cell to my custom cell in cellForItemAt.
Also, for some reason i cannot scroll the PagerView?
Thanks :)
The text was updated successfully, but these errors were encountered: