ios - Scroll View and View Hierarchies in Swift -
i have uiimageview in custom cell in uitableview. want have uiscrollview can display multiple photos horizontally within custom table cell.
what's correct way approach problem? multiple uiimageviews go on top of scroll view? i'm using storyboards happy programmatically if easier.
if you're talking scroll view being horizontal, go it! however, i'd avoid having nested vertical scroll views - creates confusing ux user in experience.
you can read here https://developer.apple.com/library/ios/documentation/windowsviews/conceptual/uiscrollview_pg/nestedscrollviews/nestedscrollviews.html
with regards how achieve this:
create custom subclass of uitableviewcell
, , set view how want. include tableview
. need make controller custom cell, , have inherit protocols required tableview
Comments
Post a Comment