iPhone modal View with parent view semi-visible? -


I am adding a model view using the following code:

[self PresentModalViewController: Phrase Editor Animated: Yes];

How can I see a semi-transparent view of the model so that the supervision "shines" through?

My complete method / function looks like this:

  - (IBAction) showEditPhrases: (ID) Sender {Phrase Phrase Controller * Phrase Editor = [[phrase view controller alloc ] InitWithNibName: @ "phrase view controller" bundle: zero]; Phrase editor.modeltranscencestyle = UIModeltransition stylecrossdisolve; [Phrase editors View set alpha: 0.5]; [PhraseAddictor. View setback color: [UIColor clearColor]]; [Self current model view controller: animated phrases animated: yes]; [Phrase Editor release]; }  

Edit:

The practical approach to changing alpha will not work, apparently. How can I load any NIB in UIView and interact with it?

Do I have a UIViewController now? Will I convert / modify / change it in UIVIEW and then load it, or do I have to do something else?

Edit 2:

I tried [self. See AddSubview: Phrases Editor.View]; , but it does not give me any way to remove the subview, it looks like my own view controller in every scene.

Edit 3:

I thought that supervision is inside a view controller called iDecideViewController and the phrase editor is different View the controller.

When you present a model view, it will actually unload the previous scene, so that Do not you all want UIView to have a method called Adsview, which will keep a new view on top of its brothers.

Instead of:

  [current current model view controller: phrases edited animated: yes];  

Do this:

  [see self.view addSubview: phrases editor]];  

It is assuming that you are already in a ViewController subclass.


Comments