ios5 - Resizing UITableView using ViewDeck -


i trying mimic sliding table view functionality found in apps facebook. using inferis/viewdeck library. works great slider can't figure out how resize table view fit in smaller space left slider without clipping.

example:

example

i have seen several other posts similar questions none concisely answer how resize table view. examples or explanation great.

for left oriented slider (i.e. slider reveals view left):

- (bool)viewdeckcontrollerwillopenleftview:(iiviewdeckcontroller*)viewdeckcontroller animated:(bool)animated  {     self.tableview.frame = (cgrect) { self.tableview.frame.origin.x,                                       self.tableview.frame.origin.y,                                        320 - self.viewdeckcontroller.leftledge,                                       self.tableview.frame.size.height };     return yes; } 

for right oriented slider:

- (bool)viewdeckcontrollerwillopenrightview:(iiviewdeckcontroller*)viewdeckcontroller animated:(bool)animated  {     self.tableview.frame = (cgrect) { self.viewdeckcontroller.rightledge,                                       self.tableview.frame.origin.y,                                        320 - self.viewdeckcontroller.rightledge,                                       self.tableview.frame.size.height };     return yes; } 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -