How to show resized sidebar using SWRevealViewController?

前端 未结 4 1547
醉梦人生
醉梦人生 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条回答
  •  旧时难觅i
    2021-01-05 12:11

    Just have an if statement to determine the correct size of the sidebar. something like this:

    if(device == iPad)
         _rearViewRevealWidth = 600.0f;
    else if(device == iPhone)
         _rearViewRevealWidth = 260.0f;
    

提交回复
热议问题