ios6 - 风格 View 像 iPhone 应用商店应用程序吗?

标签 ios6 uicollectionview

我想要设计一个类似于 iPhone Appstore 应用程序的 View 。我不明白 View 是如何使用 IB 放置的,还是以编程方式放置的。

Appstore Featured View

我不知道。它们是放置在 ScrollView 上的多个 Collection View ,还是具有某种自定义布局或 TableView 的一个 Collection View 。 此外,每个 Collection View 都是水平滚动的,并且顶部有标题类型,可以单击“查看全部”> ..它不能是标题补充 View ,因为它会在左侧,因为滚动是水平滚动而不是在顶部..如何这是完成了吗

谢谢

最佳答案

每一行都是一个自定义的UITableViewCell,其中包含水平UITableView,并且该水平UITableView还有另一个自定义UITableViewCell代表水平列表上的一个应用程序。因此,用户能够进行垂直和水平滚动。

对于 header 类型和“查看全部”按钮,您可以使用以下 UITableViewDelegate 方法:

-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

下面的文章使用 UITableView 和包含水平 UITableViewUITableViewCell 进行类似的输出。

http://www.raywenderlich.com/4723/how-to-make-an-interface-with-horizontal-tables-like-the-pulse-news-app-part-2

关于ios6 - 风格 View 像 iPhone 应用商店应用程序吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14131504/

相关文章:

iphone - 提交第一个 iOS 应用程序。我需要做什么?

iOS7 SDK force Landscape for viewController

即使被告知不要旋转,iOS6 方向仍然旋转

ios - swift 中 UICollectionView 单元格内的 UITextField 值

ios - 快速在单个 Storybord 中使用 2 个不同的 UICollectionView

ios - uicollectionview奇怪的差距

iphone - ios5中如何使用identifierForVendor?

iphone - xcode ios 6 摇动运动从以前的 View 调用 IBaction

iOS SWIFT - CollectionView 特定单元格通过触摸扩展

ios - UICollectionView 嵌入在 UITableViewCell 中!无法从 tableview 单元格中呈现 viewcontroller!回电