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

HeaderView not visible #54

Closed
DomenicoGranito opened this issue Jun 7, 2017 · 8 comments
Closed

HeaderView not visible #54

DomenicoGranito opened this issue Jun 7, 2017 · 8 comments

Comments

@DomenicoGranito
Copy link

I implemented this functionality on table view. i outlet my header view and map it with GSKStretchyHeaderView and add as a subview on table view.

When we go to view controller header not visible then i scroll table view then header visible and invisible. i am using auto layout in header view.

can you tell me what is the problem?

@gskbyte
Copy link
Owner

gskbyte commented Jun 7, 2017

Hi, without looking at the code I can not tell. Try to use the view debugger to see if the view is really added to your table view and check that the class is properly set in interface builder. You can also check the example for reference.

@DomenicoGranito
Copy link
Author

DomenicoGranito commented Jun 7, 2017

screen shot 2017-06-07 at 7 19 47 pm
Yes it is visible but only on scroll

@DomenicoGranito
Copy link
Author

DomenicoGranito commented Jun 7, 2017

simulator screen shot jun 7 2017 7 23 10 pm
simulator screen shot jun 7 2017 7 23 23 pm

@IBOutlet var itemsTbl:UITableView?
@IBOutlet var headerLbl:UILabel?
@IBOutlet var topImageView:UIImageView?
@IBOutlet var shufflePlayButton:UIButton!
@IBOutlet var headerView:GSKStretchyHeaderView!

itemsTbl?.addSubview(headerView)

@DomenicoGranito
Copy link
Author

all the other things working like content shrink and expand but header view not visible when i come to table view and it is only visible when i scroll

@gskbyte
Copy link
Owner

gskbyte commented Jun 7, 2017

weird, it seems to be some layout issue. As I said before, try to use the view debugger or just force a layout on viewWillAppear

@gskbyte
Copy link
Owner

gskbyte commented Jun 8, 2017

Hi, did you manage to fix your problem?

@DomenicoGranito
Copy link
Author

Yes it solved when i checked using view debugger. thanks for giving me clue.

@gskbyte gskbyte closed this as completed Jun 10, 2017
@gskbyte
Copy link
Owner

gskbyte commented Jun 10, 2017

You're welcome! Have fun!

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