My cognizance on bits and bytes
Friday, July 26, 2013
iOS - To print if the code is running on main thread or not.
NSLog
(
@"Code is%@ running on Main Thread"
, ([
NSThread
isMainThread
] ?
@""
:
@" NOT"
));
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment