subview Questions
4
I have a UIView called view1. view1 has a subview called subview. I added UITapGestureRecognizer to subview as follow:
UITapGestureRecognizer *recognizer = [[UITapGestureRecognizer alloc]initWithT...
Worldling asked 2/6, 2012 at 21:37
12
Solved
I have a custom class of buttons in a UIView that I'd like to add to an array so that they're easily accessible. Is there a way to get all subviews of a specific class and add it to an array in Swi...
11
I'm struggling with this problem!
I want to add a google maps GMSMapView into a UIView that is only a portion of the main UIView of my ViewController.
It should be simple... I created with the sto...
Mesenchyme asked 14/3, 2013 at 18:51
3
Solved
I am trying to put a custom view inside a UIAlertController. I'm running into some odd issues with the sizing of the custom view.
I want the custom view to span the width of the UIAlertController,...
Sallust asked 19/4, 2017 at 20:46
4
Solved
I have looked around all over for an answer to this and I have tried to implement it, but nothing is working. Basically, I need to be able to observe changes in a VC view's subviews array. If an ex...
Peachy asked 6/11, 2014 at 18:35
4
Solved
I have a random child view in a view hierarchy. What is the best/fastest/cleverest way to get to the root superview?
Cheers,
Doug
2
Solved
Is there anyway to detect a hidden state change (or other change) in a sub view in a UIView (not UIViewController). Would like to detect this async somehow.
There are reasons for my madness.
7
Solved
I must add a UIImageView as subview of MapView. To do this I created a layer above the MapView. In this layer I want to put my image, but I get a white rectangle and nothing else. My image is not v...
Trueblood asked 7/11, 2012 at 15:12
5
Solved
I'm trying to display a UILabel on top of a UINavigationController. The problem is that when I add the UILabel as a subview of UIWindow it will not automatically rotate since it is not a subview of...
Seko asked 26/3, 2010 at 21:51
2
Solved
I have a child/subview which is a template for instances inside the parent view. This child view a is circle that can be moved around the screen by the user. The initial drag of this circle is supp...
9
Solved
My app didn't have any crash until iOS 7.1 came out. Now on any removeFromSuperview method, crash. For example: I got view controllers, and when I want to remove a view controller, I remove all of ...
Unmusical asked 11/3, 2014 at 17:10
8
Solved
I am working on integrating an ad provider into my app currently. I wish to place a fading message in front of the ad when the ad displays but have been completely unsuccessful.
I made a function ...
3
Solved
This question is really basic. What is the performance difference between removing a UIView from the view hierarchy and hiding a UIView?
I have read that Views that are not needed should be remove...
5
Solved
I have TabBar with 2 tabs. At some point, from either of the 2 tabs, I want to add a view that is visible on both tab views but behind the TabBar.
So I thought, insert a subview into the TabBarCon...
Nikko asked 2/9, 2015 at 22:16
4
I have a UIScrollView that contains other subviews that are partially drawn outside of the scrollview. These views extend vertically above the scrollview. Is it possible to only allow the subviews ...
Nero asked 9/2, 2014 at 23:16
8
Solved
I have a parent UIView with a number of subviews. Periodically I need to remove a subview and completely remove it from the system. What is the correct way to do this? I tried this:
UIView *v = [s...
Perseus asked 4/10, 2009 at 12:28
4
Solved
How do I test if a subview has already been added to a parent view? If it hasn't been added, I want to add it. Otherwise, I want to remove it.
6
Solved
everyone.
I have some labels that I draw them in the xib file, and
add a background view using codes,but the background view
is in the front of these labels, so I cant see them. So,
my question ...
Rattoon asked 7/4, 2012 at 3:33
4
Solved
I am developing an application. In that I get all subviews of UITableViewCell.
The code for this one is:
(void)listSubviewsOfView:(UIView *)view {
// Get the subviews of the view
NSArray *sub...
Maldon asked 19/4, 2012 at 5:26
2
Solved
I have a view controller which contains a sub-view. And inside the sub-view class, I may need to pop out an alert when some condition is satisfied.
class GameViewController: UIViewController {
@I...
15
Solved
When my app gets back to its root view controller, in the viewDidAppear: method I need to remove all subviews.
How can I do this?
22
Solved
I want to list out all the subviews in a UIViewController. I tried self.view.subviews, but not all of the subviews are listed out, for instance, the subviews in the UITableViewCell are not found. A...
Prudery asked 30/8, 2011 at 13:25
4
Solved
I have an UIView with around 50 UIButtons. All button positions were given in pixels, relative to the left upper corner of my main UIView.
All (background) images used in the view are available in...
Ogawa asked 4/2, 2013 at 23:34
18
Solved
How can I loop through all subviews of a UIView, and their subviews and their subviews?
Meat asked 30/4, 2010 at 17:35
4
Solved
I have an app which I add a subview to (and remove the same subview based on user interactions). I am looking for a way to check whether the subview is present or not at any given time.
For exampl...
Aporia asked 16/10, 2011 at 19:54
1 Next >
© 2022 - 2024 — McMap. All rights reserved.