ios - UIScrollView with UITableView not scrollable -



ios - UIScrollView with UITableView not scrollable -

my app (xamarin/monotouch iphone) consists of 3 uitableview add together uiscrollview (all done programtically) each of tables not scrollable

mytableview.scrollenabled = false;

i calculate height needed x number of items , set in runtime.

mytableview.frame = new rectanglef (0, 27, 320, mytableviewheight);

the problem uiscrollview not scrollable:

int caclulatescrollviewheight = mylistheight + olistheight + 104; scrollview.contentsize = new sizef (320, caclulatescrollviewheight); scrollview.frame = new rectanglef (0, 135, 320, caclulatescrollviewheight); scrollview.delayscontenttouches = true; scrollview.cancancelcontenttouches = false; this.view.add (scrollview);

any thought can cause that?

don't set scrollview frame height same calculated view height. frame box on screen want occupy; you'll want maintain less or equal screen size. if content size matches frame size, won't scroll (because won't need to).

scrollview.frame = new rectanglef (0, 135, 320, 200);

ios iphone monotouch xamarin

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -