ios - UIAlertController of style ActionSheet shows below status bar -


i want show alert controller of style action sheet display list of states in country , works fine.

enter image description here

but weird reason shows action sheet below status bar partially not acceptable looks bad, how ever can remove status bar when displaying action sheet should work.

so wondering there other way make action sheet stop particular offset top. tried presenting action sheet navigation controller nothing changed.

any comments appreciated.

thanks, robin.

try this:

var height:nslayoutconstraint = nslayoutconstraint(item: alertcontroller.view, attribute: nslayoutattribute.height, relatedby: nslayoutrelation.equal, toitem: nil, attribute: nslayoutattribute.notanattribute, multiplier: 1, constant: 300) alertcontroller.view.addconstraint(height); 

set height 300. look, changes?


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -