Questions tagged [removefromsuperview]

9 questions
2
votes
0 answers

Xamarin.iOS Crash - Xamarin_iOS_UIKit_UIView_RemoveFromSuperview

We're seeing lots of crashes recorded by App Center that seem to occur pretty far down in the Xamarin.iOS stack. We'd like to discover if it's something we are doing incorrectly. Details from App Center are below. Are there any types of UI work that…
kiroc
  • 86
  • 5
1
vote
1 answer

Segueing from Child ViewController

I have a situation where I am presenting a child view controller "B" onto another view controller "A". View controller "B" has 5 buttons which segue(push) to a third view controller, "C". The problem is once I'm at view controller "C", I want to be…
0
votes
1 answer

myView.removeFromSuperview() don't delete my line on myView, why?

I have made a greenView: static func createRectView( x: Float, y: Float, width: Float, height: Float, color: UIColor, transparency: Float ) -> UIView { let viewRectFrame = CGRect( x: CGFloat(x), y:…
0
votes
2 answers

UIView alerts not being removed from Superview

I've used some code from a YouTube video (Custom Alerts in Swift 5 (Xcode 11) - 2020 iOS App by IOS Academy) to create a custom alert in swift that enters the scene from the top of an iPhone screen, stops in the middle of the screen, then when the…
0
votes
1 answer

CABasicAnimation performance before removeFromSuperView()

I have a code-created button. Every time I click, I want it to perform CABasicAnimation before removeFromSuperView(). But if I add removeFromSuperView() after that, it will instantly removeFromSuperView() without any animation. @objc func…
VEvergarden
  • 105
  • 11
0
votes
1 answer

Dismiss completly a view controller in middle

I've been looking for days. Here's the problem: I have a Home view controller. When it receives a notification, it presents a NotiViewController, called noti1, by `home.present(noti1, animated: true, completion: nil)`. After 15sec, another…
-1
votes
2 answers

Removing views from vertical stackview

noob question as always. I have ViewController that contains a vertical stackview. Inside the stack are labels and textfields (the label describes the text to be inputted into the textfield). Depending on what the user selects from a list of items…
Chris
  • 109
  • 1
  • 8
-1
votes
1 answer

removeFromSuperView() removes all of its subviews

I have a simple question regarding the method removeFromSuperview() When for example I use it to remove a UIView, do I remove also all of this view subviews? I tried to search online but didn't find anything explanatory at least to me.
StackGU
  • 868
  • 9
  • 22
-2
votes
1 answer

Remove from superview not working in animation completion handler

I have a UIView with several UILabels added. I am simply moving them all to the center of the screen with an animation, and then attempting to remove them from their superview in the animation completion handler. for (label in [self.view…
Scooter
  • 4,068
  • 4
  • 32
  • 47