xamarin.ios - Setting MonoTouch.Dialog UITableView position? -


is there way set position of monotouch.dialog dialogviewcontroller? have subclassed dialogviewcontroller , added uitoolbar @ top , want shift table view down corresponding pixels.

public class myviewcontroller : dialogviewcontroller {     uitoolbar toolbar;      public sessionslistviewcontroller (rootelement rootelement) : base(rootelement)     {       this.toolbar = new uitoolbar(new rectanglef(0,0,768,44));       this.toolbar.items = new uibarbuttonitem[0];       this.add(toolbar);     } } 

i never able change position of tableview in monotouch.dialog. it's not problem of library though, how tableviewcontroller works, inherited mt.dialog.

the tableviewcontroller class supposed manage positioning of tableview automatically, , you're not supposed work around that. if create tableview different position, miguel.de.icaza mentioned about, tableviewcontroller rearrange tableview during willappear method.

when not using mt.dialog, best way work aound this, , example, have table on half of screen drop tableviewcontroller , use uiviewcontroller tableview object. can still pass delegate , datasource tableview, loose automatic positioning of tableview.

i tried change mt.dialog inherit uiviewcontroller instead of uitableviewcontroller, caused lots of problems , never able finish it. maybe someday i'll it.

i love hear i'm wrong though!


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -