The situation is like this, I UITableView added a headerview, this headerview is created through Xib, is UIView. Out of the results unexpectedly, UITableView cell the top of a few are headerview to obscure ~ ~ ~ I le a go ~ ~ God horse situation?
So brother by looking at the hierarchy structure, found to run out of the Headerview and cell list is not the same level, it should be the same layer is right!!!! So I tried the other xib, the same thing, and then instead use code to create UIView () like this way, so that's normal, headerview and cell lists are all the same level.
But Headerview content and more complex, write in code and layout is too laborious, continue to find solutions ... So the wit I use cell a try, cell of Xib way as Headerview magical normal.
Yes, that's it, this xib must be UITableViewCell, and then
Tableview.tableheaderview = Nsbundle.mainbundle (). loadnibnamed ("Moviedatedetailed_headercellview ", Owner:nil, options:nil) [0 as this UITableViewCell
This will be OK ~ ~ ~
[Ios]swift UITableView added Headerview pit-daddy problem created by Xib