【问题标题】:Is Instagram stories in UICollectionView or UIPageViewController? [closed]UICollectionView 或 UIPageViewController 中的 Instagram 故事? [关闭]
【发布时间】:2018-04-12 14:39:21
【问题描述】:

我想制作 app 之类的故事。我看到有些人说UIPageViewController 意味着有限的观点。我还发现,当滚动到另一个时,UIPageViewController 中的加载图像很慢。 UICollectionViewUIPageViewController 有什么区别?什么时候使用一个而不是另一个?

我应该用什么来制作像应用程序这样的故事?

【问题讨论】:

  • "在 UIPageViewController 中加载图片很慢" 如果您使用的是异步图片加载,这应该不是问题。
  • 另外,我很确定他们没有为此使用 UICollectionView。我的猜测是一种类似于 UIPageViewController 的机制,具有页面之间的自定义转换。
  • UIPageViewController 是否支持自定义过渡动画?

标签: ios objective-c swift uicollectionview uipageviewcontroller


【解决方案1】:

Instagram 是一个收藏视图。根本不使用表格视图。这是一个来自 instagram 的开源库,用于为他们的应用程序提供动力:

https://github.com/Instagram/IGListKit

我还附上了从参考指南中截取的屏幕截图。

还有网址:

https://instagram.github.io/IGListKit/getting-started.html

【讨论】:

  • 我们不是在谈论 tableviews,而是在这里谈论 pageviewcontroller。
  • @John 是的,我明白了,但人们通常认为 feed 是 Tableview,但作为 feed 的 IG 故事是 CollectionViews
猜你喜欢
  • 2013-08-26
  • 2012-04-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-10-21
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多