ios - Reduce dot size or padding to fit all page indicators on screen with UIPageControl -



ios - Reduce dot size or padding to fit all page indicators on screen with UIPageControl -

i have uipagecontrol has 22 pages, hence 22 page indicator dots. in landscape on iphone they're visible plenty of space on left , right, in portrait there's not plenty horizontal space display of dots (at to the lowest degree on iphone 4 , 5), 2 aren't visible , outer 2 cutting in half.

i looking way cut down size of dots or cut down amount of padding between dots ensure dots fit on screen in portrait. how can accomplished?

if have many dots, consider different control. if want stick uipagecontrol, scale downwards fit on screen, like:

pagecontrol.transform = cgaffinetransformmakescale(0.7, 0.7);

this scales downwards 70% of initial size - leave determine best scale screen size/number of pages.

ios uipagecontrol

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -