Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SWRevealViewController right side menu

I am experimenting inserting a UITableView into the RightViewController of the first example located at https://github.com/John-Lluch/SWRevealViewController/tree/master/RevealControllerExample .

The issue is that that the table is aligned far left and the text in each cell is cutoff.

What are possible fixes for this? I have looked through the SWRevealViewController api and could not find a solution. Also, i looked through the UITableView api and tried each of the possible alignment setting, also in the xib builder. None seems to change the cutoff of the text

I have attached the image below. Notice the left aligned table.

right side controller
(source: jeffcoat.net)

like image 988
Timothy Jeffcoat Avatar asked Nov 07 '13 18:11

Timothy Jeffcoat


1 Answers

assign 0 to _rightViewRevealOverdraw property of SWRevealViewController using below line

self.revealViewController.rightViewRevealOverdraw = 0.0f;

Or

in SWRevealViewController.m file search for line

_rightViewRevealOverdraw = 60.0f;

and change it like

_rightViewRevealOverdraw = 0.0f;

This will fix your problem.

More improved solution is to write below single line in controller instead of library.

  self.revealViewController.rightViewRevealOverdraw = 0.0f;
like image 52
Amit Saxena Avatar answered Sep 29 '22 23:09

Amit Saxena