V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
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
stevenlordiam
V2EX  ›  iDev

有人用过 RESideMenu 这个侧边菜单的库没?请教一个问题

  •  
  •   stevenlordiam ·
    stevenlordiam · 2015-08-03 06:12:47 +08:00 · 1540 次点击
    这是一个创建于 3195 天前的主题,其中的信息可能已经有所发展或是发生改变。

    感觉这个问题很新手,希望大家别嘲讽,给点意见
    按照https://github.com/romaonthego/RESideMenu 上面的指导添加了两个view controller, 但是点击某一个view controller的时候进人的是root view controller的view, 已经设置好了identifier,还差哪里不对呢?

    效果如下,
    有四个view controller, 为了区分我把background颜色改了,当我点击第三个feedback和第四个about的时候都只显示第一个problem的白色view,应该是要显示黑色的第三个view的啊
    有没有什么办法解决?

    自己已经查过了identifier, storyid, classname,代码里面delegate等等,都没办法找到问题。

    3
    2
    1

    9 条回复    2015-08-03 14:07:24 +08:00
    cielpy
        1
    cielpy  
       2015-08-03 10:14:09 +08:00   ❤️ 1
    作者给的Demo有Storyboard版的,似乎跟你的结构一模一样,参考着对照,没代码不好猜你哪错了。
    看下你这部分代码?
    stevenlordiam
        2
    stevenlordiam  
    OP
       2015-08-03 10:22:25 +08:00
    @cielpy 谢谢我已经发现问题了 应该subclass UIViewController 我按照他的README里面subclass了RESideMenu所以就一直是Root的View
    cielpy
        3
    cielpy  
       2015-08-03 10:26:12 +08:00
    @stevenlordiam 中间的除了rootViewController其他的都是Nav+普通的ViewController吧。RESideMenu也是继承自UIViewController的,按说你继承RESideMenu也不会有你说的问题的吧。
    racechao
        4
    racechao  
       2015-08-03 10:37:56 +08:00
    @cielpy 关于iOS技术性问题最好移到技术节点,那边有iDev
    cielpy
        5
    cielpy  
       2015-08-03 11:12:56 +08:00
    @racechao 我不是楼主。。
    stevenlordiam
        6
    stevenlordiam  
    OP
       2015-08-03 13:31:35 +08:00
    @cielpy 但是我改了继承之后就正常了 不知道为什么 我看他的firstviewcontroller也是继承的UIViewController而不是RESideMenu
    stevenlordiam
        7
    stevenlordiam  
    OP
       2015-08-03 13:32:17 +08:00
    @racechao 好像五分钟之后就不能改节点了==
    racechao
        8
    racechao  
       2015-08-03 13:35:56 +08:00
    @cielpy sorry
    Kai
        9
    Kai  
    MOD
       2015-08-03 14:07:24 +08:00
    moved to /go/idev
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1750 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 00:28 · PVG 08:28 · LAX 17:28 · JFK 20:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.