What is the point of it? I see that NSThread is bad if you do it the wrong way because your blocking the main thread. But remember when I showed you the url shortener? You said its blocking the main thread. What does that mean?
NSThread is not bad, only if you call methods on UIKit objects or try to draw on the screen. You need to use a different thread if your doing something that would block the main thread.
@BlurKingApple, you're right using GCD instead of NSLock should give less problems
Apple2Life 1 year ago
If you didn't already know you can also use NSLock to access global variables properly to prevent problems.
macheads101 1 year ago
@macheads101 NSLock is more trouble then its worth.
ipodtouchguru3 1 year ago
@macheads101 @ipodtouchguru3 I use GCD instead of NSLock. Works great.
BlurKingApple 1 year ago
Nice tutorial dude. I like that not only give the tutorial but explain the disadvantages/ advantages of them
NJDevilfan26 2 years ago
I didn't get it but cool.
AppStoreMod 2 years ago
What don't you get?
ipodtouchguru3 2 years ago
What is the point of it? I see that NSThread is bad if you do it the wrong way because your blocking the main thread. But remember when I showed you the url shortener? You said its blocking the main thread. What does that mean?
AppStoreMod 2 years ago
NSThread is not bad, only if you call methods on UIKit objects or try to draw on the screen. You need to use a different thread if your doing something that would block the main thread.
ipodtouchguru3 2 years ago
Oh I see. Alright. But I still don't know how I will be able to not block it.
AppStoreMod 2 years ago
You just don't understand
ipodtouchguru3 2 years ago
@AppStoreMod you stop the code from running in one thread and run it in another.
macheads101 1 year ago