nsrunloop
How does setNeedsLayout work?
I would like to know how Apple\'s -setNeedsLayout works. I already know that it\'s more efficient than directly calling -layoutSubviews, since I might need to do that twice in a method.[详细]
2023-04-13 08:18 分类:问答iOS: EXC_BAD_ACCESS caused by running timer in NSThread?
I have been having some crashes in my app.When checking the logs and using atos, it is telling me exactly where I get the crash, which is where I tell my NSRunLoop to run:[详细]
2023-04-13 05:05 分类:问答iOS5 crashes during runMode:beforeDate:
I have a problem with compatibility of my application with an iOS5 b7 and GM versions. The issue occurs in the next lines of code:[详细]
2023-04-11 17:08 分类:问答How to correctly invalidate my timer in NSRunLoop
I get information from a server in my app with a secondsToEnd value and I start a counter after I\'ve received this information.[详细]
2023-04-05 22:25 分类:问答Table view scroll issue when there's a "modal loop code"
I\'ve a problem with a U开发者_如何学PythonITableView scroll. In a view controller, I add my tableview and show it with presentModalViewController. The user has to select an item in the tableview bef[详细]
2023-04-02 03:19 分类:问答NSDefaultRunLoopMode vs NSRunLoopCommonModes
Whenever I try to download a big file behind UIScrollView, MPMapView or something, the downloading process gets halted as soon as I touch iPhone screen. Thankfully, an awesome blog post by Jörn sugge[详细]
2023-04-01 10:56 分类:问答Multiple NSURLConnections in different classes running parallel
Currently I have UITableView and simple UIView in my iPad application. Each of them needs to get data from remote Web-service simultaneously. In each ViewController I create NSURLConnection and run a[详细]
2023-03-21 05:41 分类:问答Refresh a NSOpenGLView within a loop without letting go of the main runloop in Cocoa
I am building an Cocoa/OpenGL app, for periods of about 2 second at a time, I need to control every video frame as well as writing to a digital IO device.[详细]
2023-03-14 11:26 分类:问答Background thread NSRunloop run does not exit after NSTimer is invalidated! Why?
I\'m creating an NSTimer and adding it to the runloop of a background thread. My code is like the background thread example for this answer: iPhone-SDK:Call a function in the background?[详细]
2023-03-13 04:42 分类:问答Keep NSThread alive and run NSRunLoop on it
So I\'m starting a new NSThread that I want to be able to use later by calling performSelector:onThread:.... From how I understand it calling that methods add that call to the runloop on that thread,[详细]
2023-03-11 13:47 分类:问答