SLPagingView icon indicating copy to clipboard operation
SLPagingView copied to clipboard

Layout is broken after dismiss view controller - swift

Open TequilarTomsk opened this issue 10 years ago • 4 comments

I'm coding on swift and using your storyboard to create an example but when present a modal view and dismiss it, the layout of view controllers is broken. Please help me solve this problem. Thank you

TequilarTomsk avatar Jun 18 '15 03:06 TequilarTomsk

Same issue here, but in Objective C. Did you manage to find a fix?

airlacodes avatar Jun 22 '15 09:06 airlacodes

Same problem when I come back to a table view controller from a detail view controller the layout is broken. Any ideas?

romain64 avatar Jul 22 '15 10:07 romain64

Fixed. It works if you use the files on the Github repo instead of cocopoads one. In the pod the [self addChildViewController:ctr] improvment doesn't seem to be done.

romain64 avatar Aug 04 '15 16:08 romain64

Keep a reference to the SLPagingViewController and use that to present the modal. Do not use a subview to present a modal, it will cause it to be malformed.

i.e Manager.shared.getMainVC().presentViewController(yourModal)

rogcui avatar Sep 30 '15 20:09 rogcui