V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
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
cuthead
V2EX  ›  iDev

怎么使用 Auto Layout 放置文本栏

  •  
  •   cuthead · Apr 27, 2015 · 2703 views
    This topic created in 4025 days ago, the information mentioned may be changed or developed.
    Yosemite 10.10.3 Xcode 6.3
    在项目导航器中,选择 Main.storyboard。
    在串联图中,选择文本栏。
    在画布上,按住 Control 键从文本栏拖向场景顶部,直到文本栏四周皆为空白区域。此区域为文本栏的父视图。
    停止拖移操作时,其位置将出现一个快捷菜单。
    从快捷菜单中选取“Top Space to Top Layout Guide”。
    https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOSCh/SecondTutorial.html#//apple_ref/doc/uid/TP40012668-CH8-SW1
    但我拖出来的不是这个而是
    何解?
    2 replies    2015-04-27 01:01:53 +08:00
    cuthead
        1
    cuthead  
    OP
       Apr 27, 2015
    明白了,原来还得先启用Auto Layout才行
    DavidHu
        2
    DavidHu  
       Apr 27, 2015
    右下角有个图标,两竖线中间有个小三角,点一下,然后点倒数第二个,Reset什么什么的,就对了。
    以后各种约束可以自己写,现在可以就用那个就挺好用的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2653 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 02:53 · PVG 10:53 · LAX 19:53 · JFK 22:53
    ♥ Do have faith in what you're doing.