subview Questions
3
Solved
When I add my slider as subview of any view besides self.view it does not work (doesn't slide) but it works fine when it is a subview of self.view. You can see it on the other views besides self.vi...
3
I have a function below and when I link with the iOS 11 SDK, I get an error:
Do not add subviews directly to the visual effect view itself, instead add them to the -contentView.
The problem ca...
Wits asked 22/9, 2017 at 2:20
4
Solved
I have a MainView that adds a subview (signUpWindow) when a sign up button is pressed.
In my signUpWindow subview (SignUpWindowView.swift), I set up each field with a function, as an example:
fun...
Plantain asked 28/4, 2015 at 17:15
4
Solved
A Container View can be easily added into a storyboard through Interface Editor. When added, a Container View is of a placeholder view, an embed segue, and a (child) view controller.
However, I am...
Layby asked 22/5, 2016 at 5:13
10
Solved
In a CollectionView, some cells should have an additional subview or layer. The CollectionView can be told to resize it's cells, thus all content needs to resize appropriately.
Currently, the cell...
Undue asked 8/3, 2013 at 20:54
1
I have a UIView mainView, I've added 4 buttons in each corners as subviews. I added shadow to my mainView like this
mainView.layer.shadowColor = [[UIColor blackColor] CGColor];
mainView.view.laye...
Uncommunicative asked 25/9, 2013 at 20:7
2
Solved
I have two subviews: the purple one belongs to a main view and it works wonderful with the syntax:
sSubview.center = view.center
The orange one belongs to the purple view and the same syntax do...
4
I have webview.
Now I want to add a subview to it. I added it using addsubview method.
The view got added, but did not scrolled with webview.
I want my subview to be scrolled with the webview.
...
3
Solved
I know there is a samilar question Only ONE VIEW landscape mode, and I've readed it carefully before I ask this one.
I have a WKWebview named as webview in my app, and the webview have a subview n...
Tommyetommyrot asked 20/4, 2017 at 3:2
1
Solved
I have created a UIStackView in IB which has the distribution set to Fill Equally. I am looking to get the frame for each subView but the following code always returns (0, 0, 0, 0).
class ViewCont...
Ashcraft asked 19/3, 2017 at 18:4
2
I try to using unity scene as a subview for my Android app. I did like this tutorial http://forum.unity3d.com/threads/using-unity-android-in-a-sub-view.98315/ . But I got a problem. My screen is bl...
Argonaut asked 25/6, 2015 at 4:7
2
I'm building an iOS app in swift with Xcode 6.
I'm trying to embed a view controller with a table view in a scrollview. When the user drags in the table view, it is suppose to move the table, not t...
Bizet asked 9/9, 2015 at 22:1
3
Solved
I want a view to fade in when being added to the stack via
[self.view addSubview:someSecondaryViewController.view];
How do I animate this call so that the view fades in (and out)?
Inundate asked 17/5, 2010 at 0:2
2
In view on viewcontroller i can know when view on screen by viewDidAppear.
But in subclassed view from UIView can't know.
In android each view has methods didAttachToWindow and didDeattachFromWin...
4
In a subclass of UIView I have this:
-(BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event
{
if(touch occurred in a subview){
return YES;
}
return NO;
}
What can I put in the if s...
1
Solved
3
Solved
For an app I'm building, I have a custom "old map" effect PNG that I'd like to overlay on the MKMapView view. Unfortunately, neither way I've tried to do this is exactly right:
Add a subview to t...
2
Solved
Assuming I load a view controller from a nib, and decide to do something with one of its subview behind the scene. At a later moment in time, I would show the view of this view controller.
viewCon...
3
Solved
i have trouble with setNeedsDisplay. I have an UIView with a lot of sub UIViews, created in Inteface Builder. I have also an Button with IBAction. In this IBAction i want to redraw/reload all UIVie...
Eton asked 23/1, 2012 at 22:31
4
Solved
What is the difference between addSubview and insertSubView methods when a view is added programmatically?
Massey asked 5/10, 2009 at 9:54
1
I am new to IOS, and Trying to pass two values form a UIViewController to a UIView. I followed few examples,some posts, tried and still no luck. I am getting this error while running the applicatio...
Planck asked 9/11, 2015 at 9:9
4
Solved
Like I said, I add a UIButton in Interface Builder, I want add a UILabel、UIImageView as the button's subviews, but I can't add any object on it in IB. IS anybody know how to do this? Thank you very...
Reprise asked 14/11, 2012 at 7:52
3
Solved
I have an UIImageView which I add to a UIView to enhance the area where touches are recognized. When I try to center the UIImageView in the UIView (code below) the center is set properly but when I...
Hindoo asked 7/11, 2012 at 13:45
2
Solved
I am trying to add some images to my UIImageView. Everything works fine if the png has the same size as the ImageView.
But when I insert a bigger image, it is not discarded.
This is my code:
@IB...
Ruble asked 6/8, 2014 at 15:21
3
I have a UICollectionView which supports horizontal and vertical scrolling. Each collection view cell is a subclass of UICollectionViewCell and they are loaded from a NIB that contains UIButton's, ...
Gerick asked 23/3, 2014 at 9:54
© 2022 - 2024 — McMap. All rights reserved.