iphone - UITableview clipsToBounds -
i creating ipad view has tableview subview. tableview takes small portion of screen , somewhere near middle of screen , contains menu items. want people scroll tableview , down not how cells disappear against hard edge. when set clipstobounds false, want in hard edge not there anymore top/bottom cell disappears when tableview needs cell recycling. there common technique avoid hard-edge of when cells scroll against tableview's bounds? thinking of adding gradient alpha masks on parent container view seems bit on top.
there no hard , fast rule this, can whatever feel best. in case of floating tableview giving nice border using layer. easy code (2~3 lines). round edge make pretty.
if want drop shadow, gets little more complicated possible. draw bezier curve path of rectangle (where want shadow appear). assign calayer shadowpath. add table.
you can gradient alpha make appear shadow like.
but suggest, set clipstobounds yes since looks horrible otherwise, given fact table 'floats' somewhere in view.
Comments
Post a Comment