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

请问,例子代码中, label 为什么没有出现在界面上?

  •  
  •   georgetso · May 21, 2015 · 2033 views
    This topic created in 4004 days ago, the information mentioned may be changed or developed.
    例子代码地址:
    http://pan.baidu.com/s/1mgCDtZq

    ViewController 中有一个 IBOutlet V1
    V1 中有一个 IBOutlet UILabel

    文档中说

    When an object receives an awakeFromNib message, it is guaranteed to have all its outlet and action connections already established.

    不过 UILabel 打印出来是 null

    请问是怎么回事?请问如何才能让 UILabel 显示在界面上?
    因为 V1 需要在多个界面使用,所以单独做了一个 xib 希望能复用
    Supplement 1  ·  May 21, 2015
    解决了
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3904 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 00:46 · PVG 08:46 · LAX 17:46 · JFK 20:46
    ♥ Do have faith in what you're doing.