ios開發之 -- invalid nib registered for identifier

來源:互聯網
上載者:User

標籤:title   obj   table   ios開發   刪除   注意   tle   register   ble   

今天在寫代碼的時候,碰到這麽一個問題:

invalid nib registered for identifier (重用符) - nib must contain exactly one top level object which must be a UITableViewCell instance‘

我一直以為是註冊那邊出了問題,改了2遍,還是沒好,後來百度了下,原因如下:

通過xib建立cell的時候 一定要注意!!! 這個錯誤是在這個xib中在View同一層級出現了其他的控制項,檢查一下xib中左邊的層級關係,讓cell的view是唯一的控制項就可以了,否則一執行 就會提示,其實只需要回到xib中,好好數一下控制項數量,刪除多餘的控制項就可以了

ios開發之 -- invalid nib registered for identifier

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.