ios - SWRevealViewController not working on iPad -


i use swrevealviewcontroller menu in app. since today app available iphone. want make ready ipad there's problem (look @ pictures. first 1 shows app on iphone (looks normal), second on ipad (looks quite different)).

my app on iphone

on ipad

why white on ipad?

thanks help!

i solved problem myself.

for menu use tableview(controller). in class of tableview or tableviewcontroller need add following function:

override func tableview(tableview: uitableview, willdisplaycell cell: uitableviewcell, forrowatindexpath indexpath: nsindexpath) {     cell.backgroundcolor = uicolor.clearcolor() } 
  • you need override when use uitableviewcontroller
  • if use static tableviewcontroller in storyboard menutableviewcontroller , not have class it, generate class , delete code of , add function above. add class menutableviewcontroller in storyboard.

Comments