I have a Switch and two Bar Button Items and I want to decrease the size of these items. As I understood it is very difficult if it is possible. Are there any solutions for this?
Asked
Active
Viewed 367 times
0
-
1for size of buttons https://stackoverflow.com/questions/34891973/change-width-of-a-uibarbuttonitem-in-a-uinavigationbar-in-swift – Wings Apr 10 '18 at 14:30
-
1for switch https://stackoverflow.com/questions/30492731/swift-xcode-increasing-the-size-of-a-uiswitch – Wings Apr 10 '18 at 14:30
-
@V_rohit Unfortunately the first link didn't help me. I can only change the width of a button a little, but not a height. – Ruslan Leshchenko Apr 12 '18 at 14:55
-
can you show the code of bar button items – Wings Apr 12 '18 at 15:07
-
@V_rohit I add button in storyboard and tried to replace left button like in the example from your first link. If needed I will make a small project and upload it to GitHub. – Ruslan Leshchenko Apr 12 '18 at 15:11
-
it's because NavigationBar has fixed height of 44 – Wings Apr 12 '18 at 15:47
-
@V_rohit And? Can I change the height of a button in Navigation Bar? – Ruslan Leshchenko Apr 13 '18 at 06:48
-
I tried to change the height of button but it couldn't but I change the width – Wings Apr 13 '18 at 10:56
-
You can also makes button without using navigation bar – Wings Apr 13 '18 at 10:57
-
@V_rohit But I need a navigation bar. So thanks for the help. – Ruslan Leshchenko Apr 13 '18 at 10:58
-
Here is the link about navigation bar https://youtu.be/zS-CCd4xmRY you can see here – Wings Apr 13 '18 at 11:00