Questions tagged [superview]
137 questions
0
votes
1 answer
Can't remove subview from superview-Xcode6
I added a view (displayTapeView)to the superview via Storyboard and it's working fine. But when I want to remove displayTapeView when clicking the "Back"button on the displayTapeView. It doesn't work. My current code is as below:
-…

lei he
- 259
- 3
- 8
0
votes
0 answers
removeFromSuperview does not work
I've this piece of code that try to feed an array from a web-service. If it fails, an error message appears, with the possibility to tap on it to retry. But when I tap on it, the error message doesn't disappear, and the spinner doesn't…

Verdant
- 288
- 1
- 10
0
votes
2 answers
Remove Subview from Superview
I am really stuck in this issue for quite a long time
I am trying to add a UIControl (which is a UIView in the end) to a UITableViewCell that i have subclasses in my own class (i made a custom cell)
on swipe, i create my UIControl class and add it…

Moody
- 352
- 3
- 15
0
votes
4 answers
Subview acessing superview methods
How can a subview access the methods from its superview? I have a button, and when pressed I would like the button to call a method from its superview, but I do not know how.

Matias Frank Jensen
- 497
- 1
- 5
- 11
0
votes
1 answer
iOS: Can a view place another subview on its superview?
I have a UIScrollView with a custom view called LVSBBView. LVSBBView has subviews that are of custom type LVSBBNode. These nodes are created recursively (like a tree) and I'd like to be able to create a new "child" node within LVSBBNode and then…

LarrySnyder610
- 2,277
- 12
- 24
0
votes
2 answers
How to remove View from superView?
I made an xib and showed it inside a view by following code.
NSArray *xibContents =
[[NSBundle mainBundle] loadNibNamed:@"PickupAddressView"
owner:self
options:nil];
UIView *view = [xibContents…

Chatar Veer Suthar
- 15,541
- 26
- 90
- 154
0
votes
2 answers
How do I find the most parent SuperView?
I'm trying to add a new subView to a page, such that everything but itself is greyed out. However, I'm calling it from within a subview of the screen. To get it out, I have to do the following :
[self.view.superview.superview.superview.superview…

gran_profaci
- 8,087
- 15
- 66
- 99
0
votes
1 answer
Is window the super view of [[window rootViewController] view]
Question
Is application's window (of the type UIWindow *, a property in app delegate) the super view of [[window rootViewController] view]?
My code in the app delegate method application:didFinishLaunchingWithOptions: is [self window…

George
- 3,384
- 5
- 40
- 64
0
votes
0 answers
How to disable user interaction with superview unless subview is removed?
I have a view loading multiple subviews and subviews loading within the subview.
I want to disable user interaction with all views except last loaded subview.
Please help ,Thanks

sreejith.virgo
- 333
- 1
- 4
- 15
0
votes
1 answer
I want to remove the GADBannerView after InAppPurchase
In my app i used the InApp purchase after that i want to remove the adds from the GADBannerView but still adds displayed.
Any Ideas

Kishore Bhamidipati
- 13
- 5
0
votes
1 answer
How to call drawRect: method in super view from subview?
I am showing a popover from a custom view like this:
And when the user taps on the popover I must draw something on my custom view (from which the popover is shown).
I try to make [myPopover.view.superView setNeedsDisplay]; but it don't work.
May…

Kepler
- 705
- 1
- 5
- 19
0
votes
1 answer
Change the order on element
I'm now doing an application, where i need to put some elements in the top of the views sometimes.
For example, how could i do to make the entire CGRect red and not the green visible here :
Could i call addSubview method more than one time, and it…

user2057209
- 345
- 1
- 6
- 19
0
votes
1 answer
Why can't I set backgroundImage of UIButton after removing all subviews
Just having some hard time with UIButton. I remove all subviews using
for (UIView *v in button.subviews) {
[v removeFromSuperview];
}
But I want to set the background image afterwards using
[button setBackgroundImage:[UIImage…

Denis Balko
- 1,566
- 2
- 15
- 30
0
votes
2 answers
Xcode error on superview of custom object
I have a custom table view controller called pfTableViewController and a custom cell called customTableViewCell.
From inside my customTableViewCell I try to access an NSMutableArray of the pfTableViewController:
-…

Demulis
- 73
- 1
- 4
0
votes
1 answer
iOS - UITableView's superview covers the screen when app enters foreground
I have a UITableView that I am applying a set of filters on. The filters animate from below the navigation bar when I tap the "Filter" button. What I am doing here is taking a NIB that I loaded an adding it to the UITableView's superview.
This works…

Brian Boyle
- 2,849
- 5
- 27
- 35