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:

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
Post a Comment