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.
(source: jeffcoat.net)
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;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With