A question about the hybrid use of segment and tableview last night, segmenttableview
Last night, when I was working on the offline interface of Baidu map, I used a segmentcontrol to control two tableviews. However, I found that no matter how you first enter the page, it cannot be displayed.
The default value is selectedSegmentIndex = 0, which is the control index of the default Interface.
I found two problems:
1. if this is set, when segmentcontrol is loaded before tableview, the default Interface cannot be displayed. You must click it again to load the data. This is not a system bug.
2. in addition, when segmentcontrol is loaded before tableview, the width, height, and x coordinates of the tableview frame are set in this way, which is y coordinate alone, its y coordinate is the height of the status bar 20 + navagationbar, but if tableview is loaded before segmentcontrol, its y coordinate is directly set to 0, in addition, normal viewing is not affected in both cases. This is a system self-adjustment, or a bug.