ios5 - UIScrollView horizontal scroll not working -
i have next setup:
on top of uiviewcontroller
i've set uiscrollview
size 320 x 56. within uiscrollview have uiview size 640 x 56. uiscrollview has autoresize prop uncheked , it's scrollable horizontally only..
so in viewdidload
method set contentsize ioutlet of uiscrollview
. set 640 x 56. delegate uiscrollview set in method.
- (void)viewdidload { [super viewdidload]; self.scrollview.contentsize = cgsize(640, 56); }
the problem can't command scroll. nslog bounds , frame of uiscrollview
, uiview
, both set 0,0 when methods viewdidload
, viewwillappear
called. not sure i'm missing here.
the thought able have uiview
scroll sides , show controls embedded.
i've tried many suggestions found in diff post , can't create work. help appreciated!!!
thanks
i able work unchecking autolayout option. contentsize property scrollview set in viewdidload.
thanks
ios5 ios6 uiscrollview uiscrollviewdelegate contentsize
No comments:
Post a Comment