【问题标题】:How to move the collection view cell below battery icon in storyboard如何在情节提要中将集合视图单元格移动到电池图标下方
【发布时间】:2014-05-03 06:43:24
【问题描述】:

这可能是一个愚蠢的问题。在书籍中,它显示了以下集合视图单元格的屏幕截图,

!

您可以看到集合视图单元格位于电池图标下方。

但是,当我在故事板中尝试时,它显示如下。

!

集合视图单元格与面糊图标线重叠。

似乎我无法移动集合视图单元格。

如何将它移到电池图标线下方一点?

谢谢。

【问题讨论】:

    标签: ios objective-c cocoa-touch uicollectionviewcell


    【解决方案1】:

    UICollectionView的框架的条件放在下面。

    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) 
       collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(x, 20, width, height)];         
    else          
       collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(x, 0, width, height)];
    

    要深入了解,请参阅以下问题/答案;

    iOS 7 status bar overlapping UI
    iOS 7 - Status bar overlaps the view
    Status bar and navigation bar issue in IOS7
    Storyboard-set iOS 7 Status Bar not shown in right style
    Storyboard app run on iOS 7 OK but Navbar shift view on iOS 6.1

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-08
      • 1970-01-01
      • 2012-12-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-08
      相关资源
      最近更新 更多