如何在Cocoa OSX中创建水平滚动照片集? [英] how do I create a horizontal scrolling Photo collection in Cocoa OSX?

查看:244
本文介绍了如何在Cocoa OSX中创建水平滚动照片集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您查看当前版本的Facebook iOS应用程序的Compose视图,您会看到它有一个水平滚动视图,显示附加的照片。在它,你不仅可以滚动,还可以通过拖放更改照片的顺序。有人可以解释一下我如何在Cocoa OSX中创建类似的东西?只是基础,哪些View可能是这样的起点?

If you look into the Compose View of the current Version of the Facebook iOS app, you will see that it has a horizontal scrolling View that shows attached Photos. In it you can not only scroll but also change the order of the photos via drag and drop. Can someone explain to me how I can create something similar in Cocoa OSX? Just the basics, which View could be the starting point for something like this?

推荐答案

以前,我将开始旋转90度的NSTableView。现在,NSCollectionView应该是你的出发点。您可以获得水平滚动,NSCollectionViewCells在其中绘制您的照片,以及编辑行为重新排序。

Previously, I would've started with an NSTableView rotated 90 degrees. Nowadays, NSCollectionView should be your starting point. You can get horizontal scrolling, NSCollectionViewCells in which to draw your photos, and editing behavior for re-ordering.

这篇关于如何在Cocoa OSX中创建水平滚动照片集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆