You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While adding tile view controller into a navigation controller with navigation bar visible, tile frame gets misplaced by 44 pixels. It also affects tapping on a tile.
I have tried with placing a seperate UIView on top of view controller's view and then adding all the tiles into that view, but still it misplaces.
I am not understanding the behaviour, please help.
Many Thanks.
The text was updated successfully, but these errors were encountered:
I haven't tried putting TilesViewController into a navigation controller (or anything else).
I don't know what's going on and haven't tried debugging this, but I have noticed that -[TilesViewController createTiles] doesn't take into account the bounds of the enclosing view when calculating frames for the tiles. If the enclosing view's origin is not (0, 0), then it won't be putting them in the right place. You might try offsetting each tileFrame by the enclosing view's origin.x and origin.y.
Hi,
While adding tile view controller into a navigation controller with navigation bar visible, tile frame gets misplaced by 44 pixels. It also affects tapping on a tile.
I have tried with placing a seperate UIView on top of view controller's view and then adding all the tiles into that view, but still it misplaces.
I am not understanding the behaviour, please help.
Many Thanks.
The text was updated successfully, but these errors were encountered: