I’m currently in the process of making my custom tab bar. It’s working fine, the way I did it was by hiding the default bar. I have my images prepared, the on and off ones.
There seems to be an implementing of these into the main concept by using:
btn3.frame = CGRectMake(240, 430, 80, 50);
The number combination is unique for each CGRectMake. I have done it, but i’m using 3 buttons on the bar. This tutorial uses four. What should I set the number combination for each CGRectMake if i’m using 3 buttons and not 4. Because I assume that the combos are proportional to each other depending on how many tabs there are. All it is, is setting the frame size and position of the button/tab.
I used these for my tabs, but I got a gap in between.
btn1.frame = CGRectMake(0, 430, 80, 50);
btn2.frame = CGRectMake(160, 430, 80, 50);
btn3.frame = CGRectMake(240, 430, 80, 50);
it’s in the fourth box on the page.
1 Answer