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
ruandao
V2EX  ›  iDev

ios storyboard 布局的时候,如果有重叠的布局很痛苦,你们是怎么布局的

  •  
  •   ruandao · 2014-07-13 00:28:18 +08:00 · 5506 次点击
    这是一个创建于 3573 天前的主题,其中的信息可能已经有所发展或是发生改变。
    譬如说一个scroll view 占据整个屏幕

    然后要在scroll view 上方某个位置 加入某个button

    经常会出现 button 跑到scroll view 里面去了....

    恩,用代码的先让路下,我懒...而且感觉这样比较直观
    5 条回复    2014-07-13 09:47:20 +08:00
    xgjames
        1
    xgjames  
       2014-07-13 01:05:56 +08:00   ❤️ 1
    好好了解下 auto layout
    ruandao
        2
    ruandao  
    OP
       2014-07-13 01:13:47 +08:00
    @xgjames

    blogcool
        3
    blogcool  
       2014-07-13 09:04:53 +08:00
    用storyboard 更简单,你把storyboard左侧的层级关系打开,把button拖出来让他们处于并列关系,而不是从属关系不就行了。
    ruandao
        4
    ruandao  
    OP
       2014-07-13 09:43:34 +08:00
    @blogcool 拖出来后,原先对齐的线就不对了....
    Heavytiger
        5
    Heavytiger  
       2014-07-13 09:47:20 +08:00 via iPhone
    在editor里有一个bring to front的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4455 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:11 · PVG 18:11 · LAX 03:11 · JFK 06:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.