ios - how to split the view into halves and addid a scroll view on each half of the view? -
i have divide view int two,on first half have add scroll view(i.e call specific method in scroll view setting page) , on second half have add scroll view.i have programmatically.please help.
you can split uiview two. if understand right
uiscrollview scroller1 = [uiscrollview alloc]initwithframe:cgrectmake(0,0, splittedview.frame.size.width /2, splittedview.frame.size.height) ]; uiscrollview scroller2 = [uiscrollview alloc]initwithframe:cgrectmake(splittedview.frame.size.width /2,0, splittedview.frame.size.width /2, splittedview.frame.size.height) ]; [splittedview addsubview: scroller1]; [splittedview addsubview: scroller2]; now have view 2 scrollviews on it. , every scrollview has half size of main view.
Comments
Post a Comment