iPhone - How set uinavigationbar height?

后端 未结 9 2336
情歌与酒
情歌与酒 2020-11-28 05:25

I want to make the top of the navigation view a bit smaller. How would you achieve this? This is what I\'ve tried so far, but as you can see, even though I make the navigati

9条回答
  •  甜味超标
    2020-11-28 06:19

    I have found the following code to perform better on iPad (and iPhone):

    - (CGSize)sizeThatFits:(CGSize)size
    {
         return CGSizeMake(self.superview.bounds.size.width, 62.0f);
    }
    

提交回复
热议问题