开发者

How do you design an interface with a list of varying width elements?

开发者 https://www.devze.com 2022-12-14 21:39 出处:网络
I want the interface to look something like the right side of the Things interface but the items in the list need to be of different widths. Is this achievable wi开发者_运维知识库th the Interface Buil

I want the interface to look something like the right side of the Things interface but the items in the list need to be of different widths. Is this achievable wi开发者_运维知识库th the Interface Builder or do I have to use drawing? I'd like as detailed an explanation as possible. Thanks!

Like this

How do you design an interface with a list of varying width elements?

:


Have a look at Steve Degutis's code over on SDListView on GitHub.

This is a subclass of NSCollectionView for a single column with variable height items.

I know it's only a link, but its as detailed an answer as the question.


NSTableView allows for varying-height rows using the tableView:heightOfRow: delegate method.

0

精彩评论

暂无评论...
验证码 换一张
取 消