iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
pencilxu
V2EX  ›  iDev

请问如何实现 ios 版本知乎日报首页 section header view 和 navigation bar 重叠变化的效果?

  •  
  •   pencilxu · Mar 26, 2015 · 3806 views
    This topic created in 4089 days ago, the information mentioned may be changed or developed.
    知乎日报首页上,除了第一个section header view是直接不显示,后面的section header view顶上去的时候在navigation bar上标题部分也能看到文字顶上去的效果

    我自己目前想了一些办法,比如把table的style设置为plain,然后去通过当前section header view的位置来替换navigation bar的标题,但是那个文字顶掉的效果不知道如何实现好,请问是否有比较优雅的方式来实现?

    我目前接触ios也不久,也在不断学习一些新的界面效果。所以能否提供一个思路给我?谢谢
    Supplement 1  ·  Mar 26, 2015
    又操作了几遍知乎日报,貌似有简单的办法来完成,把section header view的高度设为44 point和navigation bar一致,然后通过contentInset把section header view位于navigation bar的背后,最后把navigation bar设置为透明
    parkman
        1
    parkman  
       Mar 27, 2015
    都可以啦
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   876 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:10 · PVG 05:10 · LAX 14:10 · JFK 17:10
    ♥ Do have faith in what you're doing.