<h3>First way (NSOperationQueue):</h3><pre style="background-color: #f0f0f0; border: 1px dashed rgb(204, 204, 204); font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; width: 646.4666748046875px;"> NSOperationQueue *q = [[NSOperationQueue alloc] init]; [q addOperationWithBlock:^{ //Do Things }]; [q release]; </pre><h3>Second way:</h3><pre style="background-color: #f0f0f0; border: 1px dashed rgb(204, 204, 204); font-family: arial;...

<h3>Get IOS version number or string</h3><pre class="lang-c prettyprint" style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;">[[UIDevice currentDevice] systemVersion]</pre><div style="background-color: white;...

<ol><li>Use the next line after adding the subview:</li></ol><pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> self.view.window.rootViewController.view.frame = [UIScreen mainScreen].applicationFrame; </pre><div><ol><li>Write in application delegate:</li></ol></div><div><pre style="background-color: #f0f0f0; border: 1px dashed rgb(204, 204, 204);...

This reserved word is used to group methods/functions, to see them organized in xcode method list.If you add a ‘-‘ character in the mark a bar will apear in xcode method list<blockquote>#pragma mark -</blockquote>Example:<pre style="background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color:...

In Facebook.mChange:<pre style="background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> [self authorizeWithFBAppAuth:YES safariAuth:YES]; </pre>To: <div class="p1"> <pre style="background: none repeat scroll 0% 0% rgb(240, 240, 240);...