uibutton - What is the equivalent of Android's weightsum in iOS -


i have bunch of uibutton's want them equally distributed on screen screensizes. possible achieve without using autolayout? view fits on 640*960 screen, if larger there empty space in bottom. there equivalent of weightsum in ios? have attached 2 images shows how view looks on 640*960 (second image) , 640*1136 (first image) screen.

640*1136

640*960

i suggest choose auto layout kind of behaviour. in case pretty straightforward constraints set in ib. if prefer setting code, visual language.

also, me, bit of overkill, may use uicollectionview


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -