ios - PopOverController appears next to the selected cell -


i working on tableviewcontroller in xamarin.ios platform.

the following code works when user clicks on second row in first section in tableview.

when user clicks, popover view appears. position of popover not appear next selected cell. how handle it?

public override void rowselected (uitableview tableview, nsindexpath indexpath) {   if (indexpath.row == 1 && indexpath.section == 0) {     var vc = new iviewcontroller (this,ivc.iinfo);     var nc = new navigationcontroller (vc);     nc.preferredcontentsize = new system.drawing.sizef (200, 300);     uipopovercontroller popupovercontroller = new uipopovercontroller (nc);     popupovercontroller.presentfromrect (tableview.bounds, tableview, uipopoverarrowdirection.any, true); } 

instead of using tableview, should use selected cell follows.

uitableviewcell cell = tableview.cellat(indexpath); popupovercontroller.presentfromrect (cell.bounds, cell, uipopoverarrowdirection.any, true); 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -