Xcode 4.2 Compilation Failed with prototype cell

前端 未结 7 1923
陌清茗
陌清茗 2021-02-06 05:54

I\'m trying out the new Xcode 4.2 Beta and I\'m wondering if my code is wrong or if I\'m bumping in to an bug.

The new Storyboard feature is promising but extremely bug

7条回答
  •  长发绾君心
    2021-02-06 06:07

    I don't have the perfect solution to your problem but I had the same and I found a way to make it works (without linking the outlet to the TableViewController).

    Just try to recreate your view from scratch and Build & Run every time you add a component.

    In order add a TableViewController => Test if it shows an empty table.

    Design your custom cell and link your cell's Outlets to it. (Without forgeting to change the Class of your TableViewCell) => Again test it

    Then change the Class of the TableViewController to your class and now you would be able to access to your cell's outlets.

    It worked for me. I hope it will for you.

提交回复
热议问题