setneedsdisplay
setNeedsLayout in UIView subviews
I have a UIViewController and in willRotateToInterfaceOrientation, i am calling [self view] setNeedsLayout];[详细]
2023-04-12 03:21 分类:问答setNeedsDisplay for UIImage doesn't work
I am trying to draw a line on an UIImage with the help of a dataBuffer when a button gets touched, but the drawRect: .. methode doesn´t get called. (so, the line i want to draw does\'t appear)[详细]
2023-04-08 08:43 分类:问答Is setNeedsDisplay *always* repainting?
I wrote a little custom-view-application using cocoa. And later (yes, i know it\'s bad) I just asked myself: Would this work for cocoa touch as well? Of course id did not work instantly, I had to chan[详细]
2023-04-02 16:04 分类:问答Does setNeedsDisplay have immediate effect or it is merely queued for later?
Does anybody here know whether setNeedsDisplay results in an immediate drawRect call and immediate updatin开发者_运维知识库g of the screen?[详细]
2023-03-30 16:31 分类:问答iOS: How to "Refresh" a UIViewController after Popping its Child UIViewController?
In my app I\'m using UINavigationController. I have a \"parent\" UIViewController and a \"child\" UIViewController running on the stack. The user can do some settings on the child that are later on su[详细]
2023-03-25 05:10 分类:问答drawRect not getting called when needed under OS X
I am using a window that uses a subclass of NSView.Part of it is drawn when the program starts, another part needs to be drawn when the user clicks on a button in another window.The code for the other[详细]
2023-03-22 06:45 分类:问答iphone - SetNeedsDisplay not working
I\'m trying to refresh my main view in this code. It shows the right sub-view, but it\'s keeping the other views already shown. I already tried setNeedsDisplay and setNeedsLayout but no success.[详细]
2023-03-20 16:02 分类:问答iPhone SDK UIView drawRect and orientation change
I\'ve wrote this code... plotView is drawn programmatically by drawRect method... the problem is when I change the device orientation... all the views are not scaled properly... what\'s the matter wit[详细]
2023-03-16 19:56 分类:问答UIView setNeedsDisplay Not on main thread?
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 tri[详细]
2023-02-18 23:45 分类:问答php foreach getting values from an array
I am having trouble accessing the values in an array,the array looks like this, Array ( [0] => Array[详细]
2022-12-28 00:34 分类:问答