Customizing the UIPopoverController view background and border color

后端 未结 9 866
再見小時候
再見小時候 2021-02-05 11:00

Is it possible to change the border color, navigation bar style/color, and arrow style/color of a pop over view? If so, how? If some sample code is available, then that\'ll be g

9条回答
  •  时光说笑
    2021-02-05 11:38

    I try to trick it by customizing the viewcontroller inside the popover and then hiding the popover border using this code

    UIView * border = [[insideViewController.view.superview.superview.superview subviews] objectAtIndex:0];  
    border.hidden = YES;
    

    The app is actually still in development so I'm hoping other people will comment on this solution.

提交回复
热议问题