I need to get the Y of a button so i can present a popup using its Y but the button is inside a tableView so when i move the table view the location is not actualized... how can i do that?
It didnt work too... and i need to set the value of that rectangle so i can put the popup exactly where i want ... i dont know whats wrong, if i roll the tableView and then click on the button to start de popover it just go to the same place it was if i didnt rolled the tableView
FYI, this is a community forum so you can't expect immediate responses. We're not tech support. We don't get paid for this.
Show us your code. I suspect you're doing something else subtly wrong. The code I posted should do the right thing no matter where the button is on the screen. Perhaps you're not using the right button?
Posts
Hey @Sheepssj
Try btn.Bounds.X, btn.Bounds.Y
Didnt worked budy... i need to get this done very quick any ideias?
You shouldn't need to get its frame for a popover. Use this:
Adam makes a good point.
It didnt work too... and i need to set the value of that rectangle so i can put the popup exactly where i want ... i dont know whats wrong, if i roll the tableView and then click on the button to start de popover it just go to the same place it was if i didnt rolled the tableView
help
FYI, this is a community forum so you can't expect immediate responses. We're not tech support. We don't get paid for this.
Show us your code. I suspect you're doing something else subtly wrong. The code I posted should do the right thing no matter where the button is on the screen. Perhaps you're not using the right button?