<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-86102586188294394</id><updated>2024-10-09T07:13:22.436+05:30</updated><category term="iOS Programming"/><category term="Mac OS"/><category term="Facebook"/><category term="Facebook single sign on"/><category term="Foursquare"/><category term="Weak link in iOS"/><category term=".crash"/><category term=".dSYM"/><category term="AVSpeechSynthesizer"/><category term="Android emulator shortcuts"/><category term="Android emulator."/><category term="Change apple push notification view button text"/><category term="Check if string is numeric"/><category term="Clear trash using terminal"/><category term="Copy"/><category term="Copy and MutableCopy"/><category term="Dialog box focus"/><category term="Difference between MutableCopy and Copy"/><category term="Displaying map in Facebook feed in iOS"/><category term="Facebook feed with map"/><category term="Facebook feed with map in iOS"/><category term="Facebook wall post"/><category term="Feed"/><category term="MacOS Lion"/><category term="MoviePlayerViewController black status bar problem"/><category term="MutableCopy"/><category term="Mutablecopy and copy"/><category term="NSClassFromString"/><category term="NSSearchField arrow keys"/><category term="NSSearchField handling"/><category term="NSSearchField new line"/><category term="NSSearchField return key press"/><category term="NSString in iOS"/><category term="Notification Alert sound"/><category term="Play YouTube Video"/><category term="Push Notification"/><category term="Register local notification in iOS"/><category term="String handling in iOS"/><category term="TableView"/><category term="UILocalNotification"/><category term="XCode4.3"/><category term="alphabetical method list"/><category term="alphabetical method list in xcode"/><category term="apns button text"/><category term="apple push notification button text"/><category term="apple push notification view button"/><category term="application launch image in iOS"/><category term="application load image"/><category term="application start image"/><category term="backward compatibility"/><category term="cancelAllLocalNotification"/><category term="cancelLocalNotification"/><category term="class from dtring in ios"/><category term="customizing local notification"/><category term="difference between release and drain"/><category term="emptying trash in mac"/><category term="emptying trash using terminal"/><category term="emulator shortcuts keys"/><category term="enable tab ."/><category term="event kit"/><category term="iOS"/><category term="iPad launch image"/><category term="map in feed"/><category term="method list in alphabetical order in xcode"/><category term="methods list in alphabetical order in Xcode 4"/><category term="movie player black status bar"/><category term="numeric string in iOS"/><category term="objective-C"/><category term="release and autorelease in ios"/><category term="release and drain in ios"/><category term="status bar hides after video is over in iPad"/><category term="symbolicate crash iphone"/><category term="tab in mac os"/><category term="voice to text"/><category term="weak link"/><title type='text'>Saroj&#39;s Blogs</title><subtitle type='html'>Apple, Mac, and iOS</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-1965208627273855731</id><published>2014-05-08T11:41:00.003+05:30</published><updated>2014-05-27T22:51:15.204+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="AVSpeechSynthesizer"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="voice to text"/><title type='text'>AVSpeechSynthesizer example iOS7</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;There is no doubt that iOS has a very rich set of APIs and that richness is getting just better with each release of the OS. Blocks, ARC, GCD, Background Fetch etc are making the things a lot more easier and thus makes the app more intuitive in terms of performance and in terms of usability.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Since long people/developers have wanted to incorporate the voice interaction into their app and this made devs use other frameworks like&amp;nbsp;&lt;a href=&quot;http://www.politepix.com/openears/&quot; target=&quot;_blank&quot;&gt;OpenEar&lt;/a&gt;&amp;nbsp;etc which is quite difficult to implement in real sense.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;But, with the introduction of iOS 7, iOS has received a set of APIs to accomplish the text to voice functionality that too in different voices, based on the devices current locale or can be set through code. So, lets dive into it.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;a href=&quot;https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVSpeechSynthesizer_Ref/Reference/Reference.html#//apple_ref/occ/cl/AVSpeechSynthesizer&quot; target=&quot;_blank&quot;&gt;&lt;i&gt;AVSpeechSynthesizer&lt;/i&gt;&lt;/a&gt;&amp;nbsp;is the class under&amp;nbsp;&lt;i&gt;&lt;a href=&quot;https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVFoundationFramework/_index.html#//apple_ref/doc/uid/TP40008072&quot; target=&quot;_blank&quot;&gt;AVFoundation&lt;/a&gt;&lt;/i&gt;&amp;nbsp;framework which is used to leverage the text to voice functionality. There are a couple of other classes involved as well to handle the things like speed, pitch, voice etc.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;The text to voice can be implemented in simple four lines of code as below,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, Times New Roman, serif;&quot;&gt;&lt;i&gt;AVSpeechUtterance&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;*utterence = [[&lt;/span&gt;AVSpeechUtterance&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;initWithString&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:@&quot;Hi there.&quot;];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, Times New Roman, serif;&quot;&gt;&lt;i&gt;utterence.&lt;span class=&quot;s3&quot;&gt;rate&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;s4&quot;&gt;0.25f&lt;/span&gt;;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, Times New Roman, serif;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s1&quot;&gt;AVSpeechSynthesizer *synthesizer&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp;= [[&lt;/span&gt;AVSpeechSynthesizer&lt;span class=&quot;s2&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;init&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, Times New Roman, serif;&quot;&gt;&lt;i&gt;[&lt;span class=&quot;s4&quot;&gt;synthesizer&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;s2&quot;&gt;speakUtterance&lt;/span&gt;:utterence];&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, Times New Roman, serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;And wollahh!! you are done.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;But that is not all.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Notice that we have created an&amp;nbsp;&lt;i&gt;&lt;a href=&quot;https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVSpeechUtterance_Ref/Reference/Reference.html#//apple_ref/occ/cl/AVSpeechUtterance&quot; target=&quot;_blank&quot;&gt;AVSpeechUtterance&lt;/a&gt;&lt;/i&gt;&amp;nbsp;object. Utterance basically defines the kind of speech you want including pitch, speed, voice, volume, pre and post delays between speeches.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Right now we have just defined an utterance with the speed(.25) we wanted, and we can add above properties to the speech as needed. The speed can vary from 0.0f (super slow) to 2.0f(super fast). Take a look at the class for more on it.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Also, one thing to be noted about&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;a href=&quot;https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVSpeechSynthesizer_Ref/Reference/Reference.html#//apple_ref/occ/cl/AVSpeechSynthesizer&quot; target=&quot;_blank&quot;&gt;AVSpeechSynthesizer&lt;/a&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;is that if there is an ongoing speech and you ask the synthesizer to speak another text, this text will be added in a queue and will be spoken after the first speech is finished. So, in summary only one text/speech can be spoken at a time, rest are added in queue and dequeued on first come first serve (FCFS).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;We have just made the Siri say few words in devices current locale voice. Now lets go ahead an change the voice on demand which it can be done as below,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;AVSpeechSynthesisVoice&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;*voice = [&lt;/span&gt;AVSpeechSynthesisVoice&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp;voiceWithLanguage&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;zh-CN&lt;/i&gt;&lt;/span&gt;&lt;i style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span class=&quot;s3&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, Times New Roman, serif;&quot;&gt;&lt;i&gt;[utterence&amp;nbsp;&lt;span class=&quot;s2&quot;&gt;setVoice&lt;/span&gt;:voice];&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Notice that we have created a voice object and have set the voice to utterance. So, again its the utterance that has all the attributes of a speech. Also, in above, we have set the voice to Chinese but that doesn&#39;t mean that out English text will be converted to Chinese and Siri will speak in Chinese :).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;It simply means that the voice will be like a English spoken by a Chinese person,&amp;nbsp;&lt;i&gt;in short voice is the accent of speech&lt;/i&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Voice strings can be like en-US (English- United States), ar-SA (Arabic- Saudi Arabia), fr-FR (French - France), zh-CN (Chinese - China) and many more.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;AVSpeechSynthesizer does have a set of delegate methods in protocol&amp;nbsp;&lt;i&gt;&lt;a href=&quot;https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVSpeechSynthesizerDelegate_Ref/Reference/Reference.html#//apple_ref/occ/intf/AVSpeechSynthesizerDelegate&quot; target=&quot;_blank&quot;&gt;AVSpeechSynthesizerDelegate&lt;/a&gt;&lt;/i&gt;, which keeps you posted on the current state of the speech, started, ended, cancelled, the word that will be spoken next etc. However all the delegate methods are optional. Below are the list of delegate methods,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #3d85c6; font-family: Times, Times New Roman, serif;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)speechSynthesizer:(&lt;span class=&quot;s2&quot;&gt;AVSpeechSynthesizer&lt;/span&gt;&amp;nbsp;*)synthesizer didStartSpeechUtterance:(&lt;span class=&quot;s2&quot;&gt;AVSpeechUtterance&lt;/span&gt;&amp;nbsp;*)utterance;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #3d85c6; font-family: Times, Times New Roman, serif;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)speechSynthesizer:(&lt;span class=&quot;s2&quot;&gt;AVSpeechSynthesizer&lt;/span&gt;&amp;nbsp;*)synthesizer didFinishSpeechUtterance:(&lt;span class=&quot;s2&quot;&gt;AVSpeechUtterance&lt;/span&gt;&amp;nbsp;*)utterance;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #3d85c6; font-family: Times, Times New Roman, serif;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)speechSynthesizer:(&lt;span class=&quot;s2&quot;&gt;AVSpeechSynthesizer&lt;/span&gt;&amp;nbsp;*)synthesizer didPauseSpeechUtterance:(&lt;span class=&quot;s2&quot;&gt;AVSpeechUtterance&lt;/span&gt;&amp;nbsp;*)utterance;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #3d85c6; font-family: Times, Times New Roman, serif;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)speechSynthesizer:(&lt;span class=&quot;s2&quot;&gt;AVSpeechSynthesizer&lt;/span&gt;&amp;nbsp;*)synthesizer didContinueSpeechUtterance:(&lt;span class=&quot;s2&quot;&gt;AVSpeechUtterance&lt;/span&gt;&amp;nbsp;*)utterance;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #3d85c6; font-family: Times, Times New Roman, serif;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)speechSynthesizer:(&lt;span class=&quot;s2&quot;&gt;AVSpeechSynthesizer&lt;/span&gt;&amp;nbsp;*)synthesizer didCancelSpeechUtterance:(&lt;span class=&quot;s2&quot;&gt;AVSpeechUtterance&lt;/span&gt;&amp;nbsp;*)utterance;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #3d85c6; font-family: Times, Times New Roman, serif;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)speechSynthesizer:(&lt;span class=&quot;s2&quot;&gt;AVSpeechSynthesizer&lt;/span&gt;&amp;nbsp;*)synthesizer willSpeakRangeOfSpeechString:(&lt;span class=&quot;s2&quot;&gt;NSRange&lt;/span&gt;)characterRange utterance:(&lt;span class=&quot;s2&quot;&gt;AVSpeechUtterance&lt;/span&gt;&amp;nbsp;*)utterance;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Checkout the below video to see the&amp;nbsp;&lt;i&gt;&lt;a href=&quot;https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVSpeechSynthesizer_Ref/Reference/Reference.html#//apple_ref/occ/cl/AVSpeechSynthesizer&quot; target=&quot;_blank&quot;&gt;AVSpeechSynthesizer&lt;/a&gt;&lt;/i&gt;&amp;nbsp;in action in a demo app.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/L2koDh8t4ug&quot; width=&quot;420&quot;&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif; font-size: x-small;&quot;&gt;(Sorry that the sound is not there, as it is the screen recording, &amp;nbsp;but you can checkout the code an see for yourself)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;The source code of this demo app can found at my&amp;nbsp;&lt;a href=&quot;https://github.com/Sarojs/&quot; target=&quot;_blank&quot;&gt;Github&lt;/a&gt;&amp;nbsp;page&amp;nbsp;&lt;a href=&quot;https://github.com/Sarojs/AVSpeechSynthesizer&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;Thanks for checking it out and happy coding :)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a class=&quot;twitter-follow-button&quot; data-show-count=&quot;false&quot; href=&quot;https://twitter.com/sharma_saroj&quot;&gt;Follow @twitter&lt;/a&gt;
&lt;script&gt;!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?&#39;http&#39;:&#39;https&#39;;if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+&#39;://platform.twitter.com/widgets.js&#39;;fjs.parentNode.insertBefore(js,fjs);}}(document, &#39;script&#39;, &#39;twitter-wjs&#39;);&lt;/script&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;a class=&quot;twitter-share-button&quot; href=&quot;https://twitter.com/share&quot;&gt;Tweet This&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/1965208627273855731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2014/05/avspeechsynthesizer-example-ios7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/1965208627273855731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/1965208627273855731'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2014/05/avspeechsynthesizer-example-ios7.html' title='AVSpeechSynthesizer example iOS7'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/L2koDh8t4ug/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-8886615293259695095</id><published>2012-09-21T00:45:00.001+05:30</published><updated>2012-09-21T00:57:46.103+05:30</updated><title type='text'>Display toolbar with keyboard in iOS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Keyboard is the most basic component that we use to interact with our application, input data to a field.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;In most of the cases the buttons available on default keyboard is enough to fulfill the requirement but to make the application more interactive, intuitive we may tend to add some stuffs, controls over keyboard to aid our requirement in an elegant way.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;For an example, consider a situation where user needs to input some description in a &lt;i&gt;UITextView&lt;/i&gt; on a screen.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;One way could be that you use the keyboard return/done tap event to dismiss the keyboard and that may sound okay, but what if user wanted to supply a line break (paragraph) in his description text. In this case, user has no way but to leave it as it is, henceforth leaving a user down.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Other way could be display a pair of buttons, &quot;Cancel&quot; &quot;Apply&quot; , in the top on the navigation bar of screen. This will again work, but from a users perspective, user needs to type some 100 characters on keyboard and move his thumb all the way up to reach those abandoned buttons. Again a no-no from user point of view.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Now, what if we add a toolbar right above the keyboard with those &quot;Cancel&quot;, &quot;Apply&quot; button. Yeay!!!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Like this..Sounds good&lt;/span&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0-ELZ3iNdvUE4ddiwmqzUATqe1_XdtGi7Zd2EwEbi_Evng4DE0dl9ZsUNx10UWOKFl2eU753TLEJmi85vXVyJ1OKnFScQRR7UZ0-k2hyphenhyphen4XyeEzjG09iUQ_-ojUqfzVC2HOv76QKXOHHVg/s1600/ToolbarOnKeyborad.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;259&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0-ELZ3iNdvUE4ddiwmqzUATqe1_XdtGi7Zd2EwEbi_Evng4DE0dl9ZsUNx10UWOKFl2eU753TLEJmi85vXVyJ1OKnFScQRR7UZ0-k2hyphenhyphen4XyeEzjG09iUQ_-ojUqfzVC2HOv76QKXOHHVg/s320/ToolbarOnKeyborad.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;How to do it ???&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;There could be plenty of ways to show a toolbar above keyboard, like adding a custom view on self view, animating the view all the way from bottom to keyboard height with matching keyboard animation speed and again reversing the sequence when keyboard goes away. Annoying.. (Not to mention, I used to the same before coming to know the best solution).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Yes, the solution itself is in the UITextField and UITextView classes in the &quot;inputAccessoryView&quot; property.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;It is an accessory view to display when the UITextField or UITextView becomes first responder. and this accessory view is displayed right above the keyboard, as we wanted for our problem.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;For example we can create a custom view or a xib with toolbar and required buttons and set the inputAccessoryView as our view. The supplied view will be displayed above the keyboard.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;It can be done as below,&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;border: 0px; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 12px; line-height: 16px; padding: 0px;&quot;&gt;&lt;div class=&quot;line&quot; id=&quot;LC41&quot; style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 10px;&quot;&gt;
&lt;span class=&quot;n&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;UIView&lt;/span&gt; &lt;span class=&quot;o&quot; style=&quot;border: 0px; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;accessoryView&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;border: 0px; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;[[[&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;NSBundle&lt;/span&gt; &lt;span class=&quot;n&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;mainBundle&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;nl&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;loadNibNamed:&lt;/span&gt;&lt;span class=&quot;s&quot; style=&quot;border: 0px; color: #dd1144; margin: 0px; padding: 0px;&quot;&gt;@&quot;AccessoryView&quot;&lt;/span&gt; &lt;span class=&quot;nl&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;owner:&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;self&lt;/span&gt; &lt;span class=&quot;nl&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;options:&lt;/span&gt;&lt;span class=&quot;nb&quot; style=&quot;border: 0px; color: #0086b3; margin: 0px; padding: 0px;&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;n&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;lastObject&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line&quot; id=&quot;LC42&quot; style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 10px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;n&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;_textField&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;inputAccessoryView&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;border: 0px; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;accessoryView&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line&quot; id=&quot;LC43&quot; style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 10px;&quot;&gt;
&lt;span class=&quot;c1&quot; style=&quot;border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//    _textField.inputView=accessoryView;    &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line&quot; id=&quot;LC44&quot; style=&quot;border: 0px; margin: 0px; padding: 0px 0px 0px 10px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;n&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;accessoryView&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;border: 0px; font-weight: bold; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot; style=&quot;border: 0px; color: #0086b3; margin: 0px; padding: 0px;&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Here, we are loading a custom xib &quot;AccessoryView&quot; and assigning it to the inputAccessoryView of the current responder textField. Thus the AccessoryView will be displayed above the keyboard with &quot;Cancel&quot; and &quot;Apply&quot; buttons.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;To add, &quot;inputView&quot; property of&amp;nbsp;UITextField and UITextView classes is the view to be displayed when they become the first responder.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;For example, if in above code &quot;inputAccessoryView&quot; is replaced by &quot;inputView&quot;, it will show &quot;AccessoryView&quot; only when the textField becomes first responder i.e, keyboard won&#39;t be there.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&quot;inputAccessoryView&quot; are useful in more cases like to display auto complete text, display addition characters, smileys etcs&amp;nbsp;while user types. This may look elegant and usable in any way! Like this one,&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis4FsP1EA5t5CHjJpKMeSyLdH_qo2UxbJQhB4CYaGdJoc6Q8-DlYlt5tdw52iBwvdV31jCL68cybVYgM3CPu4bD71gwNHgUfBdO1K-IUdqtBFvFyzFewuGnYVO0_udlaL8H_BO9rM4nMkv/s1600/ToolBarOnKeyboard1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;90&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis4FsP1EA5t5CHjJpKMeSyLdH_qo2UxbJQhB4CYaGdJoc6Q8-DlYlt5tdw52iBwvdV31jCL68cybVYgM3CPu4bD71gwNHgUfBdO1K-IUdqtBFvFyzFewuGnYVO0_udlaL8H_BO9rM4nMkv/s400/ToolBarOnKeyboard1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;More info on&amp;nbsp;&quot;inputAccessoryView&quot; and &quot;inputView&quot; can be found &lt;a href=&quot;http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UITextView_Class/Reference/UITextView.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;You can &lt;a href=&quot;https://github.com/Sarojs/SK_KeyboardAccessoryExample&quot; target=&quot;_blank&quot;&gt;download&lt;/a&gt;&amp;nbsp;an example code and checkout yourself.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Hope this helps.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;https://twitter.com/sharma_saroj&quot; class=&quot;twitter-follow-button&quot; data-show-count=&quot;false&quot; data-lang=&quot;en&quot;&gt;Follow @twitterapi&lt;/a&gt;
&lt;script&gt;!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=&quot;//platform.twitter.com/widgets.js&quot;;fjs.parentNode.insertBefore(js,fjs);}}(document,&quot;script&quot;,&quot;twitter-wjs&quot;);&lt;/script&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://twitter.com/share&quot; class=&quot;twitter-share-button&quot; data-via=&quot;twitterapi&quot; data-count=&quot;horizontal&quot; data-lang=&quot;en&quot;&gt;Tweet&lt;/a&gt;
&lt;script&gt;!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=&quot;https://platform.twitter.com/widgets.js&quot;;fjs.parentNode.insertBefore(js,fjs);}}(document,&quot;script&quot;,&quot;twitter-wjs&quot;);&lt;/script&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/8886615293259695095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2012/09/display-toolbar-with-keyboard-in-ios.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/8886615293259695095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/8886615293259695095'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2012/09/display-toolbar-with-keyboard-in-ios.html' title='Display toolbar with keyboard in iOS'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0-ELZ3iNdvUE4ddiwmqzUATqe1_XdtGi7Zd2EwEbi_Evng4DE0dl9ZsUNx10UWOKFl2eU753TLEJmi85vXVyJ1OKnFScQRR7UZ0-k2hyphenhyphen4XyeEzjG09iUQ_-ojUqfzVC2HOv76QKXOHHVg/s72-c/ToolbarOnKeyborad.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-5550090650727643818</id><published>2012-05-25T15:45:00.000+05:30</published><updated>2012-05-25T15:45:42.915+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MacOS Lion"/><category scheme="http://www.blogger.com/atom/ns#" term="XCode4.3"/><title type='text'>Developer Essentials for MacOS Lion and XCode 4.3</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;In most of the cases as soon as you are done with the installation of MacOS Lion on your Mac, you may probably find below unexpected and unknown things.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;So, here is a list of some unexpected situations that you may face and solution for it.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;+ MacHD asks for password if you create or delete any folder MacOS Lion?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Solution:&amp;nbsp;&lt;/b&gt;Navigate to &quot;MacHD&quot; &amp;gt; Right click on &quot;MacHD&quot; icon &amp;gt; Select &quot;Get Info&quot; &amp;gt; Scroll down to &quot;Sharing &amp;amp; Permissions&quot; and change the privilege to &quot;Read &amp;amp; Write&quot; for all. It will not ask for permission again.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;+ How to Show/Unhide &quot;Library&quot; folder MacOS Lion or XCode 4.3?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Solution:&lt;/b&gt;&amp;nbsp;Open Terminal from Utilities in Applications directory and run this command, &quot;chflags nohidden ~/Library/&quot;, (without inverted commas).&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;+ Installed Application location in iPhone Simulator in MacOS Lion or XCode 4.3&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;b&gt;Solution: &lt;/b&gt;Applications installed on iPhone simulator in XCode 4.3 resides at this location &quot;.//Library/Application Support/iPhone Simulator/5.1/Applications/F8CFC9C3-D21C-4E08-920B-4F09256868F6/YourApplicationName.app&quot;. You can list all the applications and see their locations with below command &quot;find ./ -name &quot;YourApplicationName.app&quot;&quot; (without first and last inverted commas), and of course you can navigate directly to the application location using &quot;Go To Folder&quot; option in Finder &amp;gt; Go menu drop down.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Hope this helps!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/5550090650727643818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2012/05/developer-essentials-for-macos-lion-and.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/5550090650727643818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/5550090650727643818'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2012/05/developer-essentials-for-macos-lion-and.html' title='Developer Essentials for MacOS Lion and XCode 4.3'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-3753619659869608764</id><published>2012-03-02T18:37:00.001+05:30</published><updated>2012-03-03T01:05:18.923+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="Facebook wall post"/><category scheme="http://www.blogger.com/atom/ns#" term="Feed"/><title type='text'>Facebook wall post parameters</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;As you already know, Facebook iPhone app is the most downloaded app on iTunes AppStore and sharing contents on Facebook has become an usual requirement in iPhone apps.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;To post a feed on user&#39;s wall, we need to provide a set of values in the form of dictionary.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;To post a feed, we use below method of facebook class,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s1&quot;&gt;[&lt;/span&gt;facebook&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;dialog&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;: &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;feed&quot;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s2&quot;&gt;andParams&lt;/span&gt;: params&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s2&quot;&gt;andDelegate&lt;/span&gt;: &lt;span class=&quot;s4&quot;&gt;self&lt;/span&gt;];&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Here, &#39;params&#39; is the dictionary that contains set of values to be posted on Facebook users wall.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;A typical feed may look like below,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;-(&lt;span class=&quot;s4&quot;&gt;void&lt;/span&gt;)postToFacebook{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;NSString&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; *description = &lt;/span&gt;@&quot;Nice app to see movie trailers!&quot;&lt;span class=&quot;s1&quot;&gt;;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;NSString&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;* propString = &lt;/span&gt;@&quot;{\&quot;Download it free: \&quot;:{\&quot;href\&quot;:\&quot;http://itunes.apple.com/us/app/itunes-movie-trailers/id471966214?mt=8\&quot;,\&quot;text\&quot;:\&quot;On iTunes AppStore\&quot;}}&quot;&lt;span class=&quot;s1&quot;&gt;;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;// post FB dialog&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p8&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSMutableDictionary&lt;span class=&quot;s1&quot;&gt; *params = [&lt;/span&gt;NSMutableDictionary&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;dictionaryWithObjectsAndKeys&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s3&quot;&gt;@&quot;iTunes Movie Trailers!&quot;&lt;/span&gt;, &lt;span class=&quot;s3&quot;&gt;@&quot;name&quot;&lt;/span&gt;, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s7&quot;&gt;// Bold/blue name&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s3&quot;&gt;@&quot;www.apple.com&quot;&lt;/span&gt;, &lt;span class=&quot;s3&quot;&gt;@&quot;caption&quot;&lt;/span&gt;, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s7&quot;&gt;// 1st line&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; description, &lt;span class=&quot;s3&quot;&gt;@&quot;description&quot;&lt;/span&gt;,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s7&quot;&gt;// 2nd line&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;@&quot;http://itunes.apple.com/us/app/itunes-movie-trailers/id471966214?mt=8&quot;&lt;span class=&quot;s1&quot;&gt;, &lt;/span&gt;@&quot;link&quot;&lt;span class=&quot;s1&quot;&gt;,&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;@&quot;http://www.blogcdn.com/www.tuaw.com/media/2011/10/imovietrailersapp.jpg&quot;&lt;span class=&quot;s1&quot;&gt;, &lt;/span&gt;@&quot;picture&quot;&lt;span class=&quot;s1&quot;&gt;,&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; propString, &lt;span class=&quot;s3&quot;&gt;@&quot;properties&quot;&lt;/span&gt;,&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s4&quot;&gt;nil&lt;/span&gt;];&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; [&lt;span class=&quot;s8&quot;&gt;facebook&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;dialog&lt;/span&gt;: &lt;span class=&quot;s3&quot;&gt;@&quot;feed&quot;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s2&quot;&gt;andParams&lt;/span&gt;: params&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s2&quot;&gt;andDelegate&lt;/span&gt;: &lt;span class=&quot;s4&quot;&gt;self&lt;/span&gt;];&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Using this, the wall post on web page will look like below,&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMUUnVH8oDJg9lB29431rCJQQU2CsJrly70krcfcoCws0UC1_1rIAjsPQe-ebp6EvZEZa3-OzEvOw0PrQjRISrFN097aMMy_D6rBPBYDD_rExHCrQGarXaeDqggQBZ4iQx_zzY2XBTFead/s1600/fbShareWallExample.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMUUnVH8oDJg9lB29431rCJQQU2CsJrly70krcfcoCws0UC1_1rIAjsPQe-ebp6EvZEZa3-OzEvOw0PrQjRISrFN097aMMy_D6rBPBYDD_rExHCrQGarXaeDqggQBZ4iQx_zzY2XBTFead/s1600/fbShareWallExample.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif; font-size: small;&quot;&gt;eg. wall post&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;Keep integrating Facebook in your application !!!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/3753619659869608764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2012/03/dictionary-for-facebook-feed-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/3753619659869608764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/3753619659869608764'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2012/03/dictionary-for-facebook-feed-in.html' title='Facebook wall post parameters'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMUUnVH8oDJg9lB29431rCJQQU2CsJrly70krcfcoCws0UC1_1rIAjsPQe-ebp6EvZEZa3-OzEvOw0PrQjRISrFN097aMMy_D6rBPBYDD_rExHCrQGarXaeDqggQBZ4iQx_zzY2XBTFead/s72-c/fbShareWallExample.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-5688873011880257375</id><published>2012-01-06T14:47:00.000+05:30</published><updated>2012-01-06T16:51:44.261+05:30</updated><title type='text'>Custom tab bar in iphone</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
Tab bar in iPhone application is a desirable control when your application has multiple section and subsections.&amp;nbsp;It takes viewControllers to create the tabs and display on the view/window. The default color of tab bar controller is black.&lt;br /&gt;
&lt;br /&gt;
With introduction of iOS 5.0, we can change its tint color using,&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
tabBar.&lt;span style=&quot;color: #8e7cc3;&quot;&gt;tintColor&lt;/span&gt;=[&lt;span style=&quot;color: #0b5394;&quot;&gt;UIColor&lt;/span&gt; greenColor];&lt;br /&gt;
&lt;br /&gt;
But, this is not enough to satisfy our taste buds.&amp;nbsp;We are not at all going to create a custom tab bar, any inheritance etcs. We are just going to have some Image layers put onto the tab bar.&amp;nbsp;With a little tweak, we can use whatever image we like in tab bar.&lt;br /&gt;
&lt;div class=&quot;p3&quot;&gt;
For this we will need a set of Image for every tab like,&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggvRRzLsOYbiimx4gYywseb_lc2xCaIdvR3mM6QrDQnBBWzlpykbP537wcabqBJwcb18d5mAZ8npU20ao8imD2Bak9YN7HooxRg5oRmhxcWV7dQFnCY7a0Vb35PH37fnVcY6yfgrr_5Ij4/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggvRRzLsOYbiimx4gYywseb_lc2xCaIdvR3mM6QrDQnBBWzlpykbP537wcabqBJwcb18d5mAZ8npU20ao8imD2Bak9YN7HooxRg5oRmhxcWV7dQFnCY7a0Vb35PH37fnVcY6yfgrr_5Ij4/s1600/1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAlm5nF1VvdKUMMJYHrcNzF9v1ZYjkNZlulnMvjVcG5E1Ayz5w4p5EHFrm1W3CwRuPATpKrLv7TgXIq37vl1Y8ON1fpNWc-eQ-RLOu-rErCd-7rGjf4yw0S_7C02-BiGZVl6DoImudc4Tt/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAlm5nF1VvdKUMMJYHrcNzF9v1ZYjkNZlulnMvjVcG5E1Ayz5w4p5EHFrm1W3CwRuPATpKrLv7TgXIq37vl1Y8ON1fpNWc-eQ-RLOu-rErCd-7rGjf4yw0S_7C02-BiGZVl6DoImudc4Tt/s1600/2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr7Nim8chXGJtE9hO2BRmJPs1rc8niGBZ7L3HdxLy6hiuSwrc3xu15YyaqVlrTytVeXxfOZtp5LkW3FMVFnbP59I2OXrrMCSLQjnuiPhL65cl40aUbAv9UpNM9CrkZ-Ff_OgJy292flpBx/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr7Nim8chXGJtE9hO2BRmJPs1rc8niGBZ7L3HdxLy6hiuSwrc3xu15YyaqVlrTytVeXxfOZtp5LkW3FMVFnbP59I2OXrrMCSLQjnuiPhL65cl40aUbAv9UpNM9CrkZ-Ff_OgJy292flpBx/s1600/3.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfCiAGKhfoyxayfnTKCpDDqAY63IIrN2BCD-R-wpB6bchsj9tI9USkEUWHnh6QKR25SM6tYE3ymfGiFSjt9fzk7G9IP95y2A6EtVz6w_ur6BRR6Dg_DJ9L1y5wIKdMMhOhzpAmlTzcNIs8/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfCiAGKhfoyxayfnTKCpDDqAY63IIrN2BCD-R-wpB6bchsj9tI9USkEUWHnh6QKR25SM6tYE3ymfGiFSjt9fzk7G9IP95y2A6EtVz6w_ur6BRR6Dg_DJ9L1y5wIKdMMhOhzpAmlTzcNIs8/s1600/4.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaUWL6ffdLE8w5IgL1fYlk8S-ffM3Uqo21Fn6BaieLnYrQFOTarkCLE1p1rZ5E7efqjYVyv1DkA2fcX0NtYYL0ec2WEMtRqvWuK-ezoceqNxr7XP9TxBmuY0ecmxip3HxlNHaVUrfxaGzp/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaUWL6ffdLE8w5IgL1fYlk8S-ffM3Uqo21Fn6BaieLnYrQFOTarkCLE1p1rZ5E7efqjYVyv1DkA2fcX0NtYYL0ec2WEMtRqvWuK-ezoceqNxr7XP9TxBmuY0ecmxip3HxlNHaVUrfxaGzp/s1600/5.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span id=&quot;goog_220533040&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_220533041&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;
Now, we will need to&amp;nbsp;initialize&amp;nbsp;our view controller in &quot;didFinishLaunchingWithOptions&quot; method as below,&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;FirstViewController&lt;span class=&quot;s1&quot;&gt; *firstViewController=[[&lt;/span&gt;FirstViewController&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;] &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;initWithNibName&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;FirstViewController&quot;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;bundle&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:[&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;NSBundle&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;mainBundle&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;]];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;..&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;..&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;FifthViewController&lt;span class=&quot;s1&quot;&gt; *fifthViewController=[[&lt;/span&gt;FifthViewController&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;] &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;initWithNibName&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;FifthViewController&quot;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;bundle&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:[&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;NSBundle&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;mainBundle&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;]];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
and add to tab bar controller,&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s1&quot;&gt;NSArray&lt;/span&gt; *arr=[&lt;span class=&quot;s1&quot;&gt;NSArray&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;arrayWithObjects&lt;/span&gt;:firstViewController,secondViewController,thirdViewController,fourthViewController,fifthViewController,&lt;span class=&quot;s3&quot;&gt;nil&lt;/span&gt;];&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;tabBarController&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;=[[&lt;/span&gt;UITabBarController&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;] &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;init&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;tabBarController&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;setViewControllers&lt;span class=&quot;s4&quot;&gt;:arr];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Finally add this tab bar controller to the window,&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s1&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;.&lt;/span&gt;window&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;addSubview&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;tabBarController&lt;span class=&quot;s1&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Complete &quot;&lt;/span&gt;didFinishLaunchingWithOptions&quot; method in AppDelegate.m of application will typically look like below,&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;- (&lt;span class=&quot;s1&quot;&gt;BOOL&lt;/span&gt;)application:(&lt;span class=&quot;s2&quot;&gt;UIApplication&lt;/span&gt; *)application didFinishLaunchingWithOptions:(&lt;span class=&quot;s2&quot;&gt;NSDictionary&lt;/span&gt; *)launchOptions&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;{&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s3&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;// Override point for customization after application launch.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s4&quot;&gt;FirstViewController&lt;/span&gt; *firstViewController=[[&lt;span class=&quot;s4&quot;&gt;FirstViewController&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;alloc&lt;/span&gt;] &lt;span class=&quot;s5&quot;&gt;initWithNibName&lt;/span&gt;:&lt;span class=&quot;s6&quot;&gt;@&quot;FirstViewController&quot;&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;bundle&lt;/span&gt;:[&lt;span class=&quot;s2&quot;&gt;NSBundle&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;mainBundle&lt;/span&gt;]];&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s4&quot;&gt;SecondViewController&lt;/span&gt; *secondViewController=[[&lt;span class=&quot;s4&quot;&gt;SecondViewController&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;alloc&lt;/span&gt;] &lt;span class=&quot;s5&quot;&gt;initWithNibName&lt;/span&gt;:&lt;span class=&quot;s6&quot;&gt;@&quot;SecondViewController&quot;&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;bundle&lt;/span&gt;:[&lt;span class=&quot;s2&quot;&gt;NSBundle&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;mainBundle&lt;/span&gt;]];&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s4&quot;&gt;ThirdViewController&lt;/span&gt; *thirdViewController=[[&lt;span class=&quot;s4&quot;&gt;ThirdViewController&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;alloc&lt;/span&gt;] &lt;span class=&quot;s5&quot;&gt;initWithNibName&lt;/span&gt;:&lt;span class=&quot;s6&quot;&gt;@&quot;ThirdViewController&quot;&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;bundle&lt;/span&gt;:[&lt;span class=&quot;s2&quot;&gt;NSBundle&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;mainBundle&lt;/span&gt;]];&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s4&quot;&gt;FourthViewController&lt;/span&gt; *fourthViewController=[[&lt;span class=&quot;s4&quot;&gt;FourthViewController&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;alloc&lt;/span&gt;] &lt;span class=&quot;s5&quot;&gt;initWithNibName&lt;/span&gt;:&lt;span class=&quot;s6&quot;&gt;@&quot;FourthViewController&quot;&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;bundle&lt;/span&gt;:[&lt;span class=&quot;s2&quot;&gt;NSBundle&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;mainBundle&lt;/span&gt;]];&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s4&quot;&gt;FifthViewController&lt;/span&gt; *fifthViewController=[[&lt;span class=&quot;s4&quot;&gt;FifthViewController&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;alloc&lt;/span&gt;] &lt;span class=&quot;s5&quot;&gt;initWithNibName&lt;/span&gt;:&lt;span class=&quot;s6&quot;&gt;@&quot;FifthViewController&quot;&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;bundle&lt;/span&gt;:[&lt;span class=&quot;s2&quot;&gt;NSBundle&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;mainBundle&lt;/span&gt;]];&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s2&quot;&gt;NSArray&lt;/span&gt; *arr=[&lt;span class=&quot;s2&quot;&gt;NSArray&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;arrayWithObjects&lt;/span&gt;:firstViewController,secondViewController,thirdViewController,fourthViewController,fifthViewController,&lt;span class=&quot;s1&quot;&gt;nil&lt;/span&gt;];&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s3&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;tabBarController&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;=[[&lt;/span&gt;UITabBarController&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;init&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s3&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;tabBarController&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;setViewControllers&lt;span class=&quot;s3&quot;&gt;:arr];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s3&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;window&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;addSubview&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;tabBarController&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s3&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;window&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;makeKeyAndVisible&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s3&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;return&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;YES&lt;span class=&quot;s3&quot;&gt;;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Now, the idea is that, we can add an ImageView over the tab bar and update the image with tab change in viewWillAppear method of every viewController as below,&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i style=&quot;color: #3d85c6;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)viewWillAppear:(&lt;span class=&quot;s1&quot;&gt;BOOL&lt;/span&gt;)animated {&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i style=&quot;color: #3d85c6;&quot;&gt;[&lt;span class=&quot;s1&quot;&gt;super&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;viewWillAppear&lt;/span&gt;:animated];&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i style=&quot;color: #3d85c6;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;(&lt;/span&gt;UIView&lt;span class=&quot;s3&quot;&gt; *view &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;tabBarController&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;tabBar&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;subviews&lt;span class=&quot;s3&quot;&gt;) {&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;([view &lt;/span&gt;isKindOfClass&lt;span class=&quot;s3&quot;&gt;:[&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;UIImageView&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;class&lt;span class=&quot;s3&quot;&gt;]]) {&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[view &lt;/span&gt;removeFromSuperview&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;s3&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;tabBarController&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;tabBar&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;insertSubview&lt;span class=&quot;s3&quot;&gt;:[[[&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;UIImageView&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;alloc&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;initWithImage&lt;span class=&quot;s3&quot;&gt;:[&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;UIImage&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;imageNamed&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;@&quot;1.png&quot;&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;]] &lt;/span&gt;autorelease&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;atIndex&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;];&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;br /&gt;
You can download the example code from &lt;i&gt;&lt;a href=&quot;https://docs.google.com/open?id=0B1zrqMLcVMBOMDY2MTRhZWMtNWEyMC00ODVlLWI5NTMtNjUyNWQ3YjlkZDdj&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/5688873011880257375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2012/01/custom-tab-bar-in-iphone.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/5688873011880257375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/5688873011880257375'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2012/01/custom-tab-bar-in-iphone.html' title='Custom tab bar in iphone'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggvRRzLsOYbiimx4gYywseb_lc2xCaIdvR3mM6QrDQnBBWzlpykbP537wcabqBJwcb18d5mAZ8npU20ao8imD2Bak9YN7HooxRg5oRmhxcWV7dQFnCY7a0Vb35PH37fnVcY6yfgrr_5Ij4/s72-c/1.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-1111189180998118573</id><published>2011-09-28T09:29:00.000+05:30</published><updated>2012-01-06T14:45:24.349+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="backward compatibility"/><category scheme="http://www.blogger.com/atom/ns#" term="class from dtring in ios"/><category scheme="http://www.blogger.com/atom/ns#" term="event kit"/><category scheme="http://www.blogger.com/atom/ns#" term="NSClassFromString"/><category scheme="http://www.blogger.com/atom/ns#" term="weak link"/><category scheme="http://www.blogger.com/atom/ns#" term="Weak link in iOS"/><title type='text'>Weak link in iphone SDK</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Well, there happened a case when I was using the latest iOS SDK&amp;nbsp; for the development purpose, and built an application which utilized the eventKit framework, and the framework used &quot;eventKit&quot; was a new addition to the framework list. &lt;br /&gt;
&lt;br /&gt;
I used the eventKit on the fly and submitted to the appstore for the approval process, and as a matter the application was approved.&lt;br /&gt;
&lt;br /&gt;
But, the case happened when the application was being downloaded and it used to crash at the app launch on the earlier iOS&#39;s.&lt;br /&gt;
&lt;br /&gt;
Digging around the problem, I came to know about the weak link thing for a framework, and uploaded the updated build to app store.&lt;br /&gt;
&lt;br /&gt;
The idea is that, If you are using a framework that is not available to all the devices that you have selected as target devices, make the framework as weak link. &lt;br /&gt;
&lt;br /&gt;
This can be done as below:&lt;br /&gt;
* Select the project target &amp;gt; Right click &amp;gt; Get-Info.&lt;br /&gt;
* Go to general tab &amp;gt; Linked libraries.&lt;br /&gt;
* Select the framework and make it a weak link.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja_15amWdOOsUixJP98IRaK8HhSmN9Rndp0ae0V9ndz-BAJDY-EJlSVrQYRnXedkBjiSa7JsxzhNKscXsW2Khw6-lfzRFXhs8DVuyFIN9C-wxKCv67qclPXBjsdEsmHtYn7a2YgQE0s2mY/s1600/target.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja_15amWdOOsUixJP98IRaK8HhSmN9Rndp0ae0V9ndz-BAJDY-EJlSVrQYRnXedkBjiSa7JsxzhNKscXsW2Khw6-lfzRFXhs8DVuyFIN9C-wxKCv67qclPXBjsdEsmHtYn7a2YgQE0s2mY/s1600/target.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPHsdYckeyXSpwHDJ4Et2ZYbr8mTrBxcCCXPAB6Uiwp_aHTx41tZhhdlmhDKGRKSQ0_Ab-tUpK4w_pd-2g4qaLAgMBzsAOJ6vuWvN1_Eq6Pq8bsEuVy0dOCaln7w8Y9MXOost5fpTWMwnY/s1600/weakLink.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPHsdYckeyXSpwHDJ4Et2ZYbr8mTrBxcCCXPAB6Uiwp_aHTx41tZhhdlmhDKGRKSQ0_Ab-tUpK4w_pd-2g4qaLAgMBzsAOJ6vuWvN1_Eq6Pq8bsEuVy0dOCaln7w8Y9MXOost5fpTWMwnY/s320/weakLink.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Also, keep in if you mark a framework as weak linked, be sure to check for its availability before using any of its functionally.&lt;br /&gt;
&lt;br /&gt;
You can check for the existence of the class like below code sample:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;Class theClass = (NSClassFromString(@&quot;UILocalNotification&quot;));&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;if(theClass){&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;// Class exists&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;else{&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;// Class does not exists&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/1111189180998118573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/09/weak-link-in-iphone-sdk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/1111189180998118573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/1111189180998118573'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/09/weak-link-in-iphone-sdk.html' title='Weak link in iphone SDK'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja_15amWdOOsUixJP98IRaK8HhSmN9Rndp0ae0V9ndz-BAJDY-EJlSVrQYRnXedkBjiSa7JsxzhNKscXsW2Khw6-lfzRFXhs8DVuyFIN9C-wxKCv67qclPXBjsdEsmHtYn7a2YgQE0s2mY/s72-c/target.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-7864056675405718268</id><published>2011-09-24T12:29:00.000+05:30</published><updated>2011-09-27T12:24:39.710+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android emulator shortcuts"/><category scheme="http://www.blogger.com/atom/ns#" term="Android emulator."/><category scheme="http://www.blogger.com/atom/ns#" term="emulator shortcuts keys"/><title type='text'>List of Android emulator shortcuts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Android development is like cream, handling the emulator is on the other side.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Android emulator almost covers up the screen. In some cases you may not even see the&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&#39;Home&#39; button of the emulator screen, like on screens with resolution 1366 x 768.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Using android emulator shortcuts is the best way to get rid of such problems. Using shortcuts may&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;also increase the speed at which you work with the emulators.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Thus regardless of the screen resolution use of android emulator shortcuts is always encouraged.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Here is a list of android emulator shortcut keys:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;Escape &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;Back button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;Home &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;Home button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;F2 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PageUp Menu button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;Shift-F2 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;PageDown Start button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;F3 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Call/Dial button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;F4 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Hangup/EndCall button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;F5 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Search button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;F7 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Power button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;Ctrl-F3 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;Ctrl-KEYPAD_5 Camera button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;Ctrl-F5 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;KEYPAD_PLUS Volume up button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;Ctrl-F6&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;KEYPAD_MINUS Volume down button&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;KEYPAD_5 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DPAD center&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;KEYPAD_4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;DPAD left&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;&lt;/span&gt;KEYPAD_6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DPAD right&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;KEYPAD_8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp;DPAD up&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;KEYPAD_2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DPAD down&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;F8 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Toggle cell network on/off&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;F9 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Toggle code profiling (when -trace set)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;Alt-ENTER &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Toggle fullscreen mode&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;Ctrl-T &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;Toggle trackball mode&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;Ctrl-F11, KEYPAD_7&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Rotate screen orientation to previous or next layout&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;Ctrl-F12, KEYPAD_9&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;Rotate screen orientation to previous or next layout&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;And now, Start using the shortcuts...&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/7864056675405718268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/7864056675405718268'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/09/android-emulator-short-cuts.html' title='List of Android emulator shortcuts'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-639945619001547797</id><published>2011-08-11T13:17:00.000+05:30</published><updated>2011-09-27T12:27:46.331+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="apns button text"/><category scheme="http://www.blogger.com/atom/ns#" term="apple push notification button text"/><category scheme="http://www.blogger.com/atom/ns#" term="apple push notification view button"/><category scheme="http://www.blogger.com/atom/ns#" term="Change apple push notification view button text"/><category scheme="http://www.blogger.com/atom/ns#" term="Push Notification"/><title type='text'>Change apple push notification view button text</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
We can not change the text of cancel button, but the view button text can be changed.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
The payload dictionary has a field &quot;action-loc-key&quot;, which takes the alternate text for view button.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
The payload dictionary can look like,&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;aps&quot;: {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;alert&quot;: {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;body&quot;: &quot;Bob wants to play poker&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;action-loc-key&quot;: &quot;PLAY&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;badge&quot;: 5,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp; },&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;acme1&quot;: &quot;bar&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;acme2&quot;: [&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;bang&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;whiz&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp; &amp;nbsp; ]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Here the text &quot;Bob wants to play poker&quot; will be the body of alert. and there will &quot;cancel&quot; and &quot;PLAY&quot;. Here button text view will be replaced by &quot;PLAY&quot;.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
For more details on this visit apple reference document here.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/639945619001547797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/639945619001547797'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/08/change-apns-view-button-text.html' title='Change apple push notification view button text'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-4892459490730061885</id><published>2011-08-10T14:07:00.000+05:30</published><updated>2011-09-27T12:30:48.622+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="alphabetical method list"/><category scheme="http://www.blogger.com/atom/ns#" term="alphabetical method list in xcode"/><category scheme="http://www.blogger.com/atom/ns#" term="method list in alphabetical order in xcode"/><category scheme="http://www.blogger.com/atom/ns#" term="methods list in alphabetical order in Xcode 4"/><title type='text'>method list in alphabetical order in xcode 4</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
There was an option in Xcode-3x in preference with a check box to enable or disable the alphabetical listing of methods, as seen in below picture:&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhduYeP2bF2awvRzr8z9MqAQHr6xcpqKNSgOunak58L2t79-6CVFRXariD6g3-87QOcovrFsN4djtEseoXGUwk7q0__9l8vlRXEZBdde6AiPOnyReSvLRonBaFeWYFY2_8aMEpbaR57EnNV/s1600/Xcode3+alphatical+methods+list.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhduYeP2bF2awvRzr8z9MqAQHr6xcpqKNSgOunak58L2t79-6CVFRXariD6g3-87QOcovrFsN4djtEseoXGUwk7q0__9l8vlRXEZBdde6AiPOnyReSvLRonBaFeWYFY2_8aMEpbaR57EnNV/s320/Xcode3+alphatical+methods+list.jpeg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;p1&quot;&gt;
(Xcode3.x option)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
In Xcode-4x they have removed this option.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
To list the methods alphabetically press &lt;span class=&quot;s1&quot;&gt;⌘ &lt;/span&gt;and click on the level in the path menu, as in below picture:&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR_WT1uljNOkDZH8LT-0jTY-X8wf8fhKCAksquLRzybwsI-RmPi6mHwoi1bVhqcqCHbdCNNIM6cJuf20NypUZTrtS9CqhBNaiLUH-Qx4jrQ9eFKzFYN6n4Ev3SOcnyjZllnWj6pkxMPYEX/s1600/Xcode4+alphatical+methods+list.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;162&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR_WT1uljNOkDZH8LT-0jTY-X8wf8fhKCAksquLRzybwsI-RmPi6mHwoi1bVhqcqCHbdCNNIM6cJuf20NypUZTrtS9CqhBNaiLUH-Qx4jrQ9eFKzFYN6n4Ev3SOcnyjZllnWj6pkxMPYEX/s320/Xcode4+alphatical+methods+list.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;p1&quot;&gt;
(Xcode4.x, &lt;span class=&quot;s1&quot;&gt;⌘&lt;/span&gt;+click)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Personally I liked the new feature in Xcode4, as we can list the methods alphabetically or sequentially whenever we want unlike Xcode3 where we had to stick with the option selected in settings tab.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/4892459490730061885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/4892459490730061885'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/08/alphabetical-methods-list-in-xcode4.html' title='method list in alphabetical order in xcode 4'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhduYeP2bF2awvRzr8z9MqAQHr6xcpqKNSgOunak58L2t79-6CVFRXariD6g3-87QOcovrFsN4djtEseoXGUwk7q0__9l8vlRXEZBdde6AiPOnyReSvLRonBaFeWYFY2_8aMEpbaR57EnNV/s72-c/Xcode3+alphatical+methods+list.jpeg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-8852332863908692504</id><published>2011-08-09T20:07:00.000+05:30</published><updated>2011-09-27T12:34:34.694+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Displaying map in Facebook feed in iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="Facebook feed with map"/><category scheme="http://www.blogger.com/atom/ns#" term="Facebook feed with map in iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Foursquare"/><category scheme="http://www.blogger.com/atom/ns#" term="map in feed"/><title type='text'>Displaying map in Facebook feed in iOS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
Sharing images on Facebook feeds is desirable most of the times and can be accomplished by using the attachments in the params dictionary.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
I went on a problem to post a Facebook feed that shares users current location as static map image.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
The options available was to use a static image from google and use the url as value for &#39;picture&#39; key in feeds parameters.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
But, doing this didn&#39;t work. It didn&#39;t showed any image on the wall.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
If you have a server that can cache and provide you the direct url of the static map image (generated by Microsoft Bing Map or Google Map), you can use that url for the feed purpose.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
But, since I didn&#39;t had any, I had no option but to see for workarounds.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Searching for the solutions, certainly I found that Foursquare application does share the users location in feed.&amp;nbsp;This foursquare proxy server url returns the static image of size 100x100 from Microsoft Bing Map.&amp;nbsp;You can change the lat/long value in the url and get the desired map for your location.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
It uses its proxy servers to generate and handle the map images.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
The url for image is of below format,&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;https://foursquare.com/mapproxy/18.5163333/73.9299163/map.png&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Its implementation code can look like below,&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: inherit; font-size: x-small;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;NSMutableDictionary&lt;span class=&quot;s1&quot;&gt;* params = [&lt;/span&gt;NSMutableDictionary&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;dictionaryWithObjectsAndKeys&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: inherit; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s3&quot;&gt;kFacebookAppId&lt;/span&gt;, &lt;span class=&quot;s4&quot;&gt;@&quot;app_id&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: inherit; font-size: x-small;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;@&quot;http://developers.facebook.com/docs/reference/dialogs/&quot;&lt;span class=&quot;s1&quot;&gt;, &lt;/span&gt;@&quot;link&quot;&lt;span class=&quot;s1&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: inherit; font-size: x-small;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;@&quot;https://foursquare.com/mapproxy/18.5163333/73.9299163/map.png&quot;&lt;span class=&quot;s1&quot;&gt;, &lt;/span&gt;@&quot;picture&quot;&lt;span class=&quot;s1&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: inherit; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s4&quot;&gt;@&quot;Facebook Dialogs&quot;&lt;/span&gt;, &lt;span class=&quot;s4&quot;&gt;@&quot;name&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: inherit; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s4&quot;&gt;@&quot;Reference Documentation&quot;&lt;/span&gt;, &lt;span class=&quot;s4&quot;&gt;@&quot;caption&quot;&lt;/span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: inherit; font-size: x-small;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;@&quot;Dialogs provide a simple, consistent interface for apps to interact with users.&quot;&lt;span class=&quot;s1&quot;&gt;, &lt;/span&gt;@&quot;description&quot;&lt;span class=&quot;s1&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: inherit; font-size: x-small;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;@&quot;Facebook Dialogs are so easy!&quot;&lt;span class=&quot;s1&quot;&gt;,&amp;nbsp; &lt;/span&gt;@&quot;message&quot;&lt;span class=&quot;s1&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: inherit; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s5&quot;&gt;nil&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: inherit; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: inherit; font-size: x-small;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;facebook&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;dialog&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;@&quot;feed&quot;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;andParams&lt;span class=&quot;s1&quot;&gt;:params &lt;/span&gt;andDelegate&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Thanks and hope this helps.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/8852332863908692504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/8852332863908692504'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/08/displaying-map-in-facebook-feed.html' title='Displaying map in Facebook feed in iOS'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-965853701070035268</id><published>2011-08-02T18:00:00.000+05:30</published><updated>2011-08-02T18:05:09.424+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Facebook single sign on"/><title type='text'>How to disable Facebook Single Sign On (SSO)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 11.0px &#39;Lucida Grande&#39;; color: #3a5998; min-height: 13.0px}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 11.0px &#39;Lucida Grande&#39;; color: #3a5998}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #4f8187}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #31595e}
p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 11.0px Menlo; min-height: 13.0px}
span.s1 {color: #ba2da2}
span.s2 {color: #703daa}
span.s3 {color: #4f8187}
span.s4 {color: #000000}
span.s5 {color: #3d1e81}
span.s6 {font: 11.0px Menlo; color: #31595e}
span.s7 {font: 11.0px Menlo; color: #000000}
span.s8 {font: 11.0px Menlo; color: #ba2da2}
&lt;/style&gt;   &lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;Single Sign On is the desirable feature in almost all applications supporting Facebook.&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;However, if you tend to a scenario where you do not want this SSO feature, you can&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;omit the feature in a simple single step without removing any of your code during&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;implementation of SSO.&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;To get away from SSO open Facebook.m file and replace method&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p3&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)authorize:(&lt;span class=&quot;s2&quot;&gt;NSArray&lt;/span&gt; *)permissions&lt;/div&gt;&lt;div class=&quot;p3&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delegate:(&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;&amp;lt;&lt;span class=&quot;s3&quot;&gt;FBSessionDelegate&lt;/span&gt;&amp;gt;)delegate {&lt;/div&gt;&lt;div class=&quot;p4&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p5&quot;&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; [&lt;/span&gt;_permissions&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;release&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p3&quot;&gt;&amp;nbsp; &lt;span class=&quot;s3&quot;&gt;_permissions&lt;/span&gt; = [permissions &lt;span class=&quot;s5&quot;&gt;retain&lt;/span&gt;];&lt;/div&gt;&lt;div class=&quot;p4&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p5&quot;&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &lt;/span&gt;_sessionDelegate&lt;span class=&quot;s4&quot;&gt; = delegate;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p4&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p6&quot;&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;authorizeWithFBAppAuth&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;safariAuth&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p3&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;p4&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;with&lt;/div&gt;&lt;div class=&quot;p4&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p3&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)authorize:(&lt;span class=&quot;s2&quot;&gt;NSArray&lt;/span&gt; *)permissions&lt;/div&gt;&lt;div class=&quot;p3&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delegate:(&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;&amp;lt;&lt;span class=&quot;s3&quot;&gt;FBSessionDelegate&lt;/span&gt;&amp;gt;)delegate {&lt;/div&gt;&lt;div class=&quot;p4&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p5&quot;&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; [&lt;/span&gt;_permissions&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;release&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p3&quot;&gt;&amp;nbsp; &lt;span class=&quot;s3&quot;&gt;_permissions&lt;/span&gt; = [permissions &lt;span class=&quot;s5&quot;&gt;retain&lt;/span&gt;];&lt;/div&gt;&lt;div class=&quot;p4&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p5&quot;&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &lt;/span&gt;_sessionDelegate&lt;span class=&quot;s4&quot;&gt; = delegate;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p6&quot;&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;authorizeWithFBAppAuth&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;NO&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;safariAuth&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;NO&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p3&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;p4&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;In SSO implementation the method &quot;&lt;span class=&quot;s6&quot;&gt;authorizeWithFBAppAuth&lt;/span&gt;&lt;span class=&quot;s7&quot;&gt;&quot; &lt;/span&gt;takes parameter as &quot;&lt;span class=&quot;s8&quot;&gt;YES&lt;/span&gt;&quot;&lt;span class=&quot;s8&quot;&gt;, &lt;/span&gt;which indicates Facebook to whether authorize from native Facebook application or from native Safari application.&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;Supplying the parameter&amp;nbsp; as &quot;&lt;span class=&quot;s8&quot;&gt;NO&lt;/span&gt;&quot; signifies not to open any other application for user authentication. And the application shows its authentication dialogue within application.&lt;/div&gt;&lt;div class=&quot;p7&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;Thats all you need to do, and the Facebook authentication dialogue opens within your application.&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/965853701070035268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/08/how-to-disable-facebook-single-sign-on.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/965853701070035268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/965853701070035268'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/08/how-to-disable-facebook-single-sign-on.html' title='How to disable Facebook Single Sign On (SSO)'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-3331289495571533653</id><published>2011-07-26T20:38:00.000+05:30</published><updated>2011-09-27T14:35:43.379+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Copy"/><category scheme="http://www.blogger.com/atom/ns#" term="Copy and MutableCopy"/><category scheme="http://www.blogger.com/atom/ns#" term="Difference between MutableCopy and Copy"/><category scheme="http://www.blogger.com/atom/ns#" term="MutableCopy"/><category scheme="http://www.blogger.com/atom/ns#" term="Mutablecopy and copy"/><category scheme="http://www.blogger.com/atom/ns#" term="objective-C"/><title type='text'>Difference between Copy and MutableCopy</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Verdana}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Verdana; min-height: 15.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3d1e81}
span.s1 {color: #703daa}
span.s2 {color: #3d1e81}
span.s3 {color: #d12e1b}
span.s4 {color: #ba2da2}
span.s5 {color: #000000}
span.s6 {color: #252bd8}
&lt;/style&gt;   &lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
The difference between &#39;copy&#39; and &#39;mutableCopy&#39; can be simply understood with polymorphism in Object Oriented Programming concepts.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
We will take the example of Array in objective-C. MutableArray is the extension of NSArray class. Therefore, all the methods available in NSArray is available in NSMutableArray, but the additional methods present in NSMutableArray is not known to NSArray class.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Now moving ahead, the copy method on an NSArray will return an object of type NSArray(The array that can not be modified). And mutableCopy method will return an object of mutable type (The array that can be modified).&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Now, there can below cases :&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Case 1:&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSArray&lt;/span&gt; *arr1=[&lt;span class=&quot;s1&quot;&gt;NSArray&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;arrayWithObjects&lt;/span&gt;:&lt;span class=&quot;s3&quot;&gt;@&quot;A&quot;&lt;/span&gt;,&lt;span class=&quot;s3&quot;&gt;@&quot;B&quot;&lt;/span&gt;,&lt;span class=&quot;s3&quot;&gt;@&quot;C&quot;&lt;/span&gt;, &lt;span class=&quot;s4&quot;&gt;nil&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSArray&lt;/span&gt; *arr2=[arr1 &lt;span class=&quot;s2&quot;&gt;copy&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSLog&lt;span class=&quot;s5&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;arr1:%@&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;,[arr1 &lt;/span&gt;description&lt;span class=&quot;s5&quot;&gt;]);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSLog&lt;span class=&quot;s5&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;arr2:%@&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;,[arr2 &lt;/span&gt;description&lt;span class=&quot;s5&quot;&gt;]);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
In this case an NSArray object is returned and is received in an NSArray object.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
So, the array received can not be modified.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Therefore, we will not be able to use below statement&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;[arr2 &lt;/span&gt;insertObject&lt;span class=&quot;s5&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;Z&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt; &lt;/span&gt;atIndex&lt;span class=&quot;s5&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Case 2:&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSArray&lt;/span&gt; *arr1=[&lt;span class=&quot;s1&quot;&gt;NSArray&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;arrayWithObjects&lt;/span&gt;:&lt;span class=&quot;s3&quot;&gt;@&quot;A&quot;&lt;/span&gt;,&lt;span class=&quot;s3&quot;&gt;@&quot;B&quot;&lt;/span&gt;,&lt;span class=&quot;s3&quot;&gt;@&quot;C&quot;&lt;/span&gt;, &lt;span class=&quot;s4&quot;&gt;nil&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSArray&lt;/span&gt; *arr2=[arr1 &lt;span class=&quot;s2&quot;&gt;mutableCopy&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSLog&lt;span class=&quot;s5&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;arr1:%@&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;,[arr1 &lt;/span&gt;description&lt;span class=&quot;s5&quot;&gt;]);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSLog&lt;span class=&quot;s5&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;arr2:%@&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;,[arr2 &lt;/span&gt;description&lt;span class=&quot;s5&quot;&gt;]);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
In this case an NSMutableArray object is returned and is received in an NSArray object.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Since the receiver object is of type NSArray, it doesn&#39;t know the methods present in NSMutableArray, arr2 will not be able to use any of the methods of NSMutableArray.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
That is, the method mutableArray will make no sense in this scenario.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
So, we will not be able to use below statement&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;[arr2 &lt;/span&gt;insertObject&lt;span class=&quot;s5&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;Z&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt; &lt;/span&gt;atIndex&lt;span class=&quot;s5&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Case 3:&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSArray&lt;/span&gt; *arr1=[&lt;span class=&quot;s1&quot;&gt;NSArray&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;arrayWithObjects&lt;/span&gt;:&lt;span class=&quot;s3&quot;&gt;@&quot;A&quot;&lt;/span&gt;,&lt;span class=&quot;s3&quot;&gt;@&quot;B&quot;&lt;/span&gt;,&lt;span class=&quot;s3&quot;&gt;@&quot;C&quot;&lt;/span&gt;, &lt;span class=&quot;s4&quot;&gt;nil&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSMutableArray&lt;/span&gt; *arr2=[arr1 &lt;span class=&quot;s2&quot;&gt;copy&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSLog&lt;span class=&quot;s5&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;arr1:%@&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;,[arr1 &lt;/span&gt;description&lt;span class=&quot;s5&quot;&gt;]);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSLog&lt;span class=&quot;s5&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;arr2:%@&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;,[arr2 &lt;/span&gt;description&lt;span class=&quot;s5&quot;&gt;]);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
In this case an NSArray object is returned and is received in an NSMutableArray type object. The receiver arr2 is now pointing to an object address that is of type NSArray. However arr2 has the additional methods than NSArray, it will not be able to use those methods coz the pointed object NSArray does not know the additional methods present in arr2(NSMutableArray).&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Hence, we will not be able to use below statement&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;[arr2 &lt;/span&gt;insertObject&lt;span class=&quot;s5&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;Z&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt; &lt;/span&gt;atIndex&lt;span class=&quot;s5&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Case 4:&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSArray&lt;/span&gt; *arr1=[&lt;span class=&quot;s1&quot;&gt;NSArray&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;arrayWithObjects&lt;/span&gt;:&lt;span class=&quot;s3&quot;&gt;@&quot;A&quot;&lt;/span&gt;,&lt;span class=&quot;s3&quot;&gt;@&quot;B&quot;&lt;/span&gt;,&lt;span class=&quot;s3&quot;&gt;@&quot;C&quot;&lt;/span&gt;, &lt;span class=&quot;s4&quot;&gt;nil&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSMutableArray&lt;/span&gt; *arr2=[arr1 &lt;span class=&quot;s2&quot;&gt;mutableCopy&lt;/span&gt;];&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSLog&lt;span class=&quot;s5&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;arr1:%@&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;,[arr1 &lt;/span&gt;description&lt;span class=&quot;s5&quot;&gt;]);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSLog&lt;span class=&quot;s5&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;arr2:%@&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;,[arr2 &lt;/span&gt;description&lt;span class=&quot;s5&quot;&gt;]);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;&amp;nbsp; &amp;nbsp; [arr2 &lt;/span&gt;insertObject&lt;span class=&quot;s5&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;Z&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt; &lt;/span&gt;atIndex&lt;span class=&quot;s5&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
In this scenario, the receiver(arr2) of type NSMutableArray receives an object of type NSMutableArray. Therefore, the receiver knows the additional methods of NSMutableArray as well as the object that is being pointed by receiver(arr2).&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
And finally below statement will work like charm,&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;s5&quot;&gt;[arr2 &lt;/span&gt;insertObject&lt;span class=&quot;s5&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;@&quot;Z&quot;&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt; &lt;/span&gt;atIndex&lt;span class=&quot;s5&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Log before insertion will be:&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;arr1:(&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; A,&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; B,&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; C&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;)&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;arr2:(&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; A,&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; B,&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; C&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;)&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
And log after insertion will be:&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;arr1:(&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; A,&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; B,&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; C&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;)&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;arr2:(&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; Z,&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; A,&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; B,&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; C&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;b&gt;)&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Hope above description helped you.&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/3331289495571533653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/3331289495571533653'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/07/difference-between-copy-and-mutablecopy.html' title='Difference between Copy and MutableCopy'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-7202810586404013053</id><published>2011-07-23T16:17:00.000+05:30</published><updated>2014-05-26T13:57:19.166+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac OS"/><title type='text'>Random questions in iOS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;1) How to disable UIWebView scrolling ?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
Ans: UIWebView is derived from UIScrollView. Therefor we must be able to disable the scrolling of UIWebView.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
Here is the working code:&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #2e0d6e; font-family: Menlo, monospace; font-size: 13px; line-height: 22.399999618530273px; text-indent: -24px; white-space: pre;&quot;&gt;UIScrollView&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;*&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2e0d6e; font-family: Menlo, monospace; font-size: 13px; line-height: 22.399999618530273px; text-indent: -24px; white-space: pre;&quot;&gt;scrollView&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-family: Courier New, Courier, monospace;&quot;&gt;=[[&lt;/span&gt;&lt;span style=&quot;color: #2e0d6e; font-family: Menlo, monospace; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white; line-height: 22.399999618530273px; white-space: pre;&quot;&gt;webView&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2e0d6e; font-family: Menlo, monospace; font-size: 13px; line-height: 22.399999618530273px; text-indent: -24px; white-space: pre;&quot;&gt;subViews&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-family: Courier New, Courier, monospace;&quot;&gt;]&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2e0d6e; font-family: Menlo, monospace; font-size: 13px; line-height: 22.399999618530273px; text-indent: -24px; white-space: pre;&quot;&gt;lastObject&lt;/span&gt;&lt;span style=&quot;color: #0b5394; font-family: Courier New, Courier, monospace;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
[&lt;span style=&quot;background-color: white; color: #2e0d6e; font-family: Menlo, monospace; font-size: 13px; line-height: 22.399999618530273px; text-indent: -24px; white-space: pre;&quot;&gt;scrollView&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #2e0d6e; font-family: Menlo, monospace; font-size: 13px; line-height: 22.399999618530273px; text-indent: -24px; white-space: pre;&quot;&gt;setScrollingEnabled:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #aa0d91; font-family: Menlo, monospace; font-size: 13px; line-height: 22.399999618530273px; text-indent: -24px; white-space: pre;&quot;&gt; NO&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2e0d6e; font-family: Menlo, monospace; font-size: 13px; line-height: 22.399999618530273px; text-indent: -24px; white-space: pre;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2e0d6e; font-family: Menlo, monospace; font-size: 13px; line-height: 22.399999618530273px; text-indent: -24px; white-space: pre;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;2) How to check the iOS version of device ?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;
Ans: This is a very frequent scenario where you need to check which version of iOS the target device is running.&lt;br /&gt;
&lt;br /&gt;
The very best solution that &lt;a href=&quot;https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/TransitionGuide/SupportingEarlieriOS.html#//apple_ref/doc/uid/TP40013174-CH14-SW1&quot; target=&quot;_blank&quot;&gt;Apple recommends&lt;/a&gt; is,&lt;br /&gt;
&lt;br /&gt;
&lt;ul class=&quot;code-lines&quot; style=&quot;background: rgb(255, 255, 255); border: 0px; counter-reset: li 0; font-family: Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.6em; list-style: none; margin: 0px 0px 0px 20px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px 0px 0px 10px; text-indent: -24px; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;code class=&quot;code-voice&quot; style=&quot;background: transparent; border: 0px; color: grey; font-family: Menlo, monospace; font-size: 0.9em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;k&quot; style=&quot;background: transparent; border: 0px; color: #aa0d91; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot; style=&quot;background: transparent; border: 0px; color: black; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;background: transparent; border: 0px; color: #2e0d6e; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;floor&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;background: transparent; border: 0px; color: black; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;background: transparent; border: 0px; color: #2e0d6e; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;NSFoundationVersionNumber&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;background: transparent; border: 0px; color: black; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot; style=&quot;background: transparent; border: 0px; color: #666666; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;lt;=&lt;/span&gt; &lt;span class=&quot;n&quot; style=&quot;background: transparent; border: 0px; color: #2e0d6e; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;NSFoundationVersionNumber_iOS_6_1&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;background: transparent; border: 0px; color: black; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot; style=&quot;background: transparent; border: 0px; color: black; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px 0px 0px 10px; text-indent: -24px; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;code class=&quot;code-voice&quot; style=&quot;background: transparent; border: 0px; color: grey; font-family: Menlo, monospace; font-size: 0.9em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;   &lt;span class=&quot;c1&quot; style=&quot;background: transparent; border: 0px; color: #007400; font-style: italic; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;// Load resources for iOS 6.1 or earlier&lt;/span&gt;
&lt;/code&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px 0px 0px 10px; text-indent: -24px; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;code class=&quot;code-voice&quot; style=&quot;background: transparent; border: 0px; color: grey; font-family: Menlo, monospace; font-size: 0.9em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;p&quot; style=&quot;background: transparent; border: 0px; color: black; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;k&quot; style=&quot;background: transparent; border: 0px; color: #aa0d91; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;p&quot; style=&quot;background: transparent; border: 0px; color: black; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px 0px 0px 10px; text-indent: -24px; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;code class=&quot;code-voice&quot; style=&quot;background: transparent; border: 0px; color: grey; font-family: Menlo, monospace; font-size: 0.9em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;   &lt;span class=&quot;c1&quot; style=&quot;background: transparent; border: 0px; color: #007400; font-style: italic; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;// Load resources for iOS 7 or later&lt;/span&gt;
&lt;/code&gt;&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px 0px 0px 10px; text-indent: -24px; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;code class=&quot;code-voice&quot; style=&quot;background: transparent; border: 0px; color: grey; font-family: Menlo, monospace; font-size: 0.9em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;p&quot; style=&quot;background: transparent; border: 0px; color: black; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/7202810586404013053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/07/random-questions-in-ios.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/7202810586404013053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/7202810586404013053'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/07/random-questions-in-ios.html' title='Random questions in iOS'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-2064238375097893118</id><published>2011-07-12T18:03:00.000+05:30</published><updated>2011-09-28T23:19:09.434+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="movie player black status bar"/><category scheme="http://www.blogger.com/atom/ns#" term="MoviePlayerViewController black status bar problem"/><category scheme="http://www.blogger.com/atom/ns#" term="status bar hides after video is over in iPad"/><title type='text'>Blank status bar problem with MediaPlayer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Verdana}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Verdana; min-height: 15.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #3d1e81}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #4f8187}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px}
p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #703daa}
span.s1 {color: #000000}
span.s2 {color: #ba2da2}
span.s3 {color: #4f8187}
span.s4 {color: #703daa}
span.s5 {color: #3d1e81}
span.s6 {font: 11.0px Menlo; color: #703daa}
span.s7 {font: 11.0px Menlo}
&lt;/style&gt;   &lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Playing videos in iOS is like butter and nothing much on developer side.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;iOS has provided &lt;b&gt;MediaPlayer.framework&lt;/b&gt; to play videos either from resource or from a http url.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;In a full screen application development, you might come across the problem that, after finish of the video play the status bar is hidden and the place for status bar is left blank (white).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Also, this problem may occur when you present the MoviePlayerViewController on current view and not on adding MoviePlayerViewController&#39;s view on the parent view&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;i.e,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;presentMoviePlayerViewControllerAnimated&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;moviePlayerViewController&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;not on doing&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;addSubview&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:[[&lt;/span&gt;moviePlayerViewController&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;moviePlayer&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;] &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;]];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Hey, and do not forget to test your code on iPad device, as you can find this problem only on device &amp;amp; works fine on simulator.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;You will notice that the status bar is left blank when you click on &quot;Done&quot; button while video is being played. If the video ends after full video play everything goes right.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;This white status bar may look like this:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz8h8Dca_pYgttR-MJq4fAhl4oZNq92glA3PNIjGhvdPF9ohid4otBUguHueAEks8DMz8GX4b9-B4184HxOf2aHp7dEpqExANr-eMhg-LobC3psJWA0hQJvmAuEfhyphenhyphenYchn-Ke8de2Mda15/s1600/blank+status+bar.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz8h8Dca_pYgttR-MJq4fAhl4oZNq92glA3PNIjGhvdPF9ohid4otBUguHueAEks8DMz8GX4b9-B4184HxOf2aHp7dEpqExANr-eMhg-LobC3psJWA0hQJvmAuEfhyphenhyphenYchn-Ke8de2Mda15/s320/blank+status+bar.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;To handle this problem, We add observers for MPMoviePlayer class&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;notifications and all you need is to set the status bar hidden in the method implementation of &#39;MPMoviePlayerPlaybackDidFinishNotification&#39; notification, as below:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;We can add &lt;span class=&quot;s4&quot;&gt;MoviePlayer &lt;/span&gt;notification observers as below:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;[[&lt;/span&gt;NSNotificationCenter&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;defaultCenter&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;] &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;addObserver&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;selector&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;@selector&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;(_MPMoviePlayerPlaybackDidFinishNotification) &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;MPMoviePlayerPlaybackDidFinishNotification&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;object&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;The implementation for &#39;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;MPMoviePlayerPlaybackDidFinishNotification&#39; can be as below:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;-(&lt;span class=&quot;s2&quot;&gt;void&lt;/span&gt;)_MPMoviePlayerPlaybackDidFinishNotification{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;UIApplication&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;sharedApplication&lt;span class=&quot;s1&quot;&gt;] &lt;/span&gt;setStatusBarHidden&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;withAnimation&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;UIStatusBarAnimationSlide&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;That is all we need to do.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;You can download the working code &lt;a href=&quot;https://docs.google.com/leaf?id=0B1zrqMLcVMBON2MyYzI0MGYtNmExZS00MGMyLWJmYjctMDM4MGM0ZTliNzc5&amp;amp;hl=en_US&quot;&gt;here&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/2064238375097893118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/07/blank-status-bar-problem-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/2064238375097893118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/2064238375097893118'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/07/blank-status-bar-problem-with.html' title='Blank status bar problem with MediaPlayer'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz8h8Dca_pYgttR-MJq4fAhl4oZNq92glA3PNIjGhvdPF9ohid4otBUguHueAEks8DMz8GX4b9-B4184HxOf2aHp7dEpqExANr-eMhg-LobC3psJWA0hQJvmAuEfhyphenhyphenYchn-Ke8de2Mda15/s72-c/blank+status+bar.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-2974569321241774656</id><published>2011-06-27T17:46:00.000+05:30</published><updated>2011-06-30T19:19:30.528+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="TableView"/><title type='text'>Horizontal scroll using tableView</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Verdana}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Verdana; min-height: 15.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #703daa}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px}
span.s1 {color: #4f8187}
span.s2 {color: #000000}
span.s3 {color: #3d1e81}
span.s4 {color: #252bd8}
span.s5 {color: #703daa}
&lt;/style&gt;   &lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Very recently I happened to be in an efficiency problem with displaying large amount of images.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;The problem was that I had to display more than 1000s images in horizontal in a way that user can scroll through in an easy and efficient way.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;In this case the very first thing that may come in to mind is using a ScrollView with ImageViews added into them. In such a case we have to do a lot of book keepings and I didn&#39;t wanted that.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Certainly an idea came into my mind, why not to using TableView with the help of &lt;b&gt;QuartzCore&lt;/b&gt;… as below.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Using QuartzCore we can rotate/transform the view. So, I added the table view on my view and rotated it by -90 degree (i.e, anti-clockwise) and made some adjustment in the view frame. Now, the table view is in horizontal mode.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Only thing is that image in cell is still not proper. So, change rotate the imageView also by +90 degree (i.e, clockwise). Hurrahhh!!! task complete..&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Initially the screen looked like this,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyfs7od3EVq5qRey8BI162wAgdDUn0GDmkgCS1t76AY7fW5_UwnvAe1KSZ7APnhXllfYzMAdWJXh6T_Itrwf_EPqm2alkpO7YeBMZ5jKzuYOzaJJ0cRqXfdGLqOlTWAcMn6pnuELl2KASL/s1600/vertical.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyfs7od3EVq5qRey8BI162wAgdDUn0GDmkgCS1t76AY7fW5_UwnvAe1KSZ7APnhXllfYzMAdWJXh6T_Itrwf_EPqm2alkpO7YeBMZ5jKzuYOzaJJ0cRqXfdGLqOlTWAcMn6pnuELl2KASL/s1600/vertical.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Vertical table view&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Final screen would look like this.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1nX3Wq3Y2pqayxSrHXiMCCKbMUVlsLQD1mc6GHQ-bdv6SHCk2wGKxKs7lkEnXz6cX-eq-nvmoJ_SoAiqCYLjzOZ20LhU0ki7kD4l3eCEW1b-fUnRtDZPlP13PWF4nWP0Yzq9LhuJgVuQ4/s1600/saroj+sharma.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1nX3Wq3Y2pqayxSrHXiMCCKbMUVlsLQD1mc6GHQ-bdv6SHCk2wGKxKs7lkEnXz6cX-eq-nvmoJ_SoAiqCYLjzOZ20LhU0ki7kD4l3eCEW1b-fUnRtDZPlP13PWF4nWP0Yzq9LhuJgVuQ4/s320/saroj+sharma.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Horizontal&amp;nbsp;table view&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;Rotating the tableView:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;m_tableView&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;layer&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;transform&lt;span class=&quot;s2&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;CATransform3DRotate&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;(&lt;/span&gt;CATransform3DIdentity&lt;span class=&quot;s2&quot;&gt;,-&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;1.57079633&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p4&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;m_tableView&lt;/span&gt;.&lt;span class=&quot;s5&quot;&gt;frame&lt;/span&gt;=&lt;span class=&quot;s3&quot;&gt;CGRectMake&lt;/span&gt;(&lt;span class=&quot;s4&quot;&gt;0&lt;/span&gt;,&lt;span class=&quot;s4&quot;&gt;200&lt;/span&gt;, &lt;span class=&quot;s4&quot;&gt;700&lt;/span&gt;,&lt;span class=&quot;s4&quot;&gt;234&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;Rotating the imageView:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;imageView.&lt;/span&gt;layer&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;transform&lt;span class=&quot;s2&quot;&gt; = &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;CATransform3DRotate&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;(&lt;/span&gt;CATransform3DIdentity&lt;span class=&quot;s2&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;1.57079633&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p4&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; imageView.&lt;span class=&quot;s5&quot;&gt;frame&lt;/span&gt;=&lt;span class=&quot;s3&quot;&gt;CGRectMake&lt;/span&gt;(&lt;span class=&quot;s4&quot;&gt;0&lt;/span&gt;,&lt;span class=&quot;s4&quot;&gt;0&lt;/span&gt;,&lt;span class=&quot;s4&quot;&gt;234&lt;/span&gt;,&lt;span class=&quot;s4&quot;&gt;150&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p5&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p1&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Be sure to implement the lazy loading… for a better user experience.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;Updated:&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Finally got some time to create a sample for the stated purpose. The example will look like below.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB_YNH1VLn4j6HsEW-YRVZ2ti6q-uJUOyjxSJSaDhHyXw5nI4STsYtfNwAgETXDe85BGgYpA6PQBeQwt4iktxX3fGjKuBpBAeQm9ir08W5bal8ubSFj5VPfVUV-DPIdzU05wnMzpVyBp6O/s1600/Sample+Gallery.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;263&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB_YNH1VLn4j6HsEW-YRVZ2ti6q-uJUOyjxSJSaDhHyXw5nI4STsYtfNwAgETXDe85BGgYpA6PQBeQwt4iktxX3fGjKuBpBAeQm9ir08W5bal8ubSFj5VPfVUV-DPIdzU05wnMzpVyBp6O/s320/Sample+Gallery.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Custom Gallery&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Here is the &lt;a href=&quot;https://docs.google.com/leaf?id=0B1zrqMLcVMBONzJkMTFhZDktYTA2YS00NjViLWE3OTQtOTdmYTY3YzU4NzVh&amp;amp;hl=en_US&amp;amp;authkey=CJz1wuEL&quot;&gt;sample code&lt;/a&gt; that may help you go ahead. Be sure to run in Landscape mode... I am sorry that I didn&#39;t check for memory in this short time. Please make changes while using...&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;p2&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/2974569321241774656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/06/horizontal-scroll-using-tableview.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/2974569321241774656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/2974569321241774656'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/06/horizontal-scroll-using-tableview.html' title='Horizontal scroll using tableView'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyfs7od3EVq5qRey8BI162wAgdDUn0GDmkgCS1t76AY7fW5_UwnvAe1KSZ7APnhXllfYzMAdWJXh6T_Itrwf_EPqm2alkpO7YeBMZ5jKzuYOzaJJ0cRqXfdGLqOlTWAcMn6pnuELl2KASL/s72-c/vertical.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-503381800759028438</id><published>2011-03-23T14:57:00.000+05:30</published><updated>2011-09-28T23:03:56.787+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="difference between release and drain"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="release and autorelease in ios"/><category scheme="http://www.blogger.com/atom/ns#" term="release and drain in ios"/><title type='text'>release Vs drain in autorelease pool</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
An autorelease pool stores objects that are sent a release or autorelease message and are deallocated when the autorelease pool itself is drained.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
If a question like &quot;what to use? &amp;nbsp;&#39;drain&#39; or &#39;release&#39; ? comes in your mind, below is the simple resolve for your question.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;b&gt;release:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
In a reference-counted environment, since an autorelease pool cannot be retained , this method causes the receiver to be deallocated. When an autorelease pool is deallocated, it sends a &#39;release&#39; message to all its autoreleased objects. Also, In a garbage-collected environment, this method is a no no.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
- (void)release&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;b&gt;drain:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
In a reference-counted environment, releases and pops the receiver; in a garbage-collected environment, triggers garbage collection if the memory allocated since the last collection is greater than the current threshold.&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #0b5394; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
- (void)drain&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;b&gt;Conclusion:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
From the above brief discussion it is clear that, we should always use &#39;drain&#39; over &#39;release&#39; for an autorelease pool(be the Cocoa or Cocoa touch).&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/503381800759028438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/03/release-vs-drain-in-autorelease-pool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/503381800759028438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/503381800759028438'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/03/release-vs-drain-in-autorelease-pool.html' title='release Vs drain in autorelease pool'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-7454451109221343554</id><published>2011-03-16T21:04:00.000+05:30</published><updated>2014-02-15T12:52:51.631+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Check if string is numeric"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="NSString in iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="numeric string in iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="String handling in iOS"/><title type='text'>Determine if string is numeric only</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;In Objective-C there is no in-built method which determines whether the given string is numeric only or is an alphanumeric, but has provided ways to do that.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;The objective can be achieved using the &lt;b&gt;&lt;a href=&quot;http://developer.apple.com/library/ios/#documentation/cocoa/reference/foundation/Classes/NSCharacterSet_Class/Reference/Reference.html&quot;&gt;NSCharacterSet&lt;/a&gt;&amp;nbsp;&lt;/b&gt;class&lt;b&gt;, &lt;/b&gt;which provides a set of characters.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Using below method we can identify the whether the string is numeric or alphanumeric.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- (void)testNumeric{&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;NSString *result=@&quot;2011&quot;;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;if([self isNumeric:result]){&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;              &lt;/span&gt;// Numeric&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}else{&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;white-space: pre;&quot;&gt;&amp;nbsp;            &lt;/span&gt;// Alphanumeric&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- (BOOL)isNumeric:(NSString*)inputString{&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BOOL isValid=NO;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; NSCharacterSet *alphaNumbersSet = [NSCharacterSet decimalDigitCharacterSet];&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; NSCharacterSet *stringSet = [NSCharacterSet characterSetWithCharactersInString:inputString];&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; isValid = [alphaNumbersSet&amp;nbsp;isSupersetOfSet:stringSet];&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; return isValid;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;decimalDigitCharacterSet&amp;nbsp;&lt;/b&gt;is&amp;nbsp;a character set containing the characters in the category of Decimal Numbers,i.e, the set with all numeric characters.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Method &lt;b&gt;characterSetWithCharactersInString&lt;/b&gt;&lt;i&gt;:&lt;/i&gt;&amp;nbsp;returns the character set containing the characters in the given string, i.e, the set with characters &#39;2&#39;,&#39;0&#39;,&#39;1&#39;,&#39;1&#39; in our case.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Using the two sets, we determine whether all characters of &lt;i&gt;inputString&lt;/i&gt; is contained in &lt;i&gt;alphaNumbersSet&lt;/i&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Happy coding.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/7454451109221343554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/03/determine-if-string-is-numeric-only.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/7454451109221343554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/7454451109221343554'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/03/determine-if-string-is-numeric-only.html' title='Determine if string is numeric only'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-8935248422638710957</id><published>2011-03-02T12:05:00.000+05:30</published><updated>2011-03-02T12:46:42.153+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Play YouTube Video"/><title type='text'>Auto Play youtube video in iPhone / iPad</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
Playing a youtube video in &lt;b&gt;&lt;i&gt;iOS sdk&lt;/i&gt;&lt;/b&gt; can be done in two ways:&lt;br /&gt;
1) Invoke the native youtube player in the device.&lt;br /&gt;
2) Open the youtube video link in a WebView.&lt;br /&gt;
3) Autoplay the youtube video using WebView .&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Method 1:&lt;/b&gt;&lt;br /&gt;
This method utilizes the Apple&#39;s &lt;b&gt;URLScheme&lt;/b&gt; to play youtube video by launching the youtube application on the device. This involves a simple call to the &lt;b&gt;openURL&lt;/b&gt; method of &lt;b&gt;UIApplication&lt;/b&gt; class as below:&lt;br /&gt;
&lt;i style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;
NSURL *url=[NSURL URLWithString:@&quot;http://www.youtube.com/v/IkvXcvb7rkg?f=user_favorites&amp;amp;app=youtube_gdata\&quot;];&lt;br /&gt;
[[UIApplication sharedApplication] openURL:url];&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This method may seem easy, but it&#39;s at the cost that the video will be played in other application&lt;br /&gt;
and your application will not be called even after the video playing is finished.&lt;br /&gt;
There is no other way to return to your application after video playing is done.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Method 2:&lt;/b&gt;&lt;br /&gt;
This method involved a little bit of tweak around the &lt;b&gt;UIWebView&lt;/b&gt; control.&lt;br /&gt;
In this method a youtube embed code is constructed and is loaded in the WebView control in the application.&lt;br /&gt;
The WebView displays the video thumbnail and a play button over the thumbnail. As the user taps on the play&lt;br /&gt;
button the video is launched in &lt;b&gt;QuickTime&lt;/b&gt; player and after the video playing is done, control is returned to the application.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyO5cktjnj8FNyl-dBvrkINK4RsnPnYReSY-D693GawAgSQ8aFfqNwsidR5Q31i08lSStK02hXRFTO50A42ilGQ5CIXYOF2sib7zeWtZzOxsllIGy8YCKtYj_ueeyXQPNEoFfmmo1QU8AV/s1600/webView+with+play+button.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyO5cktjnj8FNyl-dBvrkINK4RsnPnYReSY-D693GawAgSQ8aFfqNwsidR5Q31i08lSStK02hXRFTO50A42ilGQ5CIXYOF2sib7zeWtZzOxsllIGy8YCKtYj_ueeyXQPNEoFfmmo1QU8AV/s1600/webView+with+play+button.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (YouTube video in WebView with play button )&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt; So, with a little bit of tweak we can retain the control in the application.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i style=&quot;color: #0b5394;&quot;&gt;NSString *htmlString =@&quot;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;lt;meta name = \&quot;viewport\&quot; content = \&quot;initial-scale = 1.0, user-scalable = no, width = 212\&quot;/&amp;gt;&amp;lt;/head&amp;gt;&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;lt;body style=\&quot;background:#FFFFF;margin-top:20px;margin-left:0px\&quot;&amp;gt;&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;lt;div&amp;gt;&amp;lt;object width=\&quot;320\&quot; height=\&quot;240\&quot;&amp;gt;&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;lt;param name=\&quot;wmode\&quot; value=\&quot;transparent\&quot;&amp;gt;&amp;lt;/param&amp;gt;&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;lt;embed src=\&quot;http://www.youtube.com/v/Hu684V2lB3Q?f=user_favorites&amp;amp;app=youtube_gdata\&quot;&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;type=\&quot;application/x-shockwave-flash\&quot; wmode=\&quot;transparent\&quot; width=\&quot;320\&quot; height=\&quot;240\&quot;&amp;gt;&amp;lt;/embed&amp;gt;&quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;lt;/object&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [webView loadHTMLString:htmlString baseURL:nil];&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Method 3:&lt;/b&gt;&lt;br /&gt;
This method takes takes the &#39;Method 2&#39; one step ahead by utilizing the &lt;b&gt;delegate&lt;/b&gt; methods of WebView control&lt;br /&gt;
to auto play the video in &lt;b&gt;QuickTime&lt;/b&gt; player as soon as the WebView loading is finished.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-0XhrqqoSHF87o0ynRkvTk0RE2si5-D4XuWB9gGhbUoz71cObhFB-gQsUTmqqsFrxzKuiBaZEvzP4zCSUm-DNUkCUJQ-9WBG_wO_cCexdfLPxQTLUPWsnyARxUJJaGwMJd07qP1ei8X7e/s1600/auto+play+youtube+video.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-0XhrqqoSHF87o0ynRkvTk0RE2si5-D4XuWB9gGhbUoz71cObhFB-gQsUTmqqsFrxzKuiBaZEvzP4zCSUm-DNUkCUJQ-9WBG_wO_cCexdfLPxQTLUPWsnyARxUJJaGwMJd07qP1ei8X7e/s1600/auto+play+youtube+video.png&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif; font-size: x-small;&quot;&gt;(Playing video in QuickTime player)&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
You need to assign the class as WebView delegate:&lt;br /&gt;
&lt;br /&gt;
&lt;i style=&quot;color: #0b5394;&quot;&gt;webView.delegate=self;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
The idea is to find the play button on the WebView and send the button touch event to the control to play the video.&lt;br /&gt;
&lt;br /&gt;
Complete code will look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0b5394;&quot;&gt;NSString *htmlString =@&quot;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&quot;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;lt;meta name = \&quot;viewport\&quot; content = \&quot;initial-scale = 1.0, user-scalable = no, width = 212\&quot;/&amp;gt;&amp;lt;/head&amp;gt;&quot;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;lt;body style=\&quot;background:#FFFFF;margin-top:20px;margin-left:0px\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;lt;div&amp;gt;&amp;lt;object width=\&quot;320\&quot; height=\&quot;240\&quot;&amp;gt;&quot;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;lt;param name=\&quot;wmode\&quot; value=\&quot;transparent\&quot;&amp;gt;&amp;lt;/param&amp;gt;&quot;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;lt;embed src=\&quot;http://www.youtube.com/v/Hu684V2lB3Q?f=user_favorites&amp;amp;app=youtube_gdata\&quot;&quot;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;type=\&quot;application/x-shockwave-flash\&quot; wmode=\&quot;transparent\&quot; width=\&quot;320\&quot; height=\&quot;240\&quot;&amp;gt;&amp;lt;/embed&amp;gt;&quot;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;&amp;lt;/object&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&quot;;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; webView.delegate=self;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [webView loadHTMLString:htmlString baseURL:nil];&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;- (void)webViewDidFinishLoad:(UIWebView *)_webView {&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UIButton *b = [self findButtonInView:_webView];&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [b sendActionsForControlEvents:UIControlEventTouchUpInside];&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;- (UIButton *)findButtonInView:(UIView *)view {&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UIButton *button = nil;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ([view isMemberOfClass:[UIButton class]]) {&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (UIButton *)view;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (view.subviews &amp;amp;&amp;amp; [view.subviews count] &amp;gt; 0) {&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (UIView *subview in view.subviews) {&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; button = [self findButtonInView:subview];&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (button) return button;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return button;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;I prefer Method 3 over all the methods but you &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;choose the one that suits your need.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Happy coding...&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/8935248422638710957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/03/autoplay-youtube-video-in-iphone-ipad.html#comment-form' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/8935248422638710957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/8935248422638710957'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/03/autoplay-youtube-video-in-iphone-ipad.html' title='Auto Play youtube video in iPhone / iPad'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyO5cktjnj8FNyl-dBvrkINK4RsnPnYReSY-D693GawAgSQ8aFfqNwsidR5Q31i08lSStK02hXRFTO50A42ilGQ5CIXYOF2sib7zeWtZzOxsllIGy8YCKtYj_ueeyXQPNEoFfmmo1QU8AV/s72-c/webView+with+play+button.png" height="72" width="72"/><thr:total>20</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-4826106845935330</id><published>2011-02-23T19:10:00.000+05:30</published><updated>2011-09-28T23:06:33.842+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="application launch image in iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="application load image"/><category scheme="http://www.blogger.com/atom/ns#" term="application start image"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="iPad launch image"/><title type='text'>iPad Launch screen image</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;With the usual requirement every iPad application is supposed to support all the orientations available, which a nice to have feature. In general the applications using a launch image for splash screen.&lt;br /&gt;
&lt;br /&gt;
To supply an launch image, we use an image named as Default.png and is added to the resource folder of the application, and this image is loaded as launch image when the application is launched.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Since, we are using a single image for all orientations, there may be a case where the splash image me look stretched, blur, crisped (depending upon the image used).&lt;br /&gt;
&lt;br /&gt;
This happens due to the different screen size of the device at different orientations. Landscape: 1024w x 748h&amp;nbsp; and Portrait: 768w x 1004h.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
To get this thing to work we can create images with names and dimensions as mentioned below, and add them to the application resource folder (no code required).&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;i&gt;Default-Portrait.png&lt;/i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 768w x 1004h&lt;br /&gt;
&lt;i&gt;Default-PortraitUpsideDown.png&lt;/i&gt; &amp;nbsp;&amp;nbsp; 768w x 1004h&lt;br /&gt;
&lt;i&gt;Default-Landscape.png&lt;/i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1024w x 748h&lt;br /&gt;
&lt;i&gt;Default-LandscapeLeft.png&lt;/i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1024w x 748h&lt;br /&gt;
&lt;i&gt;Default-LandscapeRight.png&amp;nbsp;&lt;/i&gt;&amp;nbsp;&amp;nbsp; 1024w x 748h&lt;br /&gt;
&lt;i&gt;Default-PortraitUpsideDown.png&amp;nbsp;&lt;/i&gt;&amp;nbsp;&amp;nbsp; 1024w x 748h&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Clean the project by pressing Command+shift+k or from Build&amp;gt;Clean.&lt;br /&gt;
All set to go now, run the application.&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/4826106845935330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/launch-screen-image-in-ipad.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/4826106845935330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/4826106845935330'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/launch-screen-image-in-ipad.html' title='iPad Launch screen image'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-3302202151131567873</id><published>2011-02-23T11:56:00.000+05:30</published><updated>2011-09-28T23:14:37.959+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NSSearchField arrow keys"/><category scheme="http://www.blogger.com/atom/ns#" term="NSSearchField handling"/><category scheme="http://www.blogger.com/atom/ns#" term="NSSearchField new line"/><category scheme="http://www.blogger.com/atom/ns#" term="NSSearchField return key press"/><title type='text'>NSSearchField return, arrow key press notification</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;In Cocoa development environment you might find &lt;b&gt;&lt;i&gt;NSSearchField&lt;/i&gt;&lt;/b&gt; difficult to trap the enter key event.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Also it becomes difficult to get the arrow key movements events.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;In order to get these things to work, you need to do some simple stuffs with &lt;b&gt;&lt;i&gt;IBOutlet&lt;/i&gt;&lt;/b&gt;. You just need to connect your controller class with the delegate of &lt;b&gt;&lt;i&gt;NSSearchField&lt;/i&gt;&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;In the controller class use below code to get the job done:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;i&gt;-(BOOL)control:(NSControl*)control textView:(NSTextView*)textView doCommandBySelector:(SEL)commandSelector {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@&quot;doCommandBySelector&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BOOL result = NO;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (commandSelector == @selector(insertNewline:)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // enter key pressed&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; result = YES;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if(commandSelector == @selector(moveLeft:)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // left arrow key pressed&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [textView moveLeft:nil];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; result = YES;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if(commandSelector == @selector(moveRight:)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // right arrow key pressed&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [textView moveRight:nil];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; result = YES;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if(commandSelector == @selector(moveUp:)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // up arrow key pressed&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; result = YES;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if(commandSelector == @selector(moveDown:)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // down arrow key pressed&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; result = YES;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result;&lt;br /&gt;}&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Also, If you are interested in only in enter key event, set your controller class as the delegate of &lt;b&gt;&lt;i&gt;NSSearchField&lt;/i&gt;&lt;/b&gt; and implement the below method, which will be called when enter key is hit on the &lt;b&gt;&lt;i&gt;NSSearchField&lt;/i&gt;&lt;/b&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;- (void)controlTextDidEndEditing:(NSNotification *)obj{&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@&quot;Enter key is hit&quot;);&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;* How to get the text out of&lt;/b&gt; &lt;b&gt;&lt;i&gt;NSSearchField&lt;/i&gt;&lt;/b&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;The notification object(obj) in &lt;i&gt;controlTextDidEndEditing&lt;/i&gt; method has the &lt;i&gt;userInfo&lt;/i&gt; dictionary which contains the reference to the &lt;i&gt;&lt;b&gt;NSTextField&lt;/b&gt;&lt;/i&gt; in the &lt;b&gt;&lt;i&gt;NSSearchField&lt;/i&gt;&lt;/b&gt; control. Use below code to get the &lt;b&gt;&lt;i&gt;NSTextField&lt;/i&gt;&lt;/b&gt; object and the text in it.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;NSTextView* textView = [[obj userInfo] objectForKey:@&quot;NSFieldEditor&quot;];&lt;br /&gt;NSString *searchText=[textView string];&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Let me know if something can be improved.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/3302202151131567873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/nssearchfield-return-arrow-key-press.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/3302202151131567873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/3302202151131567873'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/nssearchfield-return-arrow-key-press.html' title='NSSearchField return, arrow key press notification'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-3994548007055108376</id><published>2011-02-21T20:27:00.000+05:30</published><updated>2011-02-21T20:27:36.643+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Foursquare"/><title type='text'>Foursquare</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Where to register your application:&lt;br /&gt;
https://foursquare.com/oauth/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/3994548007055108376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/foursquare.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/3994548007055108376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/3994548007055108376'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/foursquare.html' title='Foursquare'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-3891373468235586349</id><published>2011-02-20T17:01:00.000+05:30</published><updated>2011-09-28T22:52:46.795+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="cancelAllLocalNotification"/><category scheme="http://www.blogger.com/atom/ns#" term="cancelLocalNotification"/><category scheme="http://www.blogger.com/atom/ns#" term="customizing local notification"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Notification Alert sound"/><category scheme="http://www.blogger.com/atom/ns#" term="Register local notification in iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="UILocalNotification"/><title type='text'>Working with UILocalNotification in iOS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Back was the time before iPhone OS 3.0, APNS (apple push notification) was introduced. APN&#39;s are the means to send a remote notifications to a device connected to the internet.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;With the increasing need of scheduling reminders at the device level, Local notification was introduced with the release iOS 4.0 . With the help of local notification, we can schedule a notification for any required date-time and the notification is handled by the device itself, no need to be connected to the&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;internet or a remote server.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOe8lmf1qbREEXGD-Ls2Y_zkP64N8E4u6KehcgUncKQlH28OqWdmBpSG4FNhT8X_dHJb_cWDbDqZEw7YfI4SFLzOeyyRaVrcJbeOprviI7teeTEUtzH3xiwqWynpfZkADd_yZM9TPDmfyp/s1600/UILocalNotification.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOe8lmf1qbREEXGD-Ls2Y_zkP64N8E4u6KehcgUncKQlH28OqWdmBpSG4FNhT8X_dHJb_cWDbDqZEw7YfI4SFLzOeyyRaVrcJbeOprviI7teeTEUtzH3xiwqWynpfZkADd_yZM9TPDmfyp/s320/UILocalNotification.png&quot; width=&quot;212&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;i&gt;&lt;b&gt;UILocalNotification&lt;/b&gt;&lt;/i&gt; is the class behind the local notifications and the customization of the notification.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Local notification limitation:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Every application is allowed a maximum of 64 local notifications. iOS takes the upcoming 64 scheduled notifications and notifies for these notifications only, rest notifications are ignored.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;1) How to registering Local notification:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #0b5394;&quot;&gt; // Check for whether device supports local notification&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Class cls = NSClassFromString(@&quot;UILocalNotification&quot;);&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (cls != nil) {&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; UILocalNotification *notif = [[cls alloc] init];&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; notif.fireDate = [datePicker date];&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; notif.timeZone = [NSTimeZone defaultTimeZone];&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; notif.alertBody = @&quot;Whooaa?&quot;;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; notif.alertAction = @&quot;Show&quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp; // alert button title (other than cancel)&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; notif.soundName = UILocalNotificationDefaultSoundName; (default alert sound name, can be cutomized)&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; notif.applicationIconBadgeNumber = 1;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Associate a dictionary to identify to gather the information about the notification&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; NSDictionary *userDict = [NSDictionary dictionaryWithObject:@&quot;Notification text&quot;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; forKey:kRemindMeNotificationDataKey];&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; notif.userInfo = userDict;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [[UIApplication sharedApplication] scheduleLocalNotification:notif];&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [notif release];&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;This will create a notification with the date selected in &quot;datePicker&quot; control.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;In this case application name will be the title and &quot;Whoaaa?&quot; will be the body of the alert message, &quot;Show&quot; will be the title of the action button on alert (other than cancel button).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;userInfo is the dictionary you will receive in the delegate method of the local notification. So, you can add your desired information for the notification to the dictionary while creating a notification.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;2) How to handle notification delegate:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;- This delegate method will be called If user tapped &quot;Show Me&quot; button and the application was running in background or was in active state.&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;- (void)application:(UIApplication *)application &lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; didReceiveLocalNotification:(UILocalNotification *)notification {&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; application.applicationIconBadgeNumber = 0;&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSString *reminderText = [notification.userInfo&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; objectForKey:kRemindMeNotificationDataKey];&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Call to a method to handover the notification handling&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [viewController handleReminder:reminderText];&lt;/span&gt;&lt;br style=&quot;color: #0b5394;&quot; /&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;- This delegate method will be called If user tapped &quot;Show Me&quot; button and the application was not running in background.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;- (BOOL)application:(UIApplication *)application&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Class cls = NSClassFromString(@&quot;UILocalNotification&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (cls) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; UILocalNotification *notification = [launchOptions objectForKey:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; UIApplicationLaunchOptionsLocalNotificationKey];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (notification) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; NSString *reminderText = [notification.userInfo &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; objectForKey:kRemindMeNotificationDataKey];&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Call to a method to handover the notification handling&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [viewController handleReminder:reminderText];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; application.applicationIconBadgeNumber = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [window addSubview:viewController.view];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [window makeKeyAndVisible];&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return YES;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
3) How to cancel all local notification:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;You can cancel the selected local notification if you have preserved the notification object like,&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;[[UIApplication sharedApplication] cancelLocalNotifications:notif];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;where &quot;notif&quot; is the notification&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;object&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;saved/unsaved)&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;and you can cancel all the local notifications by calling below,&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;&amp;nbsp;[[UIApplication sharedApplication] cancelAllLocalNotifications];&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;4) Custom alert sound:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To make your local notification make a custom sound, you will have to provide the name of the sound file with extension as .caf . This sound file must be in your application resource bundle.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Below code registers a custom notification sound called &quot;alert.caf&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0b5394; font-family: Times, &#39;Times New Roman&#39;, serif;&quot;&gt;notif.soundName = @&quot;alert.caf&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Note: Alert sound must have .caf extension.&lt;/span&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/3891373468235586349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/uilocalnotification-in-ios.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/3891373468235586349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/3891373468235586349'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/uilocalnotification-in-ios.html' title='Working with UILocalNotification in iOS'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOe8lmf1qbREEXGD-Ls2Y_zkP64N8E4u6KehcgUncKQlH28OqWdmBpSG4FNhT8X_dHJb_cWDbDqZEw7YfI4SFLzOeyyRaVrcJbeOprviI7teeTEUtzH3xiwqWynpfZkADd_yZM9TPDmfyp/s72-c/UILocalNotification.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-7265201624702078161</id><published>2011-02-09T11:34:00.000+05:30</published><updated>2011-09-28T23:12:19.986+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Clear trash using terminal"/><category scheme="http://www.blogger.com/atom/ns#" term="emptying trash in mac"/><category scheme="http://www.blogger.com/atom/ns#" term="emptying trash using terminal"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac OS"/><title type='text'>Emptying the trash using terminal</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;In Mac OSx, trashing a file takes it to the .Trash folder of the logged in user (unless we have used the option+delete command). If the trash folder is over whelmed with files in it, emptying the trash may not work, or delete all the files and folders in it.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;In such case we have have the tool &quot;Terminal&quot; to empty the trash using unix command.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;Mac OSx has unix in its kernel and thus gives the freedom to use the unix commands to perform our task.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;How to delete the file in Trash:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;.Trash is the folder in every user account at location /Username/.Trash.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;Open terminal from /Application/Utilities/ folder, enter the command &quot;cd .Trash&quot; in terminal and hit enter. Now you are in the .Trash directory.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;Use -rm command to delete the file or folder.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;If you want to empty the trash: &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $ rm -rf *.*&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;and If want to delete specific file: &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; rm -rf filename_with_extension&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;For more help about any unix COMMAND, use:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;$whatis COMMAND&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;$man COMMAND (- Press RETURN for more, or q when done)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;$info COMMAND&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;SOME MORE UNIX COMMANDS:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;INTERACTIVE FEATURES&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;TAB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Command completion !!! USEFUL !!!&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;UPARROW&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Command history !!! USEFUL !!!&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;CTRL-C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interrupt current process.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;CTRL-D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If a program/command waits for input, end input.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;WILDCARDS AND DIRECTORIES USED IN COMMANDS&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Replaces any string of characters in a file name&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except the initial dot.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Replaces any single character in a file name&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except the initial dot.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;~&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The home directory of the current user.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;~abcde123&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The home directory of the user abcde123.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The parent directory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The present directory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The root directory&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Example:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ls ~/csc219/*.txt&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;REDIRECTIONS AND PIPES&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND &amp;lt; FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMAND will take input from FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND &amp;gt; FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Put output of COMMAND to FILE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND &amp;gt;&amp;gt; FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Append the output of COMMAND to FILE&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND 2&amp;gt; FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Put error messages of COMMAND to FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND 2&amp;gt;&amp;gt; FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Append error messages of COMMAND to FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND &amp;gt; FILE1 2&amp;gt; FILE2&amp;nbsp;&amp;nbsp;&amp;nbsp; Put output and error messages in separate files.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND &amp;gt;&amp;amp; FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Put output and error messages in the same FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND &amp;gt;&amp;gt;&amp;amp; FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Append output and error messages of COMMAND to FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND1 | COMMAND2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output of COMMAND1 becomes input for COMMAND2.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND | more&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; See the output of COMMAND page by page.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND | sort | more&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; See the output lines of COMMAND sorted and page by page.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ONLINE HELP&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;h&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Custom help.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND --help | more&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Basic help on a Unix COMMAND (for most commands).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND -h | more&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Basic help on a Unix COMMAND (for some commands).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;whatis COMMAND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; One-line information on COMMAND.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;man COMMAND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display the UNIX manual page on COMMAND.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;info COMMAND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Info help on COMMAND.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;xman&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Browser for Unix manual pages (under X-windows).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;apropos KEYWORD | more&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Find man pages relevant to COMMAND.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;help COMMAND&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Help on a bash built-in COMMAND.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;perldoc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Perl documentation.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;FILES AND DIRECTORIES&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ls&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List contents of current directory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ls -l&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List contents of current directory in a long form.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ls -a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Same as ls but .* files are displayed as well.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ls -al&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Combination of ls -a and ls -l &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ls DIRECTORY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List contents of DIRECTORY (specified by a path).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ls SUBDIRECTORY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List contents of SUBDIRECTORY.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ls FILE(S)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check whether FILE exists (or what FILES exist).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;pwd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display absolute path to present working directory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;mkdir DIRECTORY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create DIRECTORY (i.e. a folder)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Change to your home directory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cd ..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Change to the parent directory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cd SUBDIRECTORY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Change to SUBDIRECTORY.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cd DIRECTORY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Change to DIRECTORY (specified by a path).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cd. ARGUMENTS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Same as cd followed by ls&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cp FILE NEWFILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Copy FILE to NEWFILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cp -r DIR NEWDIR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Copy DIR and all its contents to NEWDIR.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cp. ARGUMENTS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Same as cp -r but preserving file attributes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;mv FILE NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rename FILE to new NAME.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;mv DIR NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rename directory DIR to new NAME.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;mv FILE DIR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Move FILE into existing directory DIR.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ln -s FILE LINK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create symbolic LINK (i.e. shortcut) to existing FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;quota&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Displays your disk quota.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;quota.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Displays your disk quota and current disk usage.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;rm FILE(S)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Remove FILE(S).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;rmdir DIRECTORY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Remove empty DIRECTORY.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;rm -r DIRECTORY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Remove DIRECTORY and its entire contents.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;rm -rf DIRECTORY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Same as rm -r but without asking for confirmations.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;clean&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Remove non-essential files, interactively &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;clean -f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Remove non-essential files, without interaction.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;junk FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Move FILE to ~/junk instead of removing it. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;find. FILE(S)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Search current dir and its subdirs for FILE(S).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;touch FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update modification date/time of FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;file FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Find out the type of FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;gzip&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Compress or expand files.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;zip&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Compress or expand files.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;compress&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Compress or expand files.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;tar&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Archive a directory into a file, or expand such a file.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;targz DIRECTORY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Pack DIRECTORY into archive file *.tgz &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;untargz ARCHIVE.tgz&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Unpack *.tgz archive into a directory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;TEXT FILES&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;more FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display contents of FILE, page by page.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;less FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display contents of FILE, page by page.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cat FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display a file. (For very short files.)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;head FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display first lines of FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;tail FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display last lines of FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;pico FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit FILE using a user-friendly editor. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;nano FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit FILE using a user-friendly editor. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;kwrite FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit FILE using a user-friendly editor under X windows.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;gedit FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit FILE using a user-friendly editor under X windows.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;emacs FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit FILE using a powerful editor.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;vim FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Edit FILE using a powerful editor with cryptic syntax.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;aspell -c FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check spelling in text-file FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ispell FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Check spelling in text-file FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cat FILE1 FILE2 &amp;gt; NEW&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Append FILE1 and FILE2 creating new file NEW.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cat FILE1 &amp;gt;&amp;gt; FILE2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Append FILE1 at the end of FILE2.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;sort FILE &amp;gt; NEWFILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sort lines of FILE alphabetically and put them in NEWFILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;grep STRING FILE(S)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display lines of FILE(S) which contain STRING.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;grep. STRING FILE(S)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Similar as above, but better. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;wc FILE(S)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count characters, words and lines in FILE(S).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;diff FILE1 FILE2 | more&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Show differences between two versions of a file.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;filter FILE NEWFILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Filter out strange characters from FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND | cut -b 1-9,15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Remove sections from each line.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND | uniq&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Omit repeated lines.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;PRINTING&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;lpr FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In Hawk153B, print FILE from a workstation. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;lprint1 FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Print text-file on local printer; see help printing&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;lprint2 FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Print text-file on local printer; see help printing&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;PROGRAMMING LANGUAGES&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;javac CLASSNAME.java&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Compile a Java program.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;java CLASSNAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Run a Java program.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;javadoc CLASSNAME.java&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create an html documentation file for CLASSNAME.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;appletviewer CLASSNAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Run an applet.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;lisp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Listener of LISP programming language.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;prolog&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Listener of Prolog programming language.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;python&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Listener of Python programming language.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cc -g -Wall -o FILE FILE.c&amp;nbsp; Compile C source FILE.c into executable FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;gcc -g -Wall -o FILE FILE.c Compile C source FILE.c into executable FILE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;c++ -g -Wall -o FIL FIL.cxx Compile C++ source FIL.cxx into executable FIL.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;g++ -g -Wall -o FIL FIL.cxx Compile C++ source FIL.cxx into executable FIL.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;gdb EXECUTABLE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start debugging a C/C++ program.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;make FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Compile and link C/C++ files specified in makefile&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;m&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Same as make but directs messages to a log file.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;c-work&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Repeatedly edit-compile-run a C program.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;INTERNET&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;lynx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Web browser (for text-based terminals).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;firefox&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Web browser.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;konqueror&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Web browser.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;BROWSER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Browse the Internet.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;BROWSER FILE.html&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display a local html file.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;BROWSER FILE.pdf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display a local pdf file.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;mutt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text-based e-mail manager.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;pine&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text-based e-mail manager (on some systems).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ssh HOST&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open interactive session on HOST using secure shell.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;sftp HOST&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open sftp (secure file transfer) connection to HOST.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;rsync ARGUMENTS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Synchronize directories on local and remote host.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;PROCESS CONTROL&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Notes: A process is a run of a program; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; One program can be used to create many concurrent processes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A job may consist of several processes with pipes and redirections.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Processes are managed by the kernel. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jobs are managed by a shell.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;CTRL-Z&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Suspend current foreground process.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;fg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bring job suspended by CTRL-Z to the foreground.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;bg JOB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Restart suspended JOb in the background.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ps&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List processes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ps.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *List processes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;jobs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List current jobs (A job may involve many processes).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;kill PROCESS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Kill PROCESS (however some processes may resist).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ctrl-C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Kill the foreground process (but it may resist).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;kill -9 PROCESS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Kill PROCESS (no process can resist.)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;kill. PROCESS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Kill PROCESS; same as kill -9.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COMMAND &amp;amp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Run COMMAND in the background. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ENVIRONMENT VARIABLES IN BASH&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;env | sort | more&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List all the environment variables with values.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;echo $VARIABLE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List the value of VARIABLE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;unset VARIABLE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Remove VARIABLE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;export VARIABLE=VALUE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create environment variable VARIABLE and set to VALUE.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;MISCELLANEOUS&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;exit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit from any shell.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;logout&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit from the login shell and terminate session.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;svn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version control system.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;xterm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A shell window under X-windows.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;xcalc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A calculator under X-windows.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;xclock&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A clock under X windows.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;xeyes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; They watch you work and report to the Boss :-)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Display date and time.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;clear&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Clear shell window.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;xrefresh&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Refresh X-windows.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;reset&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Reset session.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;setup-account&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Set up or reset your account (Mr. Dela&#39;s customizations)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;COURSEWORK IN DR. PLAZA&#39;S COURSES&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Commands and directory names related to csc219 have 219 as a suffix. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;By changing the suffix you will obtain commands for other courses.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;ls $csc219&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *List files related to csc219. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cd $csc219&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *change into instructor&#39;s public directory for csc219. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cp $csc219/FILE .&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Copy FILE related to csc219 to the current directory&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;cp -r $csc219/SUBDIR .&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Copy SUBDIR of csc219 to the current directory.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;submit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Submit a directory with files for an assignment. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;grades&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *See your grades. Used in some courses only.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/7265201624702078161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/emptying-trash-using-terminal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/7265201624702078161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/7265201624702078161'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/emptying-trash-using-terminal.html' title='Emptying the trash using terminal'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-4512019644615700247</id><published>2011-02-07T16:47:00.000+05:30</published><updated>2011-02-23T12:01:22.280+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Weak link in iOS"/><title type='text'>Weak link in iOS framework</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Well, there happened a case when I was using the latest iOS SDK&amp;nbsp; for the development purpose, and built an application which utilized the eventKit framework, and the framework used &quot;eventKit&quot; was a new addition to the framework list. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;I used the eventKit on the fly and submitted to the appstore for the approval process, and as a matter the application was approved.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;But, the case happened when the application was being downloaded and it used to crash at the app launch on the earlier iOS&#39;s.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Digging around the problem, I came to know about the weak link thing for a framework, and uploaded the updated build to app store.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;The idea is that, If you are using a framework that is not available to all the devices that you have selected as target devices, make the framework as weak link. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;This can be done as below:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;* Select the project target &amp;gt; Right click &amp;gt; Get-Info.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;* Go to general tab &amp;gt; Linked libraries.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;* Select the framework and make it a weak link.&lt;/span&gt;&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja_15amWdOOsUixJP98IRaK8HhSmN9Rndp0ae0V9ndz-BAJDY-EJlSVrQYRnXedkBjiSa7JsxzhNKscXsW2Khw6-lfzRFXhs8DVuyFIN9C-wxKCv67qclPXBjsdEsmHtYn7a2YgQE0s2mY/s1600/target.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja_15amWdOOsUixJP98IRaK8HhSmN9Rndp0ae0V9ndz-BAJDY-EJlSVrQYRnXedkBjiSa7JsxzhNKscXsW2Khw6-lfzRFXhs8DVuyFIN9C-wxKCv67qclPXBjsdEsmHtYn7a2YgQE0s2mY/s1600/target.png&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Right click on the target ans select info.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPHsdYckeyXSpwHDJ4Et2ZYbr8mTrBxcCCXPAB6Uiwp_aHTx41tZhhdlmhDKGRKSQ0_Ab-tUpK4w_pd-2g4qaLAgMBzsAOJ6vuWvN1_Eq6Pq8bsEuVy0dOCaln7w8Y9MXOost5fpTWMwnY/s1600/weakLink.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;347&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPHsdYckeyXSpwHDJ4Et2ZYbr8mTrBxcCCXPAB6Uiwp_aHTx41tZhhdlmhDKGRKSQ0_Ab-tUpK4w_pd-2g4qaLAgMBzsAOJ6vuWvN1_Eq6Pq8bsEuVy0dOCaln7w8Y9MXOost5fpTWMwnY/s400/weakLink.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Select weak link from type column.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Also, keep in if you mark a framework as weak linked, be sure to check for its availability before using any of its functionally.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;You can check for the existence of the class like below code sample:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Class theClass = (NSClassFromString(@&quot;UILocalNotification&quot;));&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;if(theClass){&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;// Class exists&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;else{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;// Class does not exists&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/4512019644615700247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/weak-link-in-iphone-framework.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/4512019644615700247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/4512019644615700247'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/weak-link-in-iphone-framework.html' title='Weak link in iOS framework'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja_15amWdOOsUixJP98IRaK8HhSmN9Rndp0ae0V9ndz-BAJDY-EJlSVrQYRnXedkBjiSa7JsxzhNKscXsW2Khw6-lfzRFXhs8DVuyFIN9C-wxKCv67qclPXBjsdEsmHtYn7a2YgQE0s2mY/s72-c/target.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-86102586188294394.post-778417626964793378</id><published>2011-02-03T11:53:00.000+05:30</published><updated>2011-09-28T23:34:16.623+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".crash"/><category scheme="http://www.blogger.com/atom/ns#" term=".dSYM"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="symbolicate crash iphone"/><title type='text'>Symbolicate crash logs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;Symbolicating of crash logs is the process of converting the HEX addresses into readable symbols (class/method names).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;It is helpful to resolve the crashing issues of your application.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;The crash logs for live appStore application can be retrieved from iTuneConnect web portal.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;And during testing of your application the crash logs are retrieved from device by syncing the device with itune application. After sync. crash logs are stored in system at &quot;&lt;/span&gt;~&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;/Library/Logs/CrashReporter/MobileDevice/&lt;/span&gt;&lt;/i&gt;&quot; for Mac OSx and at &quot;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;i&gt;C:\Users\&lt;/i&gt;&lt;/span&gt;&lt;username&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;\AppData\Roaming\Apple computer\Logs\CrashReporter/MobileDevice/&lt;/span&gt;&lt;/i&gt;&quot; for Windows7 PC.&lt;/username&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;The crash log may seem as below:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZh90FP0bH75GYgRzKvyqekecGRxnnG25Wl2QdR4p3LZlA_RpYR_UbAiU5DoLpEvnUxQjH-N7bdMooABXFcQ-anlpQslwLMqsoWewbHIrOFum41TcrBdgHLzmelh891BwrIwjVGEtHRB7H/s1600/crashPng.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZh90FP0bH75GYgRzKvyqekecGRxnnG25Wl2QdR4p3LZlA_RpYR_UbAiU5DoLpEvnUxQjH-N7bdMooABXFcQ-anlpQslwLMqsoWewbHIrOFum41TcrBdgHLzmelh891BwrIwjVGEtHRB7H/s1600/crashPng.png&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;Digging about reading the crash logs, here are the steps to get the class/method names in the .crash file.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;1.&lt;i&gt; Sync the device with your system.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;2.&lt;i&gt;&amp;nbsp;Create a folder on the desktop, say &quot;crashFiles&quot;,just to keep all files at one place.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;3.&lt;i&gt;&amp;nbsp;Paste AppName.app.dSYM files to &quot;crashFile&quot; folder.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;i&gt;(Note: This file is created through xCode in your release folder)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;4.&lt;i&gt;&amp;nbsp;Copy the .symbolicatecrash file in your system from the location &quot;/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/&quot; &amp;amp; paste the file to &quot;carshFile&quot; folder on desktop.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;5.&lt;i&gt;&amp;nbsp;Locate the .Crash file in your system. Following are the paths for .Crash file in different OS.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;i&gt;- Mac OS X : ~/Library/Logs/CrashReporter/MobileDevice/&lt;/i&gt;&lt;/span&gt;&lt;device_name&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;i&gt;&lt;br /&gt;- Windows XP: C:\Documents and Settings\&lt;/i&gt;&lt;/span&gt;&lt;username&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;i&gt;\Application Data\Apple computer\Logs\CrashReporter/&lt;/i&gt;&lt;/span&gt;&lt;device_name&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;i&gt;&lt;br /&gt;- Windows Vista: C:\Users\&lt;/i&gt;&lt;/span&gt;&lt;username&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;i&gt;\AppData\Roaming\Apple computer\Logs\CrashReporter/MobileDevice/&lt;/i&gt;&lt;/span&gt;&lt;device_name&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;i&gt;&lt;br /&gt;- Paste the .crash file in &quot;crashFile&quot; on desktop.&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/device_name&gt;&lt;/username&gt;&lt;/device_name&gt;&lt;/username&gt;&lt;/device_name&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;6.&lt;/span&gt;&lt;device_name&gt;&lt;username&gt;&lt;device_name&gt;&lt;username&gt;&lt;device_name&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;i&gt;&amp;nbsp;Start &quot;terminal&quot; from spotlight or Utilities folder in Applictions folder.&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/device_name&gt;&lt;/username&gt;&lt;/device_name&gt;&lt;/username&gt;&lt;/device_name&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;7.&lt;/span&gt;&lt;device_name&gt;&lt;username&gt;&lt;device_name&gt;&lt;username&gt;&lt;device_name&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;i&gt;&amp;nbsp;Run the below command with absolute path to all files: &lt;br /&gt;&amp;nbsp;- $ symbolicatecrash AppName.crash AppName.app.dSYM &amp;gt; report-with-symbols.crash&lt;br /&gt;&lt;br /&gt; OR&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/device_name&gt;&lt;/username&gt;&lt;/device_name&gt;&lt;/username&gt;&lt;/device_name&gt;&lt;device_name&gt;&lt;username&gt;&lt;device_name&gt;&lt;username&gt;&lt;device_name&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&amp;nbsp;-&lt;i&gt; Drag and Drop symbolicatecrash file on terminal.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;- Drag and Drop .crash file on terminal.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;- Drag and Drop .app.dSYM file on terminal.&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/device_name&gt;&lt;/username&gt;&lt;/device_name&gt;&lt;/username&gt;&lt;/device_name&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;8.&lt;/span&gt;&lt;device_name&gt;&lt;username&gt;&lt;device_name&gt;&lt;username&gt;&lt;device_name&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;i&gt;&amp;nbsp;Now type &quot;&amp;gt;report-with-symbols.crash&quot; and hit enter.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; Running above command will create a .Crash file &quot;report-with-symbols.crash&quot; replacing the symbols with more descriptive class/function name to dig in. The generate file may seem like below:           &lt;br /&gt;
&lt;br /&gt;
&lt;/device_name&gt;&lt;/username&gt;&lt;/device_name&gt;&lt;/username&gt;&lt;/device_name&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjq1lS9E8cCJhbZHRTGMswMrLhcdkOuOtBEbAgtO6mLstXwvMPIsdMhn9JYPXG9DNrrORkvd-YkUDtEohBEQWun1OBCacM5dXCCJBlrn-2dapchmdZICvJPqoNN5ZJhbBIWIoUOmtmqOmmK/s1600/symbolcatingPng.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjq1lS9E8cCJhbZHRTGMswMrLhcdkOuOtBEbAgtO6mLstXwvMPIsdMhn9JYPXG9DNrrORkvd-YkUDtEohBEQWun1OBCacM5dXCCJBlrn-2dapchmdZICvJPqoNN5ZJhbBIWIoUOmtmqOmmK/s1600/symbolcatingPng.png&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: small;&quot;&gt;Happy coding...&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sarojsblog.blogspot.com/feeds/778417626964793378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/symbolicate-crash-logs.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/778417626964793378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/86102586188294394/posts/default/778417626964793378'/><link rel='alternate' type='text/html' href='http://sarojsblog.blogspot.com/2011/02/symbolicate-crash-logs.html' title='Symbolicate crash logs'/><author><name>Saroj Sharma</name><uri>http://www.blogger.com/profile/09811284376353452050</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlKx0_Uob8UioHkNC7RkoV0RY5Km34iDWkchTXvmUlWMNXE8hEUO83vMx4eSaOR06fyKQUhSIFrPXA5KPZX88Yika4KbBNTd7c08tv4ssgazGN93Mg1Xkq8SW99udn7vU/s220/saroj.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZh90FP0bH75GYgRzKvyqekecGRxnnG25Wl2QdR4p3LZlA_RpYR_UbAiU5DoLpEvnUxQjH-N7bdMooABXFcQ-anlpQslwLMqsoWewbHIrOFum41TcrBdgHLzmelh891BwrIwjVGEtHRB7H/s72-c/crashPng.png" height="72" width="72"/><thr:total>1</thr:total></entry></feed>