setneedsdisplay Questions

1

Solved

I've custom button, app crashes randomly on call to setNeedsDisplay. How to fix this crash? class MyVC: UIViewController { @IBOutlet weak var customButton: CustomButton! override func viewWill...
Vanir asked 1/9, 2019 at 23:15

5

Solved

When creating an iOS app, I'm confused as to when exactly I need to call setNeedsDisplay? I know that it has something to do with updating/redrawing the UI; however, do I need to call this every ti...
Phelips asked 30/5, 2012 at 14:28

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

2

Solved

I would like to have a UIView subclass that implements a method similar to setNeedsDisplay, except that redrawing (i.e., that would usually be called via drawRect:) will occur in a background threa...
Specious asked 15/1, 2014 at 13:54

3

Solved

I'm using CMMotionManager for retrieving accelerometer data. The thing is that the accelerometer data gets printed periodically, the instance variables are changed in the view, but the view doesn't...
Pearlstein asked 29/11, 2011 at 15:20

1

Solved

I have a UIView that takes data (thats changing) from a buffer and plots it. I want the screen udpated at 10Hz. The UIView is called pane, and this is how i'm invoking it inside the ViewController:...
Anabolite asked 14/6, 2013 at 0:43

1

Solved

What is the real difference between UIView methods setNeedsLayout and setNeedsDisplay? As usual documentation is foggy about this.
Nightrider asked 24/1, 2013 at 17:15

2

Solved

I saw many threads related to this issue, but none addresses my case (I think). My case should be simple, I have a Custom UIView in my controller, from my controller, I use the [self.myView setNee...
Wendt asked 17/12, 2012 at 14:46

2

Solved

I'm struggling with setNeedsDisplay. I thought it was supposed to trigger calls of drawRect: for the view for which it is called and the hierarchy below that if it's within the view's bounds, but I...
Beckner asked 14/7, 2012 at 1:41

1

Solved

In my iPhone application, I have a secondary thread that I have made for performing tasks in the background, and every few milliseconds, the view must be updated (not from the main thread). I have ...
1

© 2022 - 2024 — McMap. All rights reserved.