why do i get “Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES” in xcode 6 beta

前端 未结 9 1423
死守一世寂寞
死守一世寂寞 2020-12-01 10:38

I have the following code in a swift UITableViewController, but i get a \"Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES exception at th

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-01 10:47

    PEOPLE, THIS IS NOT A BUG. As never said down below:

    "This is NOT bug, you simply cannot use a UIView as cell for table view, you must make sure the top level view in the nib file is a UITableViewCell."

    I have tested it and it works.

    You need to create the Xib file and delete the top-level view that it has. After, you drag and drop a UITableViewCell into the nib. This way, this problem will not happen.

提交回复
热议问题