convertPoint:toView: in landscape mode giving wrong values

You can’t use main window to calculate relative coordinates. Main window receives rotation events and passes them onto controllers which means it doesn’t change the size itself (always has the same portrait bounds). That’s why the solution you found makes sense: you find the coordinates relative to the view of the root controller which does receive rotation events and changes its size accordingly

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)