Questions tagged [addsubview]

Questions relating to the addSubView method of the Apple UIView class

Questions relating to the addSubView method of the Apple UIView class

540 questions
0
votes
1 answer

how to stop one subview covering another

I have two subviews that load. One is a tabbar thats inside a viewcontroller which gets loaded fairly early on and the second is a view that appears when a tab bar item is pressed. however when this subview is added it loads over the tabbar…
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183
0
votes
2 answers

Adding subViews to a viewcontroller

I am having an issue with trying to load a viewcontroller onto another viewcontroller as a subview. what I have is a NavigationController that loads some viewControllers in as views (pop and push etc) that works perfectly. then I have decided to put…
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183
0
votes
1 answer

UIView updates when it is a tableHeaderView, but not when it is a subview

I have a custom UIView containing a TableView. Above the table I plan to display some other items. For now, I just want a button. I am creating a UIView 'headerView', and adding the button to it. The button itself is just rigged to update it's…
Ben Packard
  • 26,102
  • 25
  • 102
  • 183
0
votes
1 answer

Property is null after adding subview

I'm launching a UIPopoverViewController that is supposed to draw two buttons (add and delete buttons). The ContentViewController for the UIPopover has a property called outputJackView that is set just before the UIPopoverViewController is launched.…
anthony
  • 892
  • 11
  • 32
0
votes
1 answer

What is the most correct way to add a UIViewController to a subview and remove it?

I'm trying to add a UIViewController subview, and then upon clicking a button close it. My current code does the job, I'm just not sure if it will leak or cause any problems. So first I add the subview -(IBAction)openNewView:(id)sender{ // start…
0
votes
1 answer

How to activate the keyboard from a UITextView on a (secondary) UIWindow

My iPhone app (based on the "Single View Application" of Xcode) has a UITextView (say: myTextView) that I want the user to be able to edit. I was setting it to editable, and all was working fine (I didn't even have to invoke…
Gik
  • 528
  • 5
  • 18
0
votes
2 answers

Error when remove a view from superview

I'm new on iOS development and i got a trouble want to ask you. My purpose is show a view (not full screen) upon base view and still see a parent on the back outside the subview. So i added a subview (subclass of UIViewController) upon current…
hieund
  • 218
  • 3
  • 6
0
votes
1 answer

Adding Subviews to NSView show up, but can not be removed

In my application window I have two NSViews. On the left the NSView ("Menu") contains a few buttons. When one of the buttons is clicked it should change the contents of the right NSView ("Content"). For each of the views on the right I have a…
Joseph
  • 9,171
  • 8
  • 41
  • 67
-1
votes
2 answers

How to remove UIView and add another UIView in appDelegate at runtime?

I have 2 UIViews that are totally dependant on AppDelegate file. First UIView is an Ad page that i have to launch when i start the app. But Already i have made the app with another HomeView that is dependant on AppDelegate. I am adding AdView as…
DShah
  • 9,768
  • 11
  • 71
  • 127
-1
votes
2 answers

adding subview problem

I am having the following problem while adding a subview to navigation controller. I even have tried to modify the Y location of frame before and after adding the subview but not effective. Also tried to put a status bar on the child view but…
Naveed Rafi
  • 2,503
  • 5
  • 32
  • 40
-1
votes
1 answer

Swift: addSubview is placed on previous view

I use this code for add two view on to parent : let view0 = StarClass.createMyClassView() parent.addSubview(view0) let view1 = StarClass.createMyClassView() parent.addSubview(view1) This code work fine, but view1 not placed bottom of view0 view1…
salari mameri
  • 228
  • 5
  • 13
-1
votes
1 answer

UIButton click event crash after adding the viewcontroller's view as a sub view

I want to add several ViewController's views as sub views of my another viewcontroller. So I have done like this inside my parent viewController. -(void)MakeDisplayArea { vwDisplayArea=[[UIView alloc] initWithFrame:CGRectMake(0, 0, w,…
IRD
  • 1,127
  • 2
  • 8
  • 15
-1
votes
1 answer

Show UIView with xib on textFieldDidBeginEditing

I made a custom uiview class with a xib and I want to be able to show it on the screen with textFieldDidBeginEditing but I can't seem to figure it out. In myCustomView: required init(coder aDecoder: NSCoder) { super.init(coder: aDecoder) …
donio20
  • 75
  • 6
-1
votes
1 answer

Adding a UIPickerView over a UITabBarController

I'm trying to have a UIPickerView slide from the bottom of the screen (over the top of a tab bar) but can't seem to get it to show up. The actual code for the animation is coming from one of Apple's example code projects (DateCell). I'm calling this…
Kai Schaller
  • 443
  • 3
  • 9
-1
votes
1 answer

add subview is not displaying my uiview

I have the following code, and the uiview is not showing, i've placed a breakpoint & see the view is not nil and the frame is set to the given size - why the view is not showing in my uiviewcontroller? @property (nonatomic,strong) LoadingView…
liv a
  • 3,232
  • 6
  • 35
  • 76
1 2 3
35
36