iphone - iOS: How to display a small view on top of main view? -


I'm new here, do not be too hard on me :)

Learning iOS development and my app Is trying to display a small scene to enter some data, which is using the storyboard.

I tried to add it as a subview but I can not take it from the top left corner or make the background to fade.

Thanks

Think of a UIViewController as your screen. Your screen can show several different views at once, but they are all part of the view of the UIVIUUT-Controller.

Instead, present a new UIViewController (i.e. screen), you want to do something like this:

  // its Use an XIB for, not a storyboard, UIView * newView = [[NSBundle mainBundle] loadNib nominated: @ "adadata" owner: self choice: zero] lastObject]; [Self.view addSubview: newView];   

I suggest reading these two guides from the applet until you understand the difference between a UIView and a UIViewController:



Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -