Questions tagged [superview]
137 questions
0
votes
1 answer
Reload date from superview
I've got two views, view1 calls : [self.view addSubview:view2.view]; then views2 calls: [self.view removeFromSuperview]; and I want to reload data in view1 when view1 reappear but I can't call a method or update a property of view1 because I…

Jonathan Martin
- 21
- 1
- 4
0
votes
1 answer
Changing an imageview as a subview from one imageview to anotherone
I am creating an app, in which I have two small imageview (using have of screen each)
One of this views has a uiimageview as a subview, I need to change this view to be a subview of the otherImageView, after I drag it to it, I'm using…

Oscar
- 1,899
- 1
- 22
- 32
0
votes
1 answer
How to make a delegate object accessible throughout a ViewController
I'm trying to get an instance of my AppDelegate accessible to all methods in each ViewController that I have. If I try to declare it with other class variables I get Initializer Element is not a compile-time constant. If I declare it in a method…

JustLikeThat
- 353
- 1
- 5
- 17
0
votes
2 answers
EXC_BAD_ACCESS when remove from superview
My project using ARC, so I can't use retain nor release, in ViewController A, I init ViewController B and add its view as a subview:
ViewControllerB *viewB = [[ViewControllerB alloc] init];
[self.view addSubview:viewB.view];
And in…

Nguyen Minh Tuan
- 57
- 1
- 2
- 7
0
votes
2 answers
ios superview and subview
I have a superview and I add a subview to make a selection. In the superview (main view) I do the following:
[self.view addSubview:cityViewController.view];
In the cityView, when I have done what I need to do, I just do
self.view…

Jesse
- 891
- 1
- 13
- 22
0
votes
1 answer
Sending info from UITableView to SuperView
I have a UITableViewController that I pragmatically call into my superview when needed. When I tap a table view I want the info to be placed in a UITextField. now I can get it to log correctly from the superview but the text never gets placed in its…

FreeAppl3
- 858
- 1
- 15
- 32
0
votes
0 answers
Touch Gesture on image is not working in ScrollView? - Swift
This is the image on the scroll view where I'm able create those rectangles from superview
This is the image I want how to look my output when I touch to began creating multiple rectangles
I'm trying to create multiple annotations on images using…
0
votes
1 answer
Getting mouse down event on superview
I have an NSScrollView and its document view is an NSView subview titled MasterPage. On MasterPage I have a bunch (depending on user input) of subviews (from a class called Page).They are laid out in a grid format. I'm trying to capture the NSPoint…

PruitIgoe
- 6,166
- 16
- 70
- 137
0
votes
2 answers
In iPhone programming, should a subview change its own frame and center or should a superview change them?
I need the user to be able to drag a subview across the screen to change the subview's position. I know that it is possible to do it either way, but is one way preferred? And why?

Brett
- 1
0
votes
1 answer
UI table view is not responsive when I touch beyond its superview's position in iOS, UI Kit poroject
Context:
In the iOS UIKit project, written in swift
lets say I have a Super view - 'A' with frame (0, 0, 320, 200)
and I have a subview say 'B' with frame (0, 0, 320, 600)
and the view 'B' is added as a subview to the view 'A'
now the subview 'B' is…

Ravi kiran
- 135
- 1
- 1
- 6
0
votes
2 answers
Unable to remove view using removeFromSuperview method
I am not able remove view. I am adding view using addsubview method but when I use RemoveFromSuperView.
// Here I am adding view from login button
medicalViewObject=[[MedicalInfoViewController alloc] initWithNibName:@"MedicalInfoViewController"…

sharanu
- 7
- 7
0
votes
0 answers
Dropdownlist with tableview crash when add to superview
I would like to call tableview dropdownlist, but it will crash on viewcontroller because of superview!.addSubview(transparentView) clicked on textfield textbegin. How can i use the dropdownlist with tableview in the best way. please help with the…

wong john
- 55
- 4
0
votes
1 answer
After reopening app, UIToolbar superview takes up whole view
I have a UIToolbar setup in a superview on the bottom of my UITableView that is part of a UINavigationController.
It works fine when I'm using the app; however, when I close (send to background multitask) the app and then reopen it, the UIToolbar…

Long
- 1
- 1
0
votes
3 answers
Disable touch events on Superview only?
I have a subview on the screen that is loaded from a XIB, I need to disable touch events ONLY on its superview while not touching the subview in the end. How would I do this?
Also, I am using iOS.
Thanks!

SimplyKiwi
- 12,376
- 22
- 105
- 191
0
votes
1 answer
UIPopoverController with UITableView
I have a UIPopoverController that has a UITableView that is populated. I am trying to pass the information from the popovercontroller to the superview. The tableview that is placed in the popovercontroller is receiving the information with the…

FreeAppl3
- 858
- 1
- 15
- 32