Questions tagged [superview]
137 questions
0
votes
1 answer
Removing view from subview does not call willRemoveSubview
I have a managing view controller that switches in one of a set of previously allocated sub view controllers when the user chooses a menu item.
When I switch in a view controller I hook up the view of the managing view controller to the view in the…

Darren Wheatley
- 456
- 1
- 3
- 14
0
votes
1 answer
Working with views on multiple windows - problems with removeFromSuperView on second window closure
Hello I have a view which is shown when a button is pressed this works fine, if I open a second window the view works fine and I can go back the prior window and use the view as I have used removeFromSuperview.
My problem is however if I close the…

user1887683
- 133
- 2
- 7
0
votes
3 answers
delete row with button in custom tableview cell
This is how the structure looks like.
--- UIView
---- ScrollView
--- TableView
.
UIView *topView = [[UIView alloc]initWithFrame:CGRectMake(0, -250, 320, 250)];
UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 70,…

Steaphann
- 2,797
- 6
- 50
- 109
0
votes
1 answer
Access Subclassed Superview?
I have a UITableView which is made up of my own custom UITableViewCells, subclassed as CustomCell. I add a UITextField to that cell and a method runs on certain events (from the text field).
When this method runs, I need to access the CustomCell…

Josh Kahane
- 16,765
- 45
- 140
- 253
0
votes
2 answers
Disable all superviews except a specific view
I have UIView that open with a UIButton click. I want to disable user interaction of all other superviews except to this specific view and his subviews, how can I do that? Just to make this view the only view that will response to user…

ytpm
- 4,962
- 6
- 56
- 113
0
votes
1 answer
Why size to fit doesn't work at all and do nothing in this obvious scenario
Let's examine this line of codes (only 1 actually change anything)
PO(self.containerForFormerHeader);
PO(self.containerForFormerHeader.subviews);
[self.containerForFormerHeader…

Anonymous White
- 2,149
- 3
- 20
- 27
0
votes
1 answer
Superview does not receive the touch action
I have one base view A with size of (0,0,320,280), it contain another view B with size of
(100,100,50,50) and View B has one button and one image view(C) as sub view. image view frame is same as view B, button has added in B's top left corner.
My…

thavasidurai
- 1,972
- 1
- 26
- 51
0
votes
1 answer
Custom Segue not allowing IBActions in destination controller
I have two View Controllers with views. The first one is a login screen and the second one fetches stuff from the web (irrelevant).
I used a custom segue animation and had to do some weird stuff with the superview to get the…

Deminetix
- 2,866
- 26
- 21
0
votes
0 answers
IOS - Superview is catching touch events on landscape mode
I've a UIViewController created programmatically, and when I insert its view to my general view, the 300 pixels in the bottom of the UIView aren't getting any touch event, the touch event is being caught by the superview, the main UIView.
The…

user1573607
- 522
- 9
- 23
0
votes
1 answer
Superview is Nil after Second Launch of View Controller
I've spent hours and I cant figure this out. I have a detail view controller (UITableView) which is launched here:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
EventLocationDetailController…

b.dot
- 109
- 1
- 11
0
votes
1 answer
how to check if if a UIView is still there?
i have to set some custom size parameters to a UIView according to the device orientation. i load the UIView which has NOT an own viewcontroller as follows:
in main.h
@property (nonatomic, retain) IBOutlet UIView *socialActionView;
in main.m…

rockstarberlin
- 1,853
- 1
- 18
- 31
0
votes
2 answers
Objective-c program crashes when trying to remove objects from superview
Bellow is the code i am calling when i press a button. The button will call the method bellow. But i get a "unrecognized selector sent to instance" error. What am i doing wrong? The objects have been declared in another method before this one is…

JH95
- 489
- 1
- 7
- 24
0
votes
3 answers
How to get a reference to the view controller of a superview?
Is there a way to get a reference to the view controller of my superview?
There were several instances that I needed this on the past couple of months, but didn't know how to do it. I mean, if I have a custom button on a custom cell, and I wish to…

Giovanni
- 257
- 5
- 13
-1
votes
1 answer
swift 4: Setting button's constrains to safe area while inside a view
I have a return button that is inside a view on the top left corner, and that view is anchored to the top of the safe area.
What I'm trying to set is the button's top and leading constraint to the top and the leading of the safe area, but since the…

Hidden
- 1
-1
votes
1 answer
Why there are so many controllers between user defined cell's UITextField and the cell view
I'd like to get parent view of UITextField on my user defined cell.
What I've tried is just call superview method and it returns UIView, not a my cell view.
So I invoked superview several times.
UITextField -> UIView -> UITableViewCellContentView ->…

Hongseok Yoon
- 3,148
- 8
- 36
- 51