ios - Width of UINavigationController view in iOS8 modal popover? -


In my iPad app, I present a navigation controller in a model form sheet, and set the width of a label in it The width of that navigation controller (i.e. the full width of the form sheet)

In iOS7, it works perfectly in iOS8, the width is reported as the full width of the device (either 768 or 1024 digits). I know that these popovers have been demoted to some extent on IOS8, but is there a way to get the correct width of the form sheet in this situation in iOS8?

The frame of the scene is not correct when you have created - viewDidLayoutSubview or - layoutSubview .

Set your label width in - viewDidLayoutSubview of your view controller.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -