ios - Storyboard - dynamically change height of UIView -


popup1

enter image description here

popup2

enter image description here

is possible create single popup in storyboard & dynamically change - decrease/increase height when error occurs (as shown in popup2)

i expect correct approach create such view.

one way achieve using vertical uistackview in interface builder. example, have simple stack view set contains 2 labels:

vertical stack view

now, in view controller can set error label hidden or not , stack view dynamically take care of rest. e.g:

without hiding anything:

error label showing

hiding error label:

[_errorlabel sethidden:yes]; 

error label hidden


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -