LGRefreshView
LGRefreshView copied to clipboard
Autolayout & Interface Builder
Hi,
I implemented the library following this code
refreshView = LGRefreshView(scrollView: self.tableView, delegate: self)
And my tableview is built in a xib file
But the loading indicator is not centered, i think it's centered from interface builder with instead of real runtime width (i already encoutered this bug/feature ? on iOS development and didn't found any nice solution).
So my app is rendering like that i-and i don't know how to align center horizontal the loading indicator
I forgot to mention that my tableview is builded in a xib file that be loaded as a subview of a custom UIView
I found an alternative to be unstuck, i deleted my xib and coded my tableview from code and added constraint manually, it works perfectly.
I didn't close the issue because i think we need more test with xib , and i think it's not a library bug but a bad usage and if i find something i will make a pull request for the sample app or readme.md to cover this case