Make the buttons center-aligned #11
Comments
Can you post a screenshot? |
I will try to photoshop my desired result |
Yes, exactly that! |
You can accomplish this by subclassing the toolbar and redrawing the layout (just calculate width of buttons and then plop in center or use auto layout). |
Which method should I override? I can't find anything related to collection views in |
Check out |
It does not seem to be visible in subclasses. Is it private? It has a |
I overrode it like this:
But the overridden method does not seem to get called. The buttons' positions stay the same as before. |
And you're using your subclass? |
Yes of course! I stepped through the code and found that only the super class's |
@Sweeper777 closing due to inactivity. Please reopen if you are still experiencing this issue. Thanks! |
Is there a way to make the buttons center aligned? Right now, all the buttons are on the left (left aligned). People have to move their hands a lot to tap on them on a really wide screen.
The text was updated successfully, but these errors were encountered: