user4151918
user4151918

Reputation:

Can UIStackView also be used within a UITableViewCell?

Can UIStackView be used to resize, reposition, or collapse views within a UITableViewCell?

Upvotes: 22

Views: 22125

Answers (2)

raja
raja

Reputation: 1161

  • You can use, because UIStackView is a subclass of UIView.
  • We can create a UIStackView with all its arrangedViews and layout properties, place it as a contentview of UITableViewCell.

Upvotes: 4

user023
user023

Reputation: 1490

Yes its possible.
Take a look at the WWDC15 video. They demonstrate the use of a UIStackView within a UITableViewCell. It's around 5:00

WWDC 15 - Implementing UI Designs in Interface Builder

Upvotes: 25

Related Questions