UISegmentedControl - altering height in Interface Builder

后端 未结 7 645
萌比男神i
萌比男神i 2021-02-02 11:54

I\'m creating a number of static custom UITableViewCells and have dragged a UISegmentedControl onto one of the custom cells.

Whilst the segmen

7条回答
  •  别跟我提以往
    2021-02-02 12:36

    I want to add to Kender's answer.

    If you use storyboard rather than XIB, you will need to add:

                                    
                                    
    

    The id can be anything unique I guess. Maybe pick some ID and modify one letter?

    This is the full code

    
                            
                                
                                
                            
                            
                                
                                
                            
                        
    

    I add a userLabel so I can easily find the stuff.

    Note: reading the storyboard is very enlightening. Changing storyboard file is VERY dangerous.

提交回复
热议问题