zoukankan      html  css  js  c++  java
  • 坑爹的UITabBarController

    参考资料: http://www.iphonedevbook.com/forum/iphone-development-questions/1450-class-not-key-value-coding-compliant.html

    UITabBarController中加入DatePicker控件,连接好IBOutlet,一运行就出现如下的崩溃:

    2009-06-10 13:12:58.899 Pickers[3878:20b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0xd191b0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key datePicker.'
    

      

    原来要给每一个子的标签页赋予特化的子类.坑爹的书!

    For each tab in the tab tab, the class identity must be set the the name of the corresponding controller class.
    

      

  • 相关阅读:
    CF238B Boring Partition
    CF1424G Years
    CF995D Game
    CF468C Hack it!
    CF1417A Copy-paste
    CF1417B Two Arrays
    CF849B Tell Your World
    [洛谷P3389][模板]高斯消元法
    CF1225D
    P6687
  • 原文地址:https://www.cnblogs.com/dabaopku/p/2199520.html
Copyright © 2011-2022 走看看