<?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-3332274735975639789</id><updated>2026-05-16T00:57:33.798-07:00</updated><category term="ios notification"/><category term="push notification"/><category term="24 hours formate"/><category term="ASIFormDataRequest"/><category term="ASIHTTPRequest image upload"/><category term="NSNotification"/><category term="NSURLSession"/><category term="The app could not be loaded because the app transport security policy requires the use of secure connection"/><category term="Youtube Embeded  not playing in landscape mode in iOS6 and above"/><category term="add custom event"/><category term="add event into calendar"/><category term="addobserver"/><category term="app transport security policy"/><category term="caf format"/><category term="check array length"/><category term="check nill value"/><category term="check null value"/><category term="convert mp3 to caf"/><category term="convert string to date"/><category term="current date"/><category term="current time"/><category term="custom keyboard"/><category term="date formate iphone"/><category term="email validation"/><category term="function in swift"/><category term="generate keyboard"/><category term="generate pem certificate"/><category term="hours"/><category term="how to add protocol delegate in swift"/><category term="how to define array in macro"/><category term="how to define nsarray in macro"/><category term="iOS  convert minutes to time interval"/><category term="iOS  convert time to string"/><category term="iOS 9 security issue"/><category term="iOS app portfolio"/><category term="iOS application professional profile"/><category term="iOS application profile"/><category term="iOS dev NSDate"/><category term="iOS development"/><category term="iOS generate random string"/><category term="iOS phone on validation"/><category term="iOS protocol delegate in swift"/><category term="iOS sidebar"/><category term="iOS swift protocol"/><category term="iOS swift protocol delegate"/><category term="image upload server"/><category term="ios calendar"/><category term="ios current month"/><category term="ios dev convert date to string"/><category term="ios download background."/><category term="ios download manager"/><category term="ios protocol example"/><category term="ios swift"/><category term="ios timer counter"/><category term="ios youtube video landscape"/><category term="iphone dev check null value"/><category term="iphone dev screenshot"/><category term="iphone email validation"/><category term="iphone embeded video landscape"/><category term="iphone keyboard notification"/><category term="iphone play youtube viedeo"/><category term="iphone timer"/><category term="local notification"/><category term="minutes"/><category term="mp3 to caf"/><category term="notification show"/><category term="nsarray in macro"/><category term="nsmutablearray macro"/><category term="p12 certificate"/><category term="pem certificate"/><category term="phone no validation"/><category term="picture upload"/><category term="plist"/><category term="post notification"/><category term="programatically screenshot"/><category term="protocol delegate"/><category term="push notification certificate pem"/><category term="random array"/><category term="random string key"/><category term="read"/><category term="read from plist"/><category term="read from text file"/><category term="screenshot iphone"/><category term="seconds"/><category term="shuffle array"/><category term="side bar"/><category term="side bar menu"/><category term="sidebar"/><category term="sidebar menu"/><category term="sidebar menu arabic"/><category term="simple integration sqlite"/><category term="simple protocol"/><category term="simple sqlite"/><category term="sqlite"/><category term="sqlite in ios"/><category term="sqlite integration"/><category term="sqlite integration in ios"/><category term="sqlite integration iphone"/><category term="sqlite sample"/><category term="string"/><category term="swift"/><category term="swift delegate"/><category term="swift language"/><category term="swift protocol"/><category term="timer"/><category term="twitter integration"/><category term="uikeyboard notifications"/><category term="validation"/><category term="webview"/><category term="write"/><category term="write in plist"/><category term="write in text file"/><category term="youtube video in html"/><title type='text'>iPhone Application Development Guide</title><subtitle type='html'>This blog created for sharing iOS development examples so, a collection of helpful code could be bundled in one place, and new developers can also avail it in an easy way.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-4610892431191771974</id><published>2016-01-23T21:27:00.001-08:00</published><updated>2016-01-23T21:27:10.650-08:00</updated><title type='text'>How to Disable Application Transport Security</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;color: #d12f1b; font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: #eeeeee; color: #222222; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; white-space: pre-wrap;&quot;&gt;You just have to add&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #eeeeee; color: #222222; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; white-space: pre-wrap;&quot;&gt;NSAllowsArbitraryLoads boolean YES in &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: #eeeeee; color: #222222; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; white-space: pre-wrap;&quot;&gt;NSAppTransportSecurity dictionary&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&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/AVvXsEil1j_z18Cs8eyEaA1fUG0qVeX7lDtj7Ge7ahZrD1HM4uUe28KR4w_a1goInyo9PE99-ftRH3RSpb28vcbin8067T_pAosC7oZfUSR-Z49O3w9MQPosITvIJZlXl2BOiO9T2rxm1jI0Br4/s1600/transport.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;86&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil1j_z18Cs8eyEaA1fUG0qVeX7lDtj7Ge7ahZrD1HM4uUe28KR4w_a1goInyo9PE99-ftRH3RSpb28vcbin8067T_pAosC7oZfUSR-Z49O3w9MQPosITvIJZlXl2BOiO9T2rxm1jI0Br4/s320/transport.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/4610892431191771974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2016/01/how-to-disable-application-transport.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/4610892431191771974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/4610892431191771974'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2016/01/how-to-disable-application-transport.html' title='How to Disable Application Transport Security'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil1j_z18Cs8eyEaA1fUG0qVeX7lDtj7Ge7ahZrD1HM4uUe28KR4w_a1goInyo9PE99-ftRH3RSpb28vcbin8067T_pAosC7oZfUSR-Z49O3w9MQPosITvIJZlXl2BOiO9T2rxm1jI0Br4/s72-c/transport.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-8367435401247352113</id><published>2015-11-09T00:28:00.000-08:00</published><updated>2015-11-09T00:29:29.660-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="how to add protocol delegate in swift"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS protocol delegate in swift"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS swift protocol"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS swift protocol delegate"/><category scheme="http://www.blogger.com/atom/ns#" term="swift delegate"/><category scheme="http://www.blogger.com/atom/ns#" term="swift protocol"/><title type='text'>How to use Protocol  Delegate in iOS using Swift language</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Define Protocol&lt;br /&gt;
&lt;br /&gt;
There are two controllers:&lt;br /&gt;
FirstViewController&lt;br /&gt;
SecondViewController&lt;br /&gt;
&lt;br /&gt;
I need to notify FirstViewController that SecondViewController ViewDidAppearCalled&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;import&lt;/span&gt; UIKit&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
//Define Your protocole here after Import&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;protocol&lt;/span&gt; SecondViewControllerDelegate{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; //Add a new function&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;func&lt;/span&gt;&amp;nbsp;SecondViewDidLoadFinished(controller:Second&lt;span style=&quot;color: #4f8187;&quot;&gt;ViewController&lt;/span&gt;)&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #bb2ca2;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #bb2ca2;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #bb2ca2;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #bb2ca2;&quot;&gt;class&lt;/span&gt;&amp;nbsp;SecondViewController: &lt;span style=&quot;color: #703daa;&quot;&gt;UIViewController&lt;/span&gt; {&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #4f8187; font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; delegate:&lt;/span&gt;SecondViewControllerDelegate&lt;span style=&quot;color: black;&quot;&gt;?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;override&lt;/span&gt; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;func&lt;/span&gt; viewDidLoad() {&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;super&lt;/span&gt;.&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;viewDidLoad&lt;/span&gt;()&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;override&lt;/span&gt; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;func&lt;/span&gt; viewDidAppear(animated: &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;Bool&lt;/span&gt;) {&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;let&lt;/span&gt; delegate = &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: #4f8187; font-variant-ligatures: no-common-ligatures;&quot;&gt;delegate&lt;/span&gt;{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delegate.Second&lt;span style=&quot;color: #31595d;&quot;&gt;ViewDidLoadFinished&lt;/span&gt;(&lt;span style=&quot;color: #bb2ca2;&quot;&gt;self&lt;/span&gt;)&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
First view&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;import&lt;/span&gt; UIKit&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #4f8187; font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp;FirstViewController: &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;UIViewController&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;,&lt;/span&gt;SecondViewControllerDelegate&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;override&lt;/span&gt; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;func&lt;/span&gt; viewDidLoad() {&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;super&lt;/span&gt;.&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;viewDidLoad&lt;/span&gt;()&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;color: #4f8187; font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #4f8187; font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;@IBAction&lt;/span&gt; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;func&lt;/span&gt; buttonTapped(sender:&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;UIButton&lt;/span&gt;){&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #4f8187; font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; mapObject:&lt;/span&gt;SecondViewController&lt;span style=&quot;color: black;&quot;&gt; =&amp;nbsp;&lt;/span&gt;SecondViewController&lt;span style=&quot;color: black;&quot;&gt;()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mapObject.&lt;span style=&quot;color: #4f8187; font-variant-ligatures: no-common-ligatures;&quot;&gt;delegate&lt;/span&gt; = &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;self&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;navigationController&lt;/span&gt;?.&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;pushViewController&lt;/span&gt;(mapObject, animated: &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;true&lt;/span&gt;)&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #4f8187; font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;func&lt;/span&gt;&amp;nbsp;SecondViewDidLoadFinished(controller: Second&lt;span style=&quot;color: #4f8187;&quot;&gt;ViewController&lt;/span&gt;) {&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
//Here you will be notified that second view viewDid appear loaded&lt;/div&gt;
&lt;div style=&quot;color: #4f8187; font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/8367435401247352113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2015/11/how-to-add-delegate-protocol-ios-swift.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/8367435401247352113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/8367435401247352113'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2015/11/how-to-add-delegate-protocol-ios-swift.html' title='How to use Protocol  Delegate in iOS using Swift language'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-3468743684007335388</id><published>2015-10-21T23:26:00.002-07:00</published><updated>2015-10-21T23:35:52.728-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="app transport security policy"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS 9 security issue"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS development"/><category scheme="http://www.blogger.com/atom/ns#" term="The app could not be loaded because the app transport security policy requires the use of secure connection"/><title type='text'>iOS 9 issue: The app could not be loaded because the app transport security policy requires the use of secure connection.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
I have solved it with adding some key in info.plist. The steps I followed are:&lt;br /&gt;
&lt;br /&gt;
Opened my Projects info.plist file&lt;br /&gt;
&lt;br /&gt;
Added a Key called NSAppTransportSecurity as a Dictionary.&lt;br /&gt;
&lt;br /&gt;
Added a Subkey called NSAllowsArbitraryLoads as Boolean and set its value to YES as like following image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKSn7SxCx3hWtcEKvHujttpMdghKTR8gpT4qmzEAPJZDmWSHizuKrltsw8zI5tMnMnWFDi8AJahBiXo9y1NSrcQTX2YYSDa0mlji7tPXfHfM7ZU53NZF-yYI7pql6oM4upf3naUcE0-Ig/s1600/SZi2V.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKSn7SxCx3hWtcEKvHujttpMdghKTR8gpT4qmzEAPJZDmWSHizuKrltsw8zI5tMnMnWFDi8AJahBiXo9y1NSrcQTX2YYSDa0mlji7tPXfHfM7ZU53NZF-yYI7pql6oM4upf3naUcE0-Ig/s320/SZi2V.png&quot; /&gt;&lt;/a&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
Ref Link:&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/questions/32631184/the-resource-could-not-be-loaded-because-the-app-transport-security-policy-requi&quot; target=&quot;_blank&quot;&gt;app-transport-security-policy&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/3468743684007335388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2015/10/ios-9-issue-app-could-not-be-loaded.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/3468743684007335388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/3468743684007335388'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2015/10/ios-9-issue-app-could-not-be-loaded.html' title='iOS 9 issue: The app could not be loaded because the app transport security policy requires the use of secure connection.'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKSn7SxCx3hWtcEKvHujttpMdghKTR8gpT4qmzEAPJZDmWSHizuKrltsw8zI5tMnMnWFDi8AJahBiXo9y1NSrcQTX2YYSDa0mlji7tPXfHfM7ZU53NZF-yYI7pql6oM4upf3naUcE0-Ig/s72-c/SZi2V.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-7528265386899571839</id><published>2015-09-29T00:42:00.000-07:00</published><updated>2015-09-29T00:42:03.060-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS generate random string"/><category scheme="http://www.blogger.com/atom/ns#" term="random string key"/><title type='text'>iOS Generate Random string</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: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *) generateRandomString&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *letters = &lt;/span&gt;@&quot;abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789&quot;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;int&lt;/span&gt; len = &lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;8&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSMutableString&lt;/span&gt; *randomString = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSMutableString&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;stringWithCapacity&lt;/span&gt;: len];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;int&lt;/span&gt; i=&lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;0&lt;/span&gt;; i&amp;lt;len; i++) {&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [randomString &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;appendFormat&lt;/span&gt;: &lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;%C&quot;&lt;/span&gt;, [letters &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;characterAtIndex&lt;/span&gt;: &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;arc4random_uniform&lt;/span&gt;([letters &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;length&lt;/span&gt;])]];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; randomString;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/7528265386899571839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2015/09/ios-generate-random-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/7528265386899571839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/7528265386899571839'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2015/09/ios-generate-random-string.html' title='iOS Generate Random string'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-6522894215171088052</id><published>2015-09-29T00:37:00.000-07:00</published><updated>2015-09-29T00:37:34.787-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS app portfolio"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS application professional profile"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS application profile"/><title type='text'>Get iPhone application for portfolio or profile</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;color: #141823; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 6px;&quot;&gt;
Get iPhone application for your professional profile&lt;/div&gt;
&lt;div style=&quot;color: #141823; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 6px; margin-top: 6px;&quot;&gt;
Check my iPhone application below :&lt;/div&gt;
&lt;div style=&quot;color: #141823; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 6px; margin-top: 6px;&quot;&gt;
Easy to install just Click on below link and there will be install button tap on it finish !&lt;span class=&quot;text_exposed_show&quot; style=&quot;display: inline;&quot;&gt;&lt;br /&gt;Easy to share with your colleague or clients anyone&amp;nbsp;&lt;br /&gt;No apple account required&lt;br /&gt;Very Cheaper than you imagine&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;text_exposed_show&quot; style=&quot;color: #141823; display: inline; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 19px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 6px;&quot;&gt;
&lt;a href=&quot;https://dl.dropbox.com/s/uc06ufl215bhwlx/index.html&quot; rel=&quot;nofollow&quot; style=&quot;color: #3b5998; cursor: pointer; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;https://dl.dropbox.com/s/uc06ufl215bhwlx/index.html&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 6px; margin-top: 6px;&quot;&gt;
If you want this application for your profile so contact:&lt;br /&gt;a.kareem.tn@gmail.com&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/6522894215171088052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2015/09/get-iphone-application-for-portfolio-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/6522894215171088052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/6522894215171088052'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2015/09/get-iphone-application-for-portfolio-or.html' title='Get iPhone application for portfolio or profile'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-4674403856931565112</id><published>2015-09-29T00:17:00.002-07:00</published><updated>2015-09-29T02:31:41.617-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="convert string to date"/><category scheme="http://www.blogger.com/atom/ns#" term="current date"/><category scheme="http://www.blogger.com/atom/ns#" term="current time"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS  convert minutes to time interval"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS  convert time to string"/><category scheme="http://www.blogger.com/atom/ns#" term="ios current month"/><category scheme="http://www.blogger.com/atom/ns#" term="ios dev convert date to string"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS dev NSDate"/><title type='text'>iOS NSDate -- All type of conversions Class Methods</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: Menlo; font-size: 11px;&quot;&gt;
//Get the current Device Date&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *)getcurrentDate&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *CurrentDate = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;date&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *Formatter=[[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *locale = [[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;initWithLocaleIdentifier&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;en_US&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setLocale&lt;/span&gt;:locale];&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; [Formatter &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDateFormat&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;@&quot;yyyy-MM-dd h:mm a&quot;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; CurrentDate;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
//Get Month Year in String Format &amp;nbsp;From &amp;nbsp;Date&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *)getStringMonthYearFromDate :(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *)givendate&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSCalendar&lt;/span&gt; *dateCalender = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSCalendar&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;currentCalendar&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *Formatter=[[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *locale = [[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;initWithLocaleIdentifier&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;en_US&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setLocale&lt;/span&gt;:locale];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;MMMM-y&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *FormattedDate = [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;stringFromDate&lt;/span&gt;:givendate];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; FormattedDate;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *)getcurrentMonthYear&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *CurrentDate = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;date&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSCalendar&lt;/span&gt; *dateCalender = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSCalendar&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;currentCalendar&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *Formatter=[[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *locale = [[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;initWithLocaleIdentifier&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;en_US&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setLocale&lt;/span&gt;:locale];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;MMMM y HH&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *FormattedDate=[Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;stringFromDate&lt;/span&gt;:CurrentDate];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *actualDate =[Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;dateFromString&lt;/span&gt;:FormattedDate];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDateComponents&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *components = [dateCalender &lt;/span&gt;components&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;: &lt;/span&gt;NSCalendarUnitDay&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; | &lt;/span&gt;NSCalendarUnitMonth&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; | &lt;/span&gt;NSCalendarUnitYear&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; |&lt;/span&gt;NSCalendarUnitHour&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;fromDate&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:actualDate];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [components &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setCalendar&lt;/span&gt;:dateCalender];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [components &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDay&lt;/span&gt;:&lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;1&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [components &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setHour&lt;/span&gt;:&lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;4&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; actualDate = [dateCalender &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;dateFromComponents&lt;/span&gt;:components];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; actualDate;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *)getcurrentDateOnly&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *CurrentDate = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;date&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *Formatter=[[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *locale = [[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;initWithLocaleIdentifier&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;en_US&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setLocale&lt;/span&gt;:locale];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;dd-MMM-yyyy&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *FormattedDate=[Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;stringFromDate&lt;/span&gt;:CurrentDate];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;dateFromString&lt;/span&gt;:FormattedDate];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *)getcurrentDateInString&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *CurrentDate = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;date&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *Formatter=[[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *locale = [[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;initWithLocaleIdentifier&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;en_US&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setLocale&lt;/span&gt;:locale];&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; [Formatter &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDateFormat&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;@&quot;dd-MMM-yyyy HH:mm a&quot;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *FormattedDate=[Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;stringFromDate&lt;/span&gt;:CurrentDate];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; FormattedDate;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *)getcurrentTime&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *CurrentDate = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;date&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *Formatter=[[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *locale = [[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;initWithLocaleIdentifier&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;en_US&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setLocale&lt;/span&gt;:locale];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;h:mm a&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; CurrentDate;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *)convertStringDateToNSDate :(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *)dateString&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSCalendar&lt;/span&gt; *currentCalender =[&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSCalendar&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;currentCalendar&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDateFormatter&lt;/span&gt; *stringToDateFormater =[[&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDateFormatter&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;] &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *locale = [[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;initWithLocaleIdentifier&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;en_US&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [stringToDateFormater &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setLocale&lt;/span&gt;:locale];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [stringToDateFormater &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;dd MMMM y&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *fulldate = [stringToDateFormater &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;dateFromString&lt;/span&gt;:dateString];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDateComponents&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *components = [currentCalender &lt;/span&gt;components&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;: &lt;/span&gt;NSCalendarUnitDay&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; | &lt;/span&gt;NSCalendarUnitMonth&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; | &lt;/span&gt;NSCalendarUnitYear&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; |&lt;/span&gt;NSCalendarUnitHour&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;fromDate&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:fulldate];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSCalendar&lt;/span&gt; *dateCalender = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSCalendar&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;currentCalendar&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [components &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setCalendar&lt;/span&gt;:dateCalender];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [components &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDay&lt;/span&gt;:&lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;1&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [components &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setHour&lt;/span&gt;:&lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;4&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; fulldate = [dateCalender &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;dateFromComponents&lt;/span&gt;:components];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; fulldate;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *)convertStringTimeToDate :(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *)time&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *CurrentDate = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;date&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSCalendar&lt;/span&gt; *currentCalender =[&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSCalendar&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;currentCalendar&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDateComponents&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *components = [currentCalender &lt;/span&gt;components&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;NSCalendarUnitDay&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; | &lt;/span&gt;NSCalendarUnitMonth&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; | &lt;/span&gt;NSCalendarUnitYear&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; | &lt;/span&gt;NSCalendarUnitHour&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; | &lt;/span&gt;NSCalendarUnitMinute&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;fromDate&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:CurrentDate];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDateFormatter&lt;/span&gt; *stringToDateFormater =[[&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDateFormatter&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;] &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *locale = [[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;initWithLocaleIdentifier&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;en_US&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [stringToDateFormater &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setLocale&lt;/span&gt;:locale];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [stringToDateFormater &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;h:mm a&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *date = [stringToDateFormater &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;dateFromString&lt;/span&gt;:time];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSCalendar&lt;/span&gt; *dateCalender =[&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSCalendar&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;currentCalendar&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDateComponents&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *datecomponents = [dateCalender &lt;/span&gt;components&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;NSCalendarUnitDay&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; | &lt;/span&gt;NSCalendarUnitMonth&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; | &lt;/span&gt;NSCalendarUnitYear&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; | &lt;/span&gt;NSCalendarUnitHour&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; | &lt;/span&gt;NSCalendarUnitMinute&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;fromDate&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:date];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [datecomponents &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDay&lt;/span&gt;:components.&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;day&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [datecomponents &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setMonth&lt;/span&gt;:components.&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;month&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [datecomponents &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setYear&lt;/span&gt;:components.&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;year&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; date = [dateCalender &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;dateFromComponents&lt;/span&gt;:datecomponents];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; date;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *)convertTimeToString :(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *)time&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *CurrentDate = time;&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *Formatter=[[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *locale = [[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;initWithLocaleIdentifier&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;en_US&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setLocale&lt;/span&gt;:locale];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;h:mm a&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *timeString=[Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;stringFromDate&lt;/span&gt;:CurrentDate];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; timeString;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *)convertDateToString :(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *)date&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *CurrentDate = date;&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *Formatter=[[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *locale = [[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;initWithLocaleIdentifier&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;en_US&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setLocale&lt;/span&gt;:locale];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;MMM&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *timeString=[Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;stringFromDate&lt;/span&gt;:CurrentDate];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; timeString;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *)getcurrentTimeInString&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *CurrentDate = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;date&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *Formatter=[[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *locale = [[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLocale&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;alloc&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;initWithLocaleIdentifier&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;en_US&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setLocale&lt;/span&gt;:locale];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;h:mm a&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *timeString=[Formatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;stringFromDate&lt;/span&gt;:CurrentDate];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; timeString;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *)convertMinutesToTimeInterval :(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSUInteger&lt;/span&gt;)minutes&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSTimeInterval&lt;/span&gt; timeInterval =minutes*&lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;60&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateComponentsFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *componentFormatter = [[&lt;/span&gt;NSDateComponentsFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; componentFormatter.&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;unitsStyle&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; = &lt;/span&gt;NSDateComponentsFormatterUnitsStyleShort&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; componentFormatter.&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;zeroFormattingBehavior&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; = &lt;/span&gt;NSDateComponentsFormatterZeroFormattingBehaviorDropAll&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *formattedString = [componentFormatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;stringFromTimeInterval&lt;/span&gt;:timeInterval];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; formattedString;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
+(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *)convertMinutesToTimeIntervalNumericWay :(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSUInteger&lt;/span&gt;)minutes&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSTimeInterval&lt;/span&gt; timeInterval =minutes*&lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;60&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateComponentsFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *componentFormatter = [[&lt;/span&gt;NSDateComponentsFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; componentFormatter.&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;unitsStyle&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; = &lt;/span&gt;NSDateComponentsFormatterUnitsStylePositional&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; componentFormatter.&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;zeroFormattingBehavior&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; = &lt;/span&gt;NSDateComponentsFormatterZeroFormattingBehaviorDropAll&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *formattedString = [componentFormatter &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;stringFromTimeInterval&lt;/span&gt;:timeInterval];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; formattedString;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/4674403856931565112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2015/09/ios-nsdate-all-type-of-conversions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/4674403856931565112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/4674403856931565112'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2015/09/ios-nsdate-all-type-of-conversions.html' title='iOS NSDate -- All type of conversions Class Methods'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-8198257694702789742</id><published>2015-01-17T21:40:00.000-08:00</published><updated>2015-01-17T21:50:01.375-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS sidebar"/><category scheme="http://www.blogger.com/atom/ns#" term="side bar"/><category scheme="http://www.blogger.com/atom/ns#" term="side bar menu"/><category scheme="http://www.blogger.com/atom/ns#" term="sidebar"/><category scheme="http://www.blogger.com/atom/ns#" term="sidebar menu"/><category scheme="http://www.blogger.com/atom/ns#" term="sidebar menu arabic"/><title type='text'>Side Bar Menu using xib for English and Arabic Languages</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In this sample i made sidebar menu for English and Arabic languages&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/AVvXsEi7HaLI_x8wM0HcLXqdgpfffG1hG7iNFhVi8QZ32zk87xAhIQj1K8UBCnkBcWg7iPUvmhQGU-ar0n4tn1iAU-wunF14JxVptKk_1grvqRUavBuFk9OZwEqd8ahcTc_pJHYcy6gILdYIDu0/s1600/iOS+Simulator+Screen+shot+Jan+18,+2015,+9.37.30+AM.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7HaLI_x8wM0HcLXqdgpfffG1hG7iNFhVi8QZ32zk87xAhIQj1K8UBCnkBcWg7iPUvmhQGU-ar0n4tn1iAU-wunF14JxVptKk_1grvqRUavBuFk9OZwEqd8ahcTc_pJHYcy6gILdYIDu0/s1600/iOS+Simulator+Screen+shot+Jan+18,+2015,+9.37.30+AM.png&quot; height=&quot;200&quot; width=&quot;133&quot; /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjhZSMcNrouzYcNCQgi7JJJmlZfGigfugd34jnHTD-gJ83JFzyS0ceGXRKm05ysk1o5Fc1XrltxOozmErVEWOaVrLkGZO7TJdr_dKrnlXc-a9G2oQ1-xPtOOeUo04NYfGOdan2FabsU1E/s1600/iOS+Simulator+Screen+shot+Jan+18,+2015,+9.37.01+AM.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/AVvXsEhjhZSMcNrouzYcNCQgi7JJJmlZfGigfugd34jnHTD-gJ83JFzyS0ceGXRKm05ysk1o5Fc1XrltxOozmErVEWOaVrLkGZO7TJdr_dKrnlXc-a9G2oQ1-xPtOOeUo04NYfGOdan2FabsU1E/s1600/iOS+Simulator+Screen+shot+Jan+18,+2015,+9.37.01+AM.png&quot; height=&quot;200&quot; width=&quot;133&quot; /&gt;&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgO5mnn8uLWxtjTtlpGA5RWSwRBvZgLDAJ7JdT5jEBfxo7VZKnPrT8NVGQilhWccc5B99HgPVAjN0J0T537X_7Ajk7SNFmVlfn6PCXBtL1J8ZaznoDsfqjJ8hhQd1Cw5oAV4dqV242bB0/s1600/iOS+Simulator+Screen+shot+Jan+18,+2015,+9.37.17+AM.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/AVvXsEhgO5mnn8uLWxtjTtlpGA5RWSwRBvZgLDAJ7JdT5jEBfxo7VZKnPrT8NVGQilhWccc5B99HgPVAjN0J0T537X_7Ajk7SNFmVlfn6PCXBtL1J8ZaznoDsfqjJ8hhQd1Cw5oAV4dqV242bB0/s1600/iOS+Simulator+Screen+shot+Jan+18,+2015,+9.37.17+AM.png&quot; height=&quot;200&quot; width=&quot;133&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please Download from below link:&lt;br /&gt;
&lt;a href=&quot;https://github.com/AbdulKareemios/Sidebar-Menu-iOS.git&quot;&gt;https://github.com/AbdulKareemios/Sidebar-Menu-iOS.git&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/8198257694702789742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2015/01/side-bar-menu-using-xib-for-english-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/8198257694702789742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/8198257694702789742'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2015/01/side-bar-menu-using-xib-for-english-and.html' title='Side Bar Menu using xib for English and Arabic Languages'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7HaLI_x8wM0HcLXqdgpfffG1hG7iNFhVi8QZ32zk87xAhIQj1K8UBCnkBcWg7iPUvmhQGU-ar0n4tn1iAU-wunF14JxVptKk_1grvqRUavBuFk9OZwEqd8ahcTc_pJHYcy6gILdYIDu0/s72-c/iOS+Simulator+Screen+shot+Jan+18,+2015,+9.37.30+AM.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-3527465110545661216</id><published>2014-11-20T06:58:00.001-08:00</published><updated>2015-09-29T00:39:54.783-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS phone on validation"/><category scheme="http://www.blogger.com/atom/ns#" term="phone no validation"/><title type='text'>iOS Phone No Validation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&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;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
-(&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;BOOL&lt;/span&gt;)checkValidation :(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *)phoneNo&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *phoneRegex = &lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;((971)\\d{9})&quot;&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSPredicate&lt;/span&gt; *phoneTest = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSPredicate&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;predicateWithFormat&lt;/span&gt;:&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;SELF MATCHES %@&quot;&lt;/span&gt;, phoneRegex];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;BOOL&lt;/span&gt; phoneValidates = [phoneTest &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;evaluateWithObject&lt;/span&gt;:phoneNo];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; phoneValidates;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/3527465110545661216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/11/phone-no-validation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/3527465110545661216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/3527465110545661216'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/11/phone-no-validation.html' title='iOS Phone No Validation'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-649888308441530210</id><published>2014-07-24T04:06:00.000-07:00</published><updated>2015-09-29T00:22:07.268-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ios youtube video landscape"/><category scheme="http://www.blogger.com/atom/ns#" term="iphone embeded video landscape"/><category scheme="http://www.blogger.com/atom/ns#" term="Youtube Embeded  not playing in landscape mode in iOS6 and above"/><title type='text'>Youtube Embeded  not playing in landscape mode in iOS6 and above</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Georgia, Times New Roman; font-size: x-large;&quot;&gt;Just Copy and paste below code in your AppDelegate&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
- (&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSUInteger&lt;/span&gt;)application:(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;UIApplication&lt;/span&gt; *)application supportedInterfaceOrientationsForWindow:(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;UIWindow&lt;/span&gt; *)window {&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;id&lt;/span&gt; presentedViewController = [window.&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;rootViewController&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;presentedViewController&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *className = presentedViewController ? &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSStringFromClass&lt;/span&gt;([presentedViewController &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;class&lt;/span&gt;]) : &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;nil&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; (window &amp;amp;&amp;amp; [className &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;isEqualToString&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;@&quot;MPInlineVideoFullscreenViewController&quot;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;]) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;UIInterfaceOrientationMaskAll&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; } &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;else&lt;/span&gt; {&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;UIInterfaceOrientationMaskPortrait&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/649888308441530210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/07/youtube-embeded-not-playing-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/649888308441530210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/649888308441530210'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/07/youtube-embeded-not-playing-in.html' title='Youtube Embeded  not playing in landscape mode in iOS6 and above'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-5169974098111496828</id><published>2014-07-12T07:31:00.000-07:00</published><updated>2015-09-29T00:22:47.565-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iphone play youtube viedeo"/><category scheme="http://www.blogger.com/atom/ns#" term="webview"/><category scheme="http://www.blogger.com/atom/ns#" term="youtube video in html"/><title type='text'>Play Youtube video in webview with HTML </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Copy and Paste below code and load in your webview:&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;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSURL&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *myURL =[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSURL&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;URLWithString&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;@&quot;http://www.youtube.com/v/zah99ETVOz4&quot;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *embedHTML = &lt;/span&gt;@&quot;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&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;&amp;lt;body style=\&quot;background:#F00;margin-top:0px;margin-left:0px\&quot;&amp;gt;&amp;lt;div&amp;gt;&amp;lt;object width=\&quot;212\&quot; height=\&quot;172\&quot;&amp;gt;&amp;lt;param name=\&quot;movie\&quot; value=\&quot;%@\&quot;&amp;gt;&amp;lt;/param&amp;gt;&amp;lt;param name=\&quot;wmode\&quot; value=\&quot;transparent\&quot;&amp;gt;&amp;lt;/param&amp;gt;&amp;lt;embed src=\&quot;%@\&quot;type=\&quot;application/x-shockwave-flash\&quot; wmode=\&quot;transparent\&quot; width=\&quot;320\&quot; height=\&quot;270\&quot;&amp;gt;&amp;lt;/embed&amp;gt;&amp;lt;/object&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&quot;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #4f8187; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *html = [&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;stringWithFormat&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;embedHTML&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;, &lt;/span&gt;myURL&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;,&lt;/span&gt;myURL&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;,&lt;/span&gt;myURL&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
[YourWebView loadHTMLString:html baseURL:&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;nil&lt;/span&gt;];&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;a href=&quot;https://drive.google.com/file/d/0B26dJx04YuFTampMcEZhaG8wNnc/edit?usp=sharing&quot; target=&quot;_blank&quot;&gt;Dowbload Project from Here&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/5169974098111496828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/07/play-youtube-video-in-webview-with-html.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/5169974098111496828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/5169974098111496828'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/07/play-youtube-video-in-webview-with-html.html' title='Play Youtube video in webview with HTML '/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-4075911489134288830</id><published>2014-06-30T01:32:00.001-07:00</published><updated>2015-09-29T00:23:23.942-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="add custom event"/><category scheme="http://www.blogger.com/atom/ns#" term="add event into calendar"/><category scheme="http://www.blogger.com/atom/ns#" term="ios calendar"/><title type='text'>Add Event into iphone Calendar</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
//Add Event kit framework&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;EventKit.framework&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
//import&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;#import &lt;/span&gt;&amp;lt;EventKit/EventKit.h&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
//Copy below code and enjoy&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
-(&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;IBAction&lt;/span&gt;)AddEvent:(&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;id&lt;/span&gt;)sender&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *dateString = &lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;Jul 09,2014 00:00&quot;&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #008400; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;//Create a formater&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *formater =[[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; [formater &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;setDateFormat&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;@&quot;MMM dd,yyyy HH:mm&quot;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; *startDate =[formater &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;dateFromString&lt;/span&gt;:dateString];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSLog&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;(&lt;/span&gt;@&quot;current date %@&quot;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;,[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;]);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; EKEventStore *store = [[EKEventStore alloc] init];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [store requestAccessToEntityType:EKEntityTypeEvent completion:^(&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;BOOL&lt;/span&gt; granted, NSError *error) {&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;if&lt;/span&gt; (!granted) { &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt;; }&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EKEvent *event = [EKEvent eventWithEventStore:store];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; event.title = &lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;My Birthday&quot;&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; event.startDate = startDate;&lt;span style=&quot;color: #008400; font-variant-ligatures: no-common-ligatures;&quot;&gt;//[NSDate date]; //today&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; event.endDate = [event.startDate dateByAddingTimeInterval:&lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;60&lt;/span&gt;*&lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;60&lt;/span&gt;];&amp;nbsp; &lt;span style=&quot;color: #008400; font-variant-ligatures: no-common-ligatures;&quot;&gt;//set 1 hour meeting&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [event setCalendar:[store defaultCalendarForNewEvents]];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSError *err = &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;nil&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [store saveEvent:event span:EKSpanThisEvent commit:&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;YES&lt;/span&gt; error:&amp;amp;err];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSString *savedEventId = event.eventIdentifier;&amp;nbsp; &lt;span style=&quot;color: #008400; font-variant-ligatures: no-common-ligatures;&quot;&gt;//this is so you can access this event later&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/4075911489134288830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/06/add-event-into-iphone-calendar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/4075911489134288830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/4075911489134288830'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/06/add-event-into-iphone-calendar.html' title='Add Event into iphone Calendar'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-6610524795738845078</id><published>2014-06-06T11:07:00.000-07:00</published><updated>2014-06-06T11:07:11.572-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="caf format"/><category scheme="http://www.blogger.com/atom/ns#" term="convert mp3 to caf"/><category scheme="http://www.blogger.com/atom/ns#" term="mp3 to caf"/><title type='text'>Convert mp3 to caf format</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;
Open terminal and go to the folder where your mp3 file is placed then write below command and enter&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;afconvert -f caff -d LEI16@44100 song.mp3 song.caf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Thats all&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/6610524795738845078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/06/convert-mp3-to-caf-format.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/6610524795738845078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/6610524795738845078'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/06/convert-mp3-to-caf-format.html' title='Convert mp3 to caf format'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-7829113072717864946</id><published>2014-06-05T13:18:00.001-07:00</published><updated>2014-06-05T13:20:36.546-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ios download background."/><category scheme="http://www.blogger.com/atom/ns#" term="ios download manager"/><category scheme="http://www.blogger.com/atom/ns#" term="NSURLSession"/><title type='text'>Download Manager for 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;background-color: #fcfcfc; box-sizing: border-box; color: #565656; direction: ltr; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.6; margin-bottom: 19px; padding: 0px; text-rendering: optimizelegibility;&quot;&gt;
Small effort by&amp;nbsp;&lt;b&gt;ideamakerz.&lt;/b&gt;&lt;br /&gt;
This download manager uses the iOS 7 NSURLSession api to download files.&lt;/div&gt;
&lt;div style=&quot;background-color: #fcfcfc; box-sizing: border-box; color: #565656; direction: ltr; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.6; margin-bottom: 19px; padding: 0px; text-rendering: optimizelegibility;&quot;&gt;
&lt;/div&gt;
&lt;ol style=&quot;background-color: #fcfcfc; box-sizing: border-box; color: #565656; direction: ltr; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.6; list-style-image: initial; list-style-position: initial; margin: 0px 0px 19px 1.9em; padding: 0px;&quot;&gt;
&lt;li style=&quot;-webkit-transition: all 0.3s; box-sizing: border-box; direction: ltr; margin: 0px 0px 0.25em; padding: 0px; transition: all 0.3s;&quot;&gt;Can download files if app is in background.&lt;/li&gt;
&lt;li style=&quot;-webkit-transition: all 0.3s; box-sizing: border-box; direction: ltr; margin: 0px 0px 0.25em; padding: 0px; transition: all 0.3s;&quot;&gt;Can download multiple files at a time.&lt;/li&gt;
&lt;li style=&quot;-webkit-transition: all 0.3s; box-sizing: border-box; direction: ltr; margin: 0px 0px 0.25em; padding: 0px; transition: all 0.3s;&quot;&gt;It can resume interrupted downloads.&lt;/li&gt;
&lt;li style=&quot;-webkit-transition: all 0.3s; box-sizing: border-box; direction: ltr; margin: 0px 0px 0.25em; padding: 0px; transition: all 0.3s;&quot;&gt;User can also pause the download.&lt;/li&gt;
&lt;li style=&quot;-webkit-transition: all 0.3s; box-sizing: border-box; direction: ltr; margin: 0px 0px 0.25em; padding: 0px; transition: all 0.3s;&quot;&gt;User can retry any download if any error occurred during download.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&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/AVvXsEgoyAXIqeXBbhypoKHFcSN-ioH_ZCWMhWXP8yWTpp5bAWihGHwSrYspwIj0Dz91-Z-n2ShQL7AjOJ8m_PYLJxlIZBXvF6iQkdz_P-sXSQzqnNJDy13DEubGyi67F4JbJweOlFvhKuiQ9rE/s1600/mzdownload+manager+hero.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/AVvXsEgoyAXIqeXBbhypoKHFcSN-ioH_ZCWMhWXP8yWTpp5bAWihGHwSrYspwIj0Dz91-Z-n2ShQL7AjOJ8m_PYLJxlIZBXvF6iQkdz_P-sXSQzqnNJDy13DEubGyi67F4JbJweOlFvhKuiQ9rE/s1600/mzdownload+manager+hero.png&quot; height=&quot;142&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
You can download this amazing tool for your development from &lt;a href=&quot;http://goo.gl/7jHOh1&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/div&gt;
&lt;div&gt;
Install in your device from &lt;a href=&quot;http://install.diawi.com/3ARLLd&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/7829113072717864946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/06/download-manager-for-ios.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/7829113072717864946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/7829113072717864946'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/06/download-manager-for-ios.html' title='Download Manager for iOS '/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoyAXIqeXBbhypoKHFcSN-ioH_ZCWMhWXP8yWTpp5bAWihGHwSrYspwIj0Dz91-Z-n2ShQL7AjOJ8m_PYLJxlIZBXvF6iQkdz_P-sXSQzqnNJDy13DEubGyi67F4JbJweOlFvhKuiQ9rE/s72-c/mzdownload+manager+hero.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-4594447521822392365</id><published>2014-06-03T03:22:00.000-07:00</published><updated>2014-06-03T03:22:40.259-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="function in swift"/><category scheme="http://www.blogger.com/atom/ns#" term="ios swift"/><category scheme="http://www.blogger.com/atom/ns#" term="swift"/><category scheme="http://www.blogger.com/atom/ns#" term="swift language"/><title type='text'>How to right function in swift language</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;background-color: #d9ead3;&quot;&gt;func whatsYourStatus (age:Int, name:String) -&amp;gt;(String)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; var answer=&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; if(age &amp;lt; 0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; answer = &quot;you need to born first!&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; else if(age &amp;lt; 13)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; answer = &quot;you are not ready for programing&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; else if(age &amp;gt;= 13 &amp;amp;&amp;amp; age &amp;lt;= 19)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; answer = &quot;you can start programing&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; else if(age &amp;gt; 19 &amp;amp;&amp;amp; age &amp;lt;= 25)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; answer = &quot;you are an expert of Objective-C&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; else if(age &amp;gt; 25 &amp;amp;&amp;amp; age &amp;lt;= 30)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; answer = &quot;you are not ready for swift&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; else if(age &amp;gt; 30 &amp;amp;&amp;amp; age &amp;lt;= 35)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; answer = &quot;you are an expert of swift&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; else if(age &amp;gt; 35)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; answer=&quot;you are retired , have time with your family&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; return &quot;\(name) \(answer)&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;whatsYourStatus(45, &quot;Kareem&quot;)&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/4594447521822392365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/06/how-to-right-function-in-swift-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/4594447521822392365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/4594447521822392365'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/06/how-to-right-function-in-swift-language.html' title='How to right function in swift language'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-9179323253820431666</id><published>2014-05-14T10:17:00.002-07:00</published><updated>2014-05-14T10:17:19.023-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="simple integration sqlite"/><category scheme="http://www.blogger.com/atom/ns#" term="simple sqlite"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite in ios"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite integration"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite integration in ios"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite integration iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite sample"/><title type='text'>SQLite DB Integration in iOS -- Basic Tutorial ,(In Process ....)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
This Post is in under Development, it will be final soon....................&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
This post is the basic SQLite integration in iOS project for newcomers, if you are experienced developer then it will not be helpful for you :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
To create database and manage tables you can add SQLite Manager Add-Ons in Firefox please follow the below guideline:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://addons.mozilla.org/en-us/firefox/addon/sqlite-manager/&quot; target=&quot;_blank&quot;&gt;SQLite Manager Firfox Add-ons&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&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/AVvXsEgCIyQ_MoW7zTFX-P8G40jcwEObaVp7KHKvvMJwVkltLkfKDZxSPTOvmCWQ9RvAWj_IyhpURfEkW_N490ZU0g956TWFaVYopfSUE1BDptxXkRYUccwbXoCBFfwYSZwJ-mUbeFd1KQVhBgI/s1600/Screen+Shot+2014-05-13+at+10.03.20+PM.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/AVvXsEgCIyQ_MoW7zTFX-P8G40jcwEObaVp7KHKvvMJwVkltLkfKDZxSPTOvmCWQ9RvAWj_IyhpURfEkW_N490ZU0g956TWFaVYopfSUE1BDptxXkRYUccwbXoCBFfwYSZwJ-mUbeFd1KQVhBgI/s1600/Screen+Shot+2014-05-13+at+10.03.20+PM.png&quot; height=&quot;151&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Open SQLite Manager from Firefox:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&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/AVvXsEiWwrok5DdypfUMmR5ZPtimccfypQVSPCmgr7nQ6Y5IetAKVQHrF_S7VqyahG4hBv5Iu9foail5NUfAx-YWuVaQhIlE4q4KQ5qLYtp-kvN0CN0w7BeHem-TJtxMLZZ0cMJOTxxYF5rLmUw/s1600/Screen+Shot+2014-05-13+at+10.05.21+PM.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/AVvXsEiWwrok5DdypfUMmR5ZPtimccfypQVSPCmgr7nQ6Y5IetAKVQHrF_S7VqyahG4hBv5Iu9foail5NUfAx-YWuVaQhIlE4q4KQ5qLYtp-kvN0CN0w7BeHem-TJtxMLZZ0cMJOTxxYF5rLmUw/s1600/Screen+Shot+2014-05-13+at+10.05.21+PM.png&quot; height=&quot;116&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Creating new Database:&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/AVvXsEiqLqQJ7tEXC-jwgeGPZt_Y4GLLlH5xW-xvCe3LcSuW_RNJKpY3CB-4SQ_5Y5xteq85SE5f-Sd7togT0ndjWd7YySkElXXB44xTk_q6VgSxMiuG8WeepHrBpUCvar_Ugh1X9VkgVWqXEoQ/s1600/Screen+Shot+2014-05-13+at+10.07.21+PM.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/AVvXsEiqLqQJ7tEXC-jwgeGPZt_Y4GLLlH5xW-xvCe3LcSuW_RNJKpY3CB-4SQ_5Y5xteq85SE5f-Sd7togT0ndjWd7YySkElXXB44xTk_q6VgSxMiuG8WeepHrBpUCvar_Ugh1X9VkgVWqXEoQ/s1600/Screen+Shot+2014-05-13+at+10.07.21+PM.png&quot; height=&quot;70&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Creating a Table :&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&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/AVvXsEhsM7t_At1YNFI7Xcr7iWTeThmrKOxBL_CHKbswikgsX8QPY1nVIuEH9-jPxbg458gJglV604zdNBKrZQ-TrPfG89nucS0OtY2XYKf3wNDS80MJVkCy15qJZjrLL9vtV2Bf3Zmf1mzLIp0/s1600/Screen+Shot+2014-05-13+at+10.07.49+PM.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/AVvXsEhsM7t_At1YNFI7Xcr7iWTeThmrKOxBL_CHKbswikgsX8QPY1nVIuEH9-jPxbg458gJglV604zdNBKrZQ-TrPfG89nucS0OtY2XYKf3wNDS80MJVkCy15qJZjrLL9vtV2Bf3Zmf1mzLIp0/s1600/Screen+Shot+2014-05-13+at+10.07.49+PM.png&quot; height=&quot;110&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&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/AVvXsEhUaz8FIumqlELfjP8mrAA69ggYObn4sw0JRNXspo5a9AfwbzCCkLIhQZp2GbJtpNqeZLPK0x-uCov_3-isN3KfXkRh-PO6hk6sqUWPOhEG-03M5vxjXe3ibY4FKSYE03VAQVlduavmiaU/s1600/Screen+Shot+2014-05-13+at+10.16.36+PM.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/AVvXsEhUaz8FIumqlELfjP8mrAA69ggYObn4sw0JRNXspo5a9AfwbzCCkLIhQZp2GbJtpNqeZLPK0x-uCov_3-isN3KfXkRh-PO6hk6sqUWPOhEG-03M5vxjXe3ibY4FKSYE03VAQVlduavmiaU/s1600/Screen+Shot+2014-05-13+at+10.16.36+PM.png&quot; height=&quot;148&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Optional:&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
For SQLite DB this tool is also very helpful, if you wish to use just open sqlite file with Navicate:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.navicat.com/products/navicat-for-sqlite&quot; target=&quot;_blank&quot;&gt;Navicat Sqlite Manager&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 class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&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/AVvXsEjE8FG7N_Mngep_e8gX4yRxWgtGzqQvvRCywZ8xUOLYVw7PN2f2arhsiSwzrkGtaSahCWA56JwLTxdiCMJGGPju0vTiEThM9I7O5swnyWJPROsGgdQSsYJvEwg55ddUpQyC0dU1ZDQyO7A/s1600/Screen+Shot+2014-05-13+at+9.59.29+PM.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/AVvXsEjE8FG7N_Mngep_e8gX4yRxWgtGzqQvvRCywZ8xUOLYVw7PN2f2arhsiSwzrkGtaSahCWA56JwLTxdiCMJGGPju0vTiEThM9I7O5swnyWJPROsGgdQSsYJvEwg55ddUpQyC0dU1ZDQyO7A/s1600/Screen+Shot+2014-05-13+at+9.59.29+PM.png&quot; height=&quot;117&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag your SQLite database file into your project:&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/AVvXsEilM9WghScmurcc3KVSeXVqWpy_W8WMMXrVRbhUIymRi6xprLxJT2YqVi7xGSlqPZEZyEHTG1i9FPbLyFLNBN8tbuHnfBcF9y69d1jlqagvgQuJ89Rjlr03R2hF7vnZFaYOnQQruzQjiEM/s1600/Screen+Shot+2014-05-13+at+10.20.33+PM.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/AVvXsEilM9WghScmurcc3KVSeXVqWpy_W8WMMXrVRbhUIymRi6xprLxJT2YqVi7xGSlqPZEZyEHTG1i9FPbLyFLNBN8tbuHnfBcF9y69d1jlqagvgQuJ89Rjlr03R2hF7vnZFaYOnQQruzQjiEM/s1600/Screen+Shot+2014-05-13+at+10.20.33+PM.png&quot; height=&quot;181&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Make sure create group for any added folder is selected and &amp;nbsp;add to target your project as show in belowimage.&lt;br /&gt;
&lt;div&gt;
&lt;br /&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/AVvXsEhQxThHJA1rGKJ1t4ZDOvfKarGTP-SxEmrihs4CvJgDzozBaIX4C1MNLPT_59QL76TjqR-rHjA80yq8MRsUkbDe9h9T6ve0A_a_R3XCJKfqIVLEDy4YQ2iyOI9ZuDgRbmmbaivacDqj3Z0/s1600/Screen+Shot+2014-05-13+at+10.20.50+PM.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/AVvXsEhQxThHJA1rGKJ1t4ZDOvfKarGTP-SxEmrihs4CvJgDzozBaIX4C1MNLPT_59QL76TjqR-rHjA80yq8MRsUkbDe9h9T6ve0A_a_R3XCJKfqIVLEDy4YQ2iyOI9ZuDgRbmmbaivacDqj3Z0/s1600/Screen+Shot+2014-05-13+at+10.20.50+PM.png&quot; height=&quot;192&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copy Database into Document Directory:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You can call this method in&amp;nbsp;didFinishLaunchingWithOptions in Appdelegate.m&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&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;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&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;&lt;span class=&quot;s2&quot;&gt;UIWindow&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;alloc&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;initWithFrame&lt;span class=&quot;s3&quot;&gt;:[[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;UIScreen&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; &lt;/span&gt;mainScreen&lt;span class=&quot;s3&quot;&gt;] &lt;/span&gt;bounds&lt;span class=&quot;s3&quot;&gt;]];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s5&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;// Override point for customization after application launch.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s5&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;//Copy Database into Document Directory&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt; &lt;span class=&quot;s6&quot;&gt;copyDB&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;-(&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)copyDB&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; //sample is the name of your&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;database&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSString&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; *str = [[&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSBundle&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;mainBundle&lt;span class=&quot;s2&quot;&gt;]&lt;/span&gt;pathForResource&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;@&quot;sample&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;ofType&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;@&quot;sqlite&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSString&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; *docpath = [&lt;/span&gt;NSSearchPathForDirectoriesInDomains&lt;span class=&quot;s2&quot;&gt;(&lt;/span&gt;NSDocumentDirectory&lt;span class=&quot;s2&quot;&gt;, &lt;/span&gt;NSUserDomainMask&lt;span class=&quot;s2&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;) &lt;/span&gt;objectAtIndex&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSString&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; *destPaht = [docpath &lt;/span&gt;stringByAppendingPathComponent&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;@&quot;sample.sqlite&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;NSLog&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;(&lt;/span&gt;@&quot;databse path %@&quot;&lt;span class=&quot;s2&quot;&gt;,destPaht);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSFileManager&lt;span class=&quot;s2&quot;&gt; *mgr = [&lt;/span&gt;NSFileManager&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;defaultManager&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;if&lt;/span&gt; (![mgr &lt;span class=&quot;s6&quot;&gt;fileExistsAtPath&lt;/span&gt;:destPaht])&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [mgr &lt;span class=&quot;s6&quot;&gt;copyItemAtPath&lt;/span&gt;:str &lt;span class=&quot;s6&quot;&gt;toPath&lt;/span&gt;:destPaht &lt;span class=&quot;s6&quot;&gt;error&lt;/span&gt;:&lt;span class=&quot;s1&quot;&gt;nil&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
//Below is class method for Select Query to get all records from table:&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;+(&lt;span class=&quot;s1&quot;&gt;NSMutableArray&lt;/span&gt; *)GetAllRecords&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSMutableArray&lt;span class=&quot;s2&quot;&gt; *finalempArr =[&lt;/span&gt;NSMutableArray&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;sqlite3&lt;/span&gt; *database;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s4&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;s3&quot;&gt;sqlite3_open&lt;/span&gt;([&lt;span class=&quot;s5&quot;&gt;Database_Path&lt;/span&gt; &lt;span class=&quot;s3&quot;&gt;UTF8String&lt;/span&gt;], &amp;amp;database) == &lt;span class=&quot;s5&quot;&gt;SQLITE_OK&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&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;s1&quot;&gt;NSString&lt;/span&gt; *selectSql;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&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;selectSql = [&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;NSString&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;stringWithFormat&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;@&quot;SELECT * FROM records&quot;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&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;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&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;s1&quot;&gt;sqlite3_stmt&lt;/span&gt; *statement;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&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;s4&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; (&lt;/span&gt;sqlite3_prepare_v2&lt;span class=&quot;s2&quot;&gt;(database, [selectSql &lt;/span&gt;cStringUsingEncoding&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;NSUTF8StringEncoding&lt;span class=&quot;s2&quot;&gt;], -&lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;, &amp;amp;statement, &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;) == &lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;SQLITE_OK&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&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;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&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;&lt;span class=&quot;s4&quot;&gt;while&lt;/span&gt; (&lt;span class=&quot;s3&quot;&gt;sqlite3_step&lt;/span&gt;(statement) == &lt;span class=&quot;s5&quot;&gt;SQLITE_ROW&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&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;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;NSMutableDictionary&lt;span class=&quot;s2&quot;&gt; *empDic =[&lt;/span&gt;NSMutableDictionary&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;dictionary&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s7&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;//here we get all column entries from table&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSString&lt;/span&gt; *emp_id = [&lt;span class=&quot;s1&quot;&gt;NSString&lt;/span&gt; &lt;span class=&quot;s3&quot;&gt;stringWithUTF8String&lt;/span&gt;:(&lt;span class=&quot;s4&quot;&gt;char&lt;/span&gt; *)&lt;span class=&quot;s3&quot;&gt;sqlite3_column_text&lt;/span&gt;(statement,&lt;span class=&quot;s6&quot;&gt;0&lt;/span&gt;)];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSString&lt;/span&gt; *emp_name = [&lt;span class=&quot;s1&quot;&gt;NSString&lt;/span&gt; &lt;span class=&quot;s3&quot;&gt;stringWithUTF8String&lt;/span&gt;:(&lt;span class=&quot;s4&quot;&gt;char&lt;/span&gt; *)&lt;span class=&quot;s3&quot;&gt;sqlite3_column_text&lt;/span&gt;(statement,&lt;span class=&quot;s6&quot;&gt;1&lt;/span&gt;)];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSString&lt;/span&gt; *emp_age = [&lt;span class=&quot;s1&quot;&gt;NSString&lt;/span&gt; &lt;span class=&quot;s3&quot;&gt;stringWithUTF8String&lt;/span&gt;:(&lt;span class=&quot;s4&quot;&gt;char&lt;/span&gt; *)&lt;span class=&quot;s3&quot;&gt;sqlite3_column_text&lt;/span&gt;(statement,&lt;span class=&quot;s6&quot;&gt;2&lt;/span&gt;)];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSString&lt;/span&gt; *emp_address = [&lt;span class=&quot;s1&quot;&gt;NSString&lt;/span&gt; &lt;span class=&quot;s3&quot;&gt;stringWithUTF8String&lt;/span&gt;:(&lt;span class=&quot;s4&quot;&gt;char&lt;/span&gt; *)&lt;span class=&quot;s3&quot;&gt;sqlite3_column_text&lt;/span&gt;(statement,&lt;span class=&quot;s6&quot;&gt;3&lt;/span&gt;)];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;NSString&lt;/span&gt; *emp_cell = [&lt;span class=&quot;s1&quot;&gt;NSString&lt;/span&gt; &lt;span class=&quot;s3&quot;&gt;stringWithUTF8String&lt;/span&gt;:(&lt;span class=&quot;s4&quot;&gt;char&lt;/span&gt; *)&lt;span class=&quot;s3&quot;&gt;sqlite3_column_text&lt;/span&gt;(statement,&lt;span class=&quot;s6&quot;&gt;4&lt;/span&gt;)];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s7&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;//adding entries in dictionary optioanl&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [empDic &lt;span class=&quot;s3&quot;&gt;setValue&lt;/span&gt;:emp_id &lt;span class=&quot;s3&quot;&gt;forKey&lt;/span&gt;:&lt;span class=&quot;s8&quot;&gt;@&quot;id&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [empDic &lt;span class=&quot;s3&quot;&gt;setValue&lt;/span&gt;:emp_name &lt;span class=&quot;s3&quot;&gt;forKey&lt;/span&gt;:&lt;span class=&quot;s8&quot;&gt;@&quot;name&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [empDic &lt;span class=&quot;s3&quot;&gt;setValue&lt;/span&gt;:emp_age &lt;span class=&quot;s3&quot;&gt;forKey&lt;/span&gt;:&lt;span class=&quot;s8&quot;&gt;@&quot;age&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [empDic &lt;span class=&quot;s3&quot;&gt;setValue&lt;/span&gt;:emp_address &lt;span class=&quot;s3&quot;&gt;forKey&lt;/span&gt;:&lt;span class=&quot;s8&quot;&gt;@&quot;address&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [empDic &lt;span class=&quot;s3&quot;&gt;setValue&lt;/span&gt;:emp_cell &lt;span class=&quot;s3&quot;&gt;forKey&lt;/span&gt;:&lt;span class=&quot;s8&quot;&gt;@&quot;cell&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [finalempArr &lt;span class=&quot;s3&quot;&gt;addObject&lt;/span&gt;:empDic];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; empDic=&lt;span class=&quot;s4&quot;&gt;nil&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&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;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&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;&lt;/span&gt;sqlite3_finalize&lt;span class=&quot;s2&quot;&gt;(statement);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&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;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&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;else&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&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;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&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;&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NSLog&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;(&lt;/span&gt;@&quot;Error&quot;&lt;span class=&quot;s2&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&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;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&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;s3&quot;&gt;sqlite3_close&lt;/span&gt;(database);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; database=&lt;span class=&quot;s4&quot;&gt;nil&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;else&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p8&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;NSLog(@&quot;Database cant open&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;return&lt;/span&gt; finalempArr;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You can call above method like this:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;[&lt;/span&gt;DatabaseClass&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;GetAllRecords&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
You can download Sample SQLite Integration Code from &amp;nbsp;&lt;a href=&quot;https://www.dropbox.com/s/q2p6s32px7q5ykq/SQLite%20Sample.zip&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/9179323253820431666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/05/sqlite-db-integration-in-ios-basic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/9179323253820431666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/9179323253820431666'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/05/sqlite-db-integration-in-ios-basic.html' title='SQLite DB Integration in iOS -- Basic Tutorial ,(In Process ....)'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCIyQ_MoW7zTFX-P8G40jcwEObaVp7KHKvvMJwVkltLkfKDZxSPTOvmCWQ9RvAWj_IyhpURfEkW_N490ZU0g956TWFaVYopfSUE1BDptxXkRYUccwbXoCBFfwYSZwJ-mUbeFd1KQVhBgI/s72-c/Screen+Shot+2014-05-13+at+10.03.20+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-7078977587270265998</id><published>2014-04-16T11:16:00.001-07:00</published><updated>2014-04-26T00:40:51.715-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iphone dev screenshot"/><category scheme="http://www.blogger.com/atom/ns#" term="programatically screenshot"/><category scheme="http://www.blogger.com/atom/ns#" term="screenshot iphone"/><title type='text'>iPhone Screenshot Programatically</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;Below is the method to take screenshot :&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;UIImage&lt;/span&gt; *) screenshot&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;UIGraphicsBeginImageContextWithOptions&lt;span class=&quot;s2&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;bounds&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;NO&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;, [&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;UIScreen&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;mainScreen&lt;span class=&quot;s2&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;scale&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;drawViewHierarchyInRect&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;view&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;bounds&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;afterScreenUpdates&lt;span class=&quot;s2&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;YES&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;UIImage&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; *image = &lt;/span&gt;UIGraphicsGetImageFromCurrentImageContext&lt;span class=&quot;s2&quot;&gt;();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;UIGraphicsEndImageContext&lt;span class=&quot;s2&quot;&gt;();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s3&quot;&gt;return&lt;/span&gt; image;&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;background-color: #d9ead3;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/7078977587270265998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/04/iphone-screenshot-programatically.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/7078977587270265998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/7078977587270265998'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/04/iphone-screenshot-programatically.html' title='iPhone Screenshot Programatically'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-668934554677847372</id><published>2014-04-12T05:21:00.000-07:00</published><updated>2015-09-29T00:24:30.848-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="how to define array in macro"/><category scheme="http://www.blogger.com/atom/ns#" term="how to define nsarray in macro"/><category scheme="http://www.blogger.com/atom/ns#" term="nsarray in macro"/><category scheme="http://www.blogger.com/atom/ns#" term="nsmutablearray macro"/><title type='text'>How to use NSArray in Macro </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 class=&quot;s1&quot;&gt;&lt;b&gt;Here is the solution to define array in macro&amp;nbsp;&lt;/b&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;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;#define Alphabats @[@&lt;/span&gt;&quot;A&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;B&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;C&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;D&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;E&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;F&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;G&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;H&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;I&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;J&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;K&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;L&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;M&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;N&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;O&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;P&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;Q&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;R&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;S&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;T&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;U&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;V&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;W&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;X&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;Y&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;,@&lt;/span&gt;&quot;Z&quot;&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #78492a; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;How to access this array in your code :&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&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 style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSMutableArray&lt;/span&gt; *charArray =[NSMutableArray arrayWithArray:Alphabats];&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/668934554677847372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/04/how-to-use-nsarray-in-macro.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/668934554677847372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/668934554677847372'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/04/how-to-use-nsarray-in-macro.html' title='How to use NSArray in Macro '/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-7680676054050790111</id><published>2014-04-10T06:56:00.002-07:00</published><updated>2015-09-29T00:25:05.088-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="24 hours formate"/><category scheme="http://www.blogger.com/atom/ns#" term="date formate iphone"/><title type='text'>Check Date Format in iPhone</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
This method is useful to check which date formate is selected in iphone etither 24 hours or 12 hours&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *formatter = [[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
[formatter setLocale:[NSLocale currentLocale]];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
[formatter setDateStyle:NSDateFormatterNoStyle];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
[formatter setTimeStyle:NSDateFormatterShortStyle];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt; *dateString = [&lt;span style=&quot;color: #4f8187; font-variant-ligatures: no-common-ligatures;&quot;&gt;formatter&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;stringFromDate&lt;/span&gt;:[&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSDate&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;date&lt;/span&gt;]];&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSRange&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; amRange = [&lt;/span&gt;&lt;span style=&quot;color: #4f8187; font-variant-ligatures: no-common-ligatures;&quot;&gt;dateString&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;rangeOfString&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:[&lt;/span&gt;&lt;span style=&quot;color: #4f8187; font-variant-ligatures: no-common-ligatures;&quot;&gt;formatter&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;AMSymbol&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;]];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSRange&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; pmRange = [&lt;/span&gt;&lt;span style=&quot;color: #4f8187; font-variant-ligatures: no-common-ligatures;&quot;&gt;dateString&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;rangeOfString&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:[&lt;/span&gt;&lt;span style=&quot;color: #4f8187; font-variant-ligatures: no-common-ligatures;&quot;&gt;formatter&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;PMSymbol&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;]];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
Bool HourFormate24 = (amRange.location == NSNotFound &amp;amp;&amp;amp; pmRange.location == NSNotFound);&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/7680676054050790111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/04/check-date-format-in-iphone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/7680676054050790111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/7680676054050790111'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/04/check-date-format-in-iphone.html' title='Check Date Format in iPhone'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-7035069314634521269</id><published>2014-04-09T06:23:00.001-07:00</published><updated>2015-09-29T00:26:14.827-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iphone keyboard notification"/><category scheme="http://www.blogger.com/atom/ns#" term="notification show"/><category scheme="http://www.blogger.com/atom/ns#" term="uikeyboard notifications"/><title type='text'>UIKeyboard notifications Show &amp;amp; Hide - iPhone SDK</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;This post will help you integrate keyboard &amp;nbsp; &amp;nbsp; Notifications to handle the show and hide functionality&amp;nbsp;&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;Below are two observer which keep listening keyboard actions . You can keep this two observer in viewdidload&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;&lt;u&gt;OBSERVERS:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;[[&lt;/span&gt;NSNotificationCenter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;defaultCenter&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;addObserver&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;selector&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;@selector&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;(keyboardWillShow:) &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;UIKeyboardDidShowNotification&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;object&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;[[&lt;/span&gt;NSNotificationCenter&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;defaultCenter&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;addObserver&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;selector&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;@selector&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;(keyboardWillHide:) &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;UIKeyboardDidHideNotification&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;object&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;These are two delegate methods and these will be trigered on keyboard actions.&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;&lt;b&gt;&lt;u&gt;DELEGATE METHODS:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
- (&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;void&lt;/span&gt;)keyboardWillShow:(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSNotification&lt;/span&gt;*)notification&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
-(&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;void&lt;/span&gt;)keyboardWillHide: (&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSNotification&lt;/span&gt;*)notification&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/7035069314634521269/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/04/uikeyboard-notifications-show-hide.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/7035069314634521269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/7035069314634521269'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/04/uikeyboard-notifications-show-hide.html' title='UIKeyboard notifications Show &amp;amp; Hide - iPhone SDK'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-4829190331428893374</id><published>2014-04-08T05:05:00.002-07:00</published><updated>2015-09-29T00:26:36.289-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="email validation"/><category scheme="http://www.blogger.com/atom/ns#" term="iphone email validation"/><category scheme="http://www.blogger.com/atom/ns#" term="validation"/><title type='text'>Check Email validation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
- (&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;BOOL&lt;/span&gt;)validateEmailWithString:(&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt;*)email&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;color: #d12f1b; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *emailRegex = &lt;/span&gt;@&quot;[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}&quot;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSPredicate&lt;/span&gt; *emailTest = [&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSPredicate&lt;/span&gt; &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;predicateWithFormat&lt;/span&gt;:&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;SELF MATCHES %@&quot;&lt;/span&gt;, emailRegex];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;return&lt;/span&gt; [emailTest &lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;evaluateWithObject&lt;/span&gt;:email];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/4829190331428893374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/04/check-email-validation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/4829190331428893374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/4829190331428893374'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/04/check-email-validation.html' title='Check Email validation'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-435251826054441802</id><published>2014-04-08T04:30:00.000-07:00</published><updated>2014-04-26T00:47:55.249-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASIFormDataRequest"/><category scheme="http://www.blogger.com/atom/ns#" term="ASIHTTPRequest image upload"/><category scheme="http://www.blogger.com/atom/ns#" term="image upload server"/><category scheme="http://www.blogger.com/atom/ns#" term="picture upload"/><title type='text'>ASIFormDataRequest UPLOAD IMAGE TO THE SERVER</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;NSMutableDictionary&lt;span class=&quot;s1&quot;&gt; *dic=[&lt;/span&gt;NSMutableDictionary&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;dictionary&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;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;background-color: #d9ead3;&quot;&gt;[dic &lt;span class=&quot;s2&quot;&gt;setValue&lt;/span&gt;:@&quot;Abdul Kareem&quot;&amp;nbsp;&lt;span class=&quot;s2&quot;&gt;forKeyPath&lt;/span&gt;:&lt;span class=&quot;s5&quot;&gt;@&quot;user_name&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [dic &lt;span class=&quot;s2&quot;&gt;setValue&lt;/span&gt;:&lt;span class=&quot;s5&quot;&gt;@&quot;signup&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;forKeyPath&lt;/span&gt;:&lt;span class=&quot;s5&quot;&gt;@&quot;action&quot;&lt;/span&gt;]; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [dic &lt;span class=&quot;s2&quot;&gt;setValue&lt;/span&gt;:@&quot;a.kareem.tn@gmail.com&quot;&amp;nbsp;&lt;span class=&quot;s2&quot;&gt;forKeyPath&lt;/span&gt;:&lt;span class=&quot;s5&quot;&gt;@&quot;email&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [dic &lt;span class=&quot;s2&quot;&gt;setValue&lt;/span&gt;:@&quot;abc&quot;&amp;nbsp;&lt;span class=&quot;s2&quot;&gt;forKeyPath&lt;/span&gt;:&lt;span class=&quot;s5&quot;&gt;@&quot;password&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [dic &lt;span class=&quot;s2&quot;&gt;setValue&lt;/span&gt;:@&quot;28&quot;&amp;nbsp;&lt;span class=&quot;s2&quot;&gt;forKeyPath&lt;/span&gt;:&lt;span class=&quot;s5&quot;&gt;@&quot;age&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [dic &lt;span class=&quot;s2&quot;&gt;setValue&lt;/span&gt;:@&quot;Male&quot;&amp;nbsp;&lt;span class=&quot;s2&quot;&gt;forKeyPath&lt;/span&gt;:&lt;span class=&quot;s5&quot;&gt;@&quot;gender&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [dic &lt;span class=&quot;s2&quot;&gt;setValue&lt;/span&gt;:@&quot;80&quot;&amp;nbsp;&lt;span class=&quot;s2&quot;&gt;forKeyPath&lt;/span&gt;:&lt;span class=&quot;s5&quot;&gt;@&quot;weight&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [dic &lt;span class=&quot;s2&quot;&gt;setValue&lt;/span&gt;:@&quot;6&quot;&amp;nbsp;&lt;span class=&quot;s2&quot;&gt;forKeyPath&lt;/span&gt;:&lt;span class=&quot;s5&quot;&gt;@&quot;height&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s4&quot;&gt;NSString&lt;/span&gt; *jsonRequest = [dic &lt;span class=&quot;s6&quot;&gt;JSONRepresentation&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p5&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; jsonRequest =[jsonRequest &lt;/span&gt;stringByAddingPercentEscapesUsingEncoding&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;NSUTF8StringEncoding&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&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; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt; &lt;span class=&quot;s4&quot;&gt;NSURL&lt;/span&gt; *url = [&lt;span class=&quot;s4&quot;&gt;NSURL&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;URLWithString&lt;/span&gt;:[&lt;span class=&quot;s4&quot;&gt;NSString&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;stringWithFormat&lt;/span&gt;:&lt;span class=&quot;s5&quot;&gt;@&quot;%@%@&quot;&lt;/span&gt;,&lt;span class=&quot;s7&quot;&gt;SERVIEC_URL&lt;/span&gt;,jsonRequest]];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p6&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;ASIFormDataRequest&lt;span class=&quot;s1&quot;&gt; *request =[&lt;/span&gt;ASIFormDataRequest&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;requestWithURL&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:url];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;[request setRequestMethod:@&quot;POST&quot;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt; [request &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s6&quot;&gt;addRequestHeader&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;@&quot;User-Agent&quot;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;@&quot;ASIHTTPRequest&quot;&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [request &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;addRequestHeader&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;@&quot;Content-Type&quot;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s6&quot;&gt;value&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;@&quot;application/json&quot;&lt;span class=&quot;s1&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p7&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;//[request appendPostData:[jsonRequest&amp;nbsp; dataUsingEncoding:NSUTF8StringEncoding]];&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; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s8&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;s3&quot;&gt;imageData&lt;/span&gt; != &lt;span class=&quot;s8&quot;&gt;nil&lt;/span&gt;) { &lt;span class=&quot;s9&quot;&gt;///for image data&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p8&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [request &lt;/span&gt;setData&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;imageData&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;withFileName&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;@&quot;image.jpg&quot;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;andContentType&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;@&quot;image/jpeg&quot;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;forKey&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s5&quot;&gt;@&quot;picture&quot;&lt;/span&gt;&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 style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt; [request &lt;span class=&quot;s6&quot;&gt;setDelegate&lt;/span&gt;:&lt;span class=&quot;s8&quot;&gt;self&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p8&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [request &lt;/span&gt;setShowAccurateProgress&lt;span class=&quot;s1&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s8&quot;&gt;YES&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;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;background-color: #d9ead3;&quot;&gt;[request &lt;span class=&quot;s6&quot;&gt;setUsername&lt;/span&gt;:&lt;span class=&quot;s7&quot;&gt;&quot;user name if you have on webservice&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [request &lt;span class=&quot;s6&quot;&gt;setPassword&lt;/span&gt;:&quot;password if you have on webservice&quot;];&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p3&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;[request &lt;span class=&quot;s6&quot;&gt;startAsynchronous&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/435251826054441802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/04/asiformdatarequest-upload-image-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/435251826054441802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/435251826054441802'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/04/asiformdatarequest-upload-image-to.html' title='ASIFormDataRequest UPLOAD IMAGE TO THE SERVER'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-6120953979501416518</id><published>2014-03-27T00:46:00.002-07:00</published><updated>2014-04-26T00:48:53.923-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ios protocol example"/><category scheme="http://www.blogger.com/atom/ns#" term="protocol delegate"/><category scheme="http://www.blogger.com/atom/ns#" term="simple protocol"/><title type='text'>SIMPLE PROTOCOL &amp; DELEGATE EXAMPLE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;PROTOCOL &amp;amp; DELEGATE&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;two controllers&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
FirstViewController&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
SecondViewController&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
SecondViewController&lt;b&gt;.h&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;@protocol&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;SecondViewControllerDelegate&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;@property&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; (&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;nonatomic&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;weak&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;) &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;lt;&lt;/span&gt;SecondViewControllerDelegate&lt;span class=&quot;s2&quot;&gt;&amp;gt; delegate;&lt;/span&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;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;@protocol&lt;/span&gt; SecondViewControllerDelegate &amp;lt;&lt;span class=&quot;s3&quot;&gt;NSObject&lt;/span&gt;&amp;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;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)SecondViewController:(&lt;span class=&quot;s4&quot;&gt;SecondViewController&lt;/span&gt;*)viewController&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; didChooseValue:(&lt;span class=&quot;s3&quot;&gt;CGFloat&lt;/span&gt;)value;&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;
SecondViewController&lt;b&gt;.m&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;-(&lt;span class=&quot;s1&quot;&gt;IBAction&lt;/span&gt;)SecondTap:(&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;)sender&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;lt;&lt;/span&gt;SecondViewControllerDelegate&lt;span class=&quot;s2&quot;&gt;&amp;gt; strongDelegate = &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&lt;/span&gt;delegate&lt;span class=&quot;s2&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;// Our delegate method is optional, so we should&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;// check that the delegate implements it&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span class=&quot;s1&quot;&gt;if&lt;/span&gt; ([strongDelegate &lt;span class=&quot;s5&quot;&gt;respondsToSelector&lt;/span&gt;:&lt;span class=&quot;s1&quot;&gt;@selector&lt;/span&gt;(SecondViewController:didChooseValue:)]) {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [strongDelegate &lt;span class=&quot;s6&quot;&gt;SecondViewController&lt;/span&gt;:&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt; &lt;span class=&quot;s6&quot;&gt;didChooseValue&lt;/span&gt;:[sender &lt;span class=&quot;s5&quot;&gt;tag&lt;/span&gt;]];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&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;
FirstViewController.h&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;@interface&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; FirstViewController : &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;UIViewController&lt;/span&gt;&amp;lt;SecondViewControllerDelegate&amp;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;
FirstViewController.m&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;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;-(&lt;span class=&quot;s1&quot;&gt;IBAction&lt;/span&gt;)Add:(&lt;span class=&quot;s1&quot;&gt;id&lt;/span&gt;)sender&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s2&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;SecondViewController&lt;span class=&quot;s2&quot;&gt; *objsecond =[[&lt;/span&gt;SecondViewController&lt;span class=&quot;s2&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;alloc&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;]&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;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; [objsecond &lt;span class=&quot;s4&quot;&gt;setDelegate&lt;/span&gt;:&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;span class=&quot;s1&quot;&gt;self&lt;/span&gt;.&lt;span class=&quot;s5&quot;&gt;view&lt;/span&gt; &lt;span class=&quot;s3&quot;&gt;addSubview&lt;/span&gt;:objsecond.&lt;span class=&quot;s5&quot;&gt;view&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;- (&lt;span class=&quot;s1&quot;&gt;void&lt;/span&gt;)SecondViewController:(&lt;span class=&quot;s2&quot;&gt;SecondViewController&lt;/span&gt; *)viewController didChooseValue:(&lt;span class=&quot;s3&quot;&gt;CGFloat&lt;/span&gt;)value&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;// Do something with value...&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;// ...then dismiss the child view controller&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&amp;nbsp; &amp;nbsp; [viewController.&lt;span class=&quot;s3&quot;&gt;view&lt;/span&gt; &lt;span class=&quot;s5&quot;&gt;removeFromSuperview&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/6120953979501416518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/03/protocol-delegate-two-controllers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/6120953979501416518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/6120953979501416518'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/03/protocol-delegate-two-controllers.html' title='SIMPLE PROTOCOL &amp; DELEGATE EXAMPLE'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-7665040495473360327</id><published>2014-03-18T03:40:00.000-07:00</published><updated>2014-05-14T08:39:34.001-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="generate pem certificate"/><category scheme="http://www.blogger.com/atom/ns#" term="p12 certificate"/><category scheme="http://www.blogger.com/atom/ns#" term="pem certificate"/><category scheme="http://www.blogger.com/atom/ns#" term="push notification"/><category scheme="http://www.blogger.com/atom/ns#" term="push notification certificate pem"/><title type='text'>Generate PEM certificate from P12 certificate</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Open terminal and go to the path where you place p12 certificate and run this complete below command:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;openssl pkcs12 -in&amp;nbsp;&lt;b&gt;certificateName&lt;/b&gt;.p12 -out &lt;b&gt;certificateName&lt;/b&gt;.pem -nodes&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/7665040495473360327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/03/generate-pem-certificate-from-p12.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/7665040495473360327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/7665040495473360327'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/03/generate-pem-certificate-from-p12.html' title='Generate PEM certificate from P12 certificate'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-2204309068338137572</id><published>2014-03-18T03:13:00.001-07:00</published><updated>2015-09-29T00:27:11.702-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hours"/><category scheme="http://www.blogger.com/atom/ns#" term="ios timer counter"/><category scheme="http://www.blogger.com/atom/ns#" term="iphone timer"/><category scheme="http://www.blogger.com/atom/ns#" term="minutes"/><category scheme="http://www.blogger.com/atom/ns#" term="seconds"/><category scheme="http://www.blogger.com/atom/ns#" term="timer"/><title type='text'>iOS Timer Counter !!</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 class=&quot;s1&quot;&gt;Here is the&amp;nbsp;&lt;/span&gt;Timer counter simple example in which we will get seconds, minutes, and hours&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Call the below method TimerCounter:&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;int&lt;/span&gt; secondsSpent;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;NSTimer&lt;/span&gt; *timer= [NSTimer scheduledTimerWithTimeInterval:&lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;1.0&lt;/span&gt; target:&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;self&lt;/span&gt; selector:&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;@selector&lt;/span&gt;(TimeCounter) userInfo:&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;nil&lt;/span&gt; repeats:&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;YES&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
- (&lt;span style=&quot;color: #bb2ca2; font-variant-ligatures: no-common-ligatures;&quot;&gt;void&lt;/span&gt;)TimeCounter&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;color: #4f8187; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;secondsSpent&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; ++ ;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; hours = secondsSpent / &lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;3600&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; minutes = (secondsSpent % &lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;3600&lt;/span&gt;) / &lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;60&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; seconds = (secondsSpent %&lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;3600&lt;/span&gt;) % &lt;span style=&quot;color: #272ad8; font-variant-ligatures: no-common-ligatures;&quot;&gt;60&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; NSLog(&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;Time spent: %02d:%02d:%02d&quot;&lt;/span&gt;, hours, minutes, seconds);&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/2204309068338137572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/03/ios-timer-counter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/2204309068338137572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/2204309068338137572'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/03/ios-timer-counter.html' title='iOS Timer Counter !!'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3332274735975639789.post-2845572190624151156</id><published>2014-03-18T03:04:00.001-07:00</published><updated>2015-09-29T00:28:04.141-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ios notification"/><category scheme="http://www.blogger.com/atom/ns#" term="local notification"/><category scheme="http://www.blogger.com/atom/ns#" term="push notification"/><title type='text'>iOS Local Notifications</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
Here we have sample code for local notification&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;UILocalNotification&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; *notification = [[&lt;/span&gt;UILocalNotification&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #3d1d81; font-variant-ligatures: no-common-ligatures;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&amp;nbsp; &amp;nbsp; notification.&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;alertBody&lt;/span&gt; =&lt;span style=&quot;color: #d12f1b; font-variant-ligatures: no-common-ligatures;&quot;&gt;@&quot;Test Message&quot;&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;color: #703daa; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; notification.&lt;/span&gt;soundName&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; = &lt;/span&gt;UILocalNotificationDefaultSoundName&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px; min-height: 13px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #3d1d81; font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; [[&lt;/span&gt;&lt;span style=&quot;color: #703daa; font-variant-ligatures: no-common-ligatures;&quot;&gt;UIApplication&lt;/span&gt;&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;sharedApplication&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;] &lt;/span&gt;presentLocalNotificationNow&lt;span style=&quot;color: black; font-variant-ligatures: no-common-ligatures;&quot;&gt;:notification];&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iphone-app-dev-beginners.blogspot.com/feeds/2845572190624151156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/03/ios-local-notifications.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/2845572190624151156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3332274735975639789/posts/default/2845572190624151156'/><link rel='alternate' type='text/html' href='http://iphone-app-dev-beginners.blogspot.com/2014/03/ios-local-notifications.html' title='iOS Local Notifications'/><author><name>Abdul Kareem</name><uri>http://www.blogger.com/profile/07852332873740872068</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgN5-ycw28hfRh3KlOY6LpKFVq1CrSDZE9bQ9HNpbVukfw_yeGOGVZKGusJ5WUacvh6YMlKJSwCnhPJWR4_w820gfndW6bz-mXzzo8dUzaPsEM5xqkvnViZ6nU1XX3CHg/s220/profilepic.jpg'/></author><thr:total>0</thr:total></entry></feed>