Xcode 4: Creating a UIView xib, not properly connecting

前端 未结 30 3446
时光说笑
时光说笑 2020-12-02 16:29

I\'m trying to create a nib that contains a view that will be embedded in a TableViewCell. I\'ve created the interface and implementation files, ResultCell.h an

30条回答
  •  抹茶落季
    2020-12-02 16:52

    Similar symptom, but different cause.

    Apparently I hit backspace when the focus was on the assistant view, because one of the standard file template comment lines went from // to / which results in the file not compiling.

    Fixing the comment allowed the SDK to parse the file, recognize it as a UIViewController, and add in the outlet.

    SO -- if you have this problem, do a build or analyze to see if there are errors that need fixing in your view controller .h file. THEN try the other solutions.

提交回复
热议问题