objective c - Resizing an open model view in iOS 8 -


I have a UIViewController that is displayed as a form sheet, and when a user selects a particular setting , The model spreads to show more data (similarly, if they choose something else then the contract will also be there). It was possible to change the size of a model view by using

IOS 7 and below,

[self.view .superview setBounds: CGRectMake (0, 0, 320, 480)]; In iOS 8, I know that you can start using setPreferredContentSize to popup size, but it currently resizes to display the popup size. Does not work for

So my question is, how does the size of the popovar displayed in iOS 8 change?

I first went to a subview in the Model View Controller,

itemprop = "text ">

With the tip of b3ginneriOS I was able to solve this problem.

And instead applied all size changes (except the main view at maximum size).

] Set Model Presentation Style: UIModalPresentationOverCurrentContext]; }

and adding a semi-transparent background:

  [self.view setBackgroundColor: [UIColor colorWithRed: 0.0 green: 0.0 blue: 0.0 alpha: 0.45 ]];  

To properly visualize the scene correctly with some adjustments (depending on the supervisor size and iOS8 subview of iOS 7), everything works well.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -