How to show resized sidebar using SWRevealViewController?

前端 未结 4 1524
醉梦人生
醉梦人生 2021-01-05 11:59

I am using SWRevealViewController in IOS app (universal). I\'m getting sidebar in iPhone and iPad both but I want to show sidebar which covers 90% of screen - how can I?

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-05 12:16

    You can do something like this... When you have subclass from SWRevealViewController... call property for this problem and set as you want... Hope it's help someone...

    self.rightViewRevealWidth = [UIScreen mainScreen].bounds.size.width * 0.9;
    

提交回复
热议问题