subviews

Subviews not displaying during Flip Transition

让人想犯罪 __ 提交于 2020-01-17 10:43:10
问题 I am doing a flip transition between two subviews of a container view. The container view is NOT fullscreen and is not the root view of the view controller (it is a subview thereof, taking roughly the bottom third of the screen). Of the two child views being switched in the flip transition (both of them UIImageView), one of them has two children in turn (again, of UIImageView type). This subview is the one that "goes away" as a result of the transition. As soon as the transition starts, the

Subviews not displaying during Flip Transition

僤鯓⒐⒋嵵緔 提交于 2020-01-17 10:42:50
问题 I am doing a flip transition between two subviews of a container view. The container view is NOT fullscreen and is not the root view of the view controller (it is a subview thereof, taking roughly the bottom third of the screen). Of the two child views being switched in the flip transition (both of them UIImageView), one of them has two children in turn (again, of UIImageView type). This subview is the one that "goes away" as a result of the transition. As soon as the transition starts, the

How to render a collection of different Marionette Views

ⅰ亾dé卋堺 提交于 2019-12-25 16:36:24
问题 I am trying to render a backbone collection of views. The collection could be any kind of marionette view ( layoutView, CompositeView, collectionView, ItemView). When I try and render, I get “[object Object]” for each view that renders. This leads me to believe that it doesn't know which view to render when it grabs one from the collection. I have now started using getChildView() in the CollectionView that is suppose to render the collection of Views but I am unsure how to specify the type of

“Magic Move” Effect Custom Transition

吃可爱长大的小学妹 提交于 2019-12-22 09:14:53
问题 I trying to get a custom transition between two View Controllers. First, here's a picture to illustrate what I want : I want a UICollectionViewCell to expand to the whole screen. In this cell, the subviews are placed with Autolayout in IB. I just want each subview to go to the new position. So I tried subview.frame = newSubview.frame in the animation block, but it doesn't work (because of Autolayout I think). I thought to delete the constraints while the animation is occuring, but it doesn't

xcode Removing Some Subviews from view

淺唱寂寞╮ 提交于 2019-12-18 12:23:46
问题 Greetings all, I am a noob and I have been trying to work through this for a few days. I am adding images to a view via UItouch. The view contains a background on top of which the new images are add. How do I clear the images I am adding from the subview, without getting rid of the UIImage that is the background. Any assistance is greatly appreciated. Thanks in Advance. here is the code: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *) event { NSUInteger numTaps = [[touches

Autolayout and subviews

戏子无情 提交于 2019-12-18 10:41:07
问题 I am using the iAd suite with storyboards from Apple, as per this link... Apple iAd Storyboard documentation It all works fine until I turn autolayout on. It builds fine but crashes on running. The output I get is: 2013-08-24 12:06:36.138 TabbedBanner[7272:c07] * Assertion failure in -[UIView layoutSublayersOfLayer:], /SourceCache/UIKit_Sim/UIKit-2380.17/UIView.m:5781 2013-08-24 12:06:36.139 TabbedBanner[7272:c07] * Terminating app due to uncaught exception 'NSInternalInconsistencyException',

VB.net get location of userControl in another container

怎甘沉沦 提交于 2019-12-13 07:24:01
问题 While referring to the above image: in VB.net,I have four instances of Windows.Forms.UserControl. A,B,C, and D. As you can see, B is in A, C is in B, and D is in C. D has a reference to A, and would like to calculate its location in A. Something like Me.getLocationInContainer(A) where Me is referring to D. How can I do this? I have done a bit of research and found pointToScreen() and pointToClient() but can't really figure out how to make use of them. The function names are not helping either

Why aren't the backgrounds within these UITextViews clear?

大城市里の小女人 提交于 2019-12-13 03:44:01
问题 I am attempting to display individual characters in the exact positions that they would appear if displayed as a single string with kerning. The problem is that the characters' bounding boxes seem to be opaque, so that each newly added character covers some of the prior one. Where kerning is greater (e.g., in the combination "ToT"), the problem is obvious: My setup is something like this: I have an SKView embedded in a container view. In an extension of the SKView's view controller, the

How to remove only user-added subviews from my UIView

南笙酒味 提交于 2019-12-12 08:50:01
问题 I'm trying to remove all the subviews that I've added to my view, so I've implemented a loop to iterate over the subviews with the following: for subview in view.subviews { println(subview) //subview.removeFromSuperview() } I tested this by adding a UILabel to my view and then ran this code. The output contained my UILabel but also a _UILayoutGuide. So, my question is how can I determine if a subview is one that I added or one that the system added? 回答1: If you just want to prevent the loop

Embedding subview in main view Swift

半腔热情 提交于 2019-12-11 07:57:14
问题 If you look at this image (I don't want to upload it, as it does not belong to me), you will see what appears to be a uiview inside the main uiview controller in the settings app of an iPad. My question is, how do I replicate this programatically? In other words, how do I embed a UIView in another? Here's what I know and have done: Based on my research, this is called "subviews". Is this correct? I have created a UIView with the proper elements that I want in interface builder. It is