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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -