search

Home  >  Q&A  >  body text

ios - 将UITabBarController的view添加到UIScrollView中,显示不出来,只有黑色。

在做新特性展示的时候,发现网易彩票这种显示完最后一张新特性图片后,可以继续滑动到tabbarcontroller,我试了但把tabBar控制的view添加到ScrollView之后,滑动的时候看到的只是黑色,不知为什么。没有像图片上一样显示了主界面的效果。

PHP中文网PHP中文网2827 days ago353

reply all(3)I'll reply

  • PHPz

    PHPz2017-04-17 17:30:53

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 17:30:53

    How about another way of thinking? It can be understood that this scrollView is a drawer effect

    Add scrollView as a child view of keyWindow

    You can take a look at my bad code

    https://github.com/loveuqian/ChouTiXiaoGuo

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:30:53

    Why should it be added to ScrollView?

    reply
    0
  • Cancelreply