vlasov / CCBottomRefreshControl

MIT License
319 stars 77 forks source link

position of refresh control changes on orientation change #8

Closed AlexanderZubkov closed 9 years ago

AlexanderZubkov commented 9 years ago

UITableView changes it's frame on orientation change but refresh control does not. I use auto layout. Any idea how to change control's position or make it follow tableview?

AlexanderZubkov commented 9 years ago

I even tried

But with no luck... Any idea?

vlasov commented 9 years ago

Thank you, Alex!

I’ve got a bug, and I’ll fix it soon. Maybe tomorrow.

Nick.

On 13 марта 2015 г., at 14:11, AlexanderZubkov notifications@github.com wrote:

I even tried

(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { self.tableView.bottomRefreshControl = nil; }

(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { UIRefreshControl *bottomRefreshControl = [UIRefreshControl new]; [bottomRefreshControl addTarget:self action:@selector https://github.com/selector(refreshBottom) forControlEvents:UIControlEventValueChanged];

self.tableView.bottomRefreshControl = bottomRefreshControl; }

But with no luck... Any idea?

— Reply to this email directly or view it on GitHub https://github.com/vlasov/CCBottomRefreshControl/issues/8#issuecomment-78899333.

AlexanderZubkov commented 9 years ago

Thank you, Nick! Really waiting for it!

vlasov commented 9 years ago

Thank you for your patience. I've deeply reworked whole implementation. Now it works way better and smoother. Autolayout bug was also fixed. Please welcome version 0.4.1