tag:blogger.com,1999:blog-56019149851627405112024-03-14T00:35:17.061-07:00iPhone by RadixThis blog contains the essential information for iPhone application development.Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.comBlogger130125tag:blogger.com,1999:blog-5601914985162740511.post-26834190562866290602020-04-01T08:34:00.001-07:002020-04-01T08:34:56.200-07:00Observer pattern in swift<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-OFsucLnZPno/XoSdFWR64NI/AAAAAAAABSE/hJXdkWVrZG8SYy35q6TZ3gAVwxIFB-BpQCLcBGAsYHQ/s1600/1_PiissbHkH1UlmgpOfSWZsw.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="393" data-original-width="700" height="224" src="https://1.bp.blogspot.com/-OFsucLnZPno/XoSdFWR64NI/AAAAAAAABSE/hJXdkWVrZG8SYy35q6TZ3gAVwxIFB-BpQCLcBGAsYHQ/s400/1_PiissbHkH1UlmgpOfSWZsw.png" width="400" /></a></div>
<br />
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="e287" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
In iOS programming, we all have come across the term KVO which is key-value observer and if you have worked in an MVVM project then you might have used libraries like RxSwift.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="7f29" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
However, KVO and RxSwift both work on the same principles which is the observer design pattern and hence it is very important to understand what this design pattern is and how it works</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="6a15" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
The observer design pattern consists of two components</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="8738" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
1. Subject</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="9fe6" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
2. Observer</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="863e" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
To understand what is a “Subject” and “Observer” I would like to give an example</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-wK28hrsdQGs/XoSdSjlCpGI/AAAAAAAABSY/LsjjiB0OYDoGbjN3QdfOe-GdsjxoGcK3gCLcBGAsYHQ/s1600/1_eKXipIOYBm_84av_I2tf8Q.jpeg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="1072" data-original-width="1600" height="214" src="https://1.bp.blogspot.com/-wK28hrsdQGs/XoSdSjlCpGI/AAAAAAAABSY/LsjjiB0OYDoGbjN3QdfOe-GdsjxoGcK3gCLcBGAsYHQ/s320/1_eKXipIOYBm_84av_I2tf8Q.jpeg" width="320" /></a></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="9526" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
When the traffic lights are red, we stop the vehicle and observe the lights and wait for it to turn green</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="b86b" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
Once the traffic lights turn green we accelerate the vehicle and proceed to our destination.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="a452" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
Here the observer are the people who are waiting for the signal to turn green, when the <span style="letter-spacing: -0.084px;">signal turns green they act accordingly.</span></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="85d9" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
The subject, in this case, is the traffic light because when it’s state changes i.e. the color of the traffic light the observers who are observing the state of the traffic light act accordingly.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="5dde" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
The subject maintains a list of observers and when it’s state changes it sends a notification to all the observers who have subscribed to that state change.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="f4ed" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
If we want to look how this would look from a code perspective then here’s how we can code the same in swift</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="c4ea" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
Let’s start by creating a protocol with basic functionality that can be used by anyone who wants to observe the traffic light.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="1e79" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
Do note that while in traffic, the people in the vehicle observe the light and along with them there are few other folks like people who cross the road and vendors who sell their products they too observe the same light and act accordingly.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="fd33" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
For a vendor when the lights are red it’s an indication that he has to sell his products whereas for the people crossing the road it’s an indication that they have to walk.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="fd33" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<span style="letter-spacing: -0.084px;">And hence we need a protocol here so that these observers can have the same function with different functionality</span></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="fd33" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<span style="letter-spacing: -0.084px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/--m3yVGHjv_c/XoSdTk-dzQI/AAAAAAAABSg/4tIw1KGsPjoUgQPCh2clX5MOgsXFTSebQCEwYBhgLKs4DAMBZVoAT34y8g6J3XfNIG53rCzNlWkux-762fMtHlquK0JmR028XObcQc8ZRn_u_To0eWeaBTD_4GxTVCUwScA80srgiSFHMLMt1CiZQtKLmz4xJMAYBXRyYVXde5Dw8MHXBVAg-yC0xiA2V3ajSUfTSyyIyVj1RBrsldx6m8p-vfE2lrXwJKdRnFz273hdap7Dx7gSn5htqLQG68embZoIRpj-8HGvnYtY5Y0SwH166vRNg92FzJp6uSWQpBtooviu5U3QuwWyrB81Z8SRxEvzk6TkGYRvEggTxwmRys6Vtmnt5rhvj-_EluEtQ6KKw2MWlvujl7dykf9qfjaSZQXmBsBOS0MET00Bcd8HgxzKfDocCpthgXWjB0LAckrew4r87UJ3s9JzYRXhOKnwH-rqjh6LxKCUi9NODu2jDLcXOpbXQVcYG5uwsaKPpIWWyMkcre2RItMd0GU2Qx1WF7ahd9kOub0HOvnSjkMQBmOZ5XsP4MBJ_N8A1kh11AIp0J3Xvy05esSeHcJ5rQDHaofe7o7WhSENlsjkNa-FBzjvFt88yLN7FmauAMFDG04MS40tZa16AgevpkWt-wMjhFTbU2gzfF9d3WqArPcifMPC_kvQF/s1600/1_u6LGD503c2FRrPgYxHkUxw.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="173" data-original-width="596" src="https://1.bp.blogspot.com/--m3yVGHjv_c/XoSdTk-dzQI/AAAAAAAABSg/4tIw1KGsPjoUgQPCh2clX5MOgsXFTSebQCEwYBhgLKs4DAMBZVoAT34y8g6J3XfNIG53rCzNlWkux-762fMtHlquK0JmR028XObcQc8ZRn_u_To0eWeaBTD_4GxTVCUwScA80srgiSFHMLMt1CiZQtKLmz4xJMAYBXRyYVXde5Dw8MHXBVAg-yC0xiA2V3ajSUfTSyyIyVj1RBrsldx6m8p-vfE2lrXwJKdRnFz273hdap7Dx7gSn5htqLQG68embZoIRpj-8HGvnYtY5Y0SwH166vRNg92FzJp6uSWQpBtooviu5U3QuwWyrB81Z8SRxEvzk6TkGYRvEggTxwmRys6Vtmnt5rhvj-_EluEtQ6KKw2MWlvujl7dykf9qfjaSZQXmBsBOS0MET00Bcd8HgxzKfDocCpthgXWjB0LAckrew4r87UJ3s9JzYRXhOKnwH-rqjh6LxKCUi9NODu2jDLcXOpbXQVcYG5uwsaKPpIWWyMkcre2RItMd0GU2Qx1WF7ahd9kOub0HOvnSjkMQBmOZ5XsP4MBJ_N8A1kh11AIp0J3Xvy05esSeHcJ5rQDHaofe7o7WhSENlsjkNa-FBzjvFt88yLN7FmauAMFDG04MS40tZa16AgevpkWt-wMjhFTbU2gzfF9d3WqArPcifMPC_kvQF/s1600/1_u6LGD503c2FRrPgYxHkUxw.png" /></a></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="77af" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
I will explain why we need an Id as we progress with the session</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="f45f" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
Now that’s in place let’s create the Vehicle and Vendor observer which will inherit the “ObserverProtocol”</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="c2f0" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<span class="hd ol" style="box-sizing: inherit; font-weight: 700;">Vehicle Observer</span></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="c2f0" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<span class="hd ol" style="box-sizing: inherit; font-weight: 700;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-4TvnZGsKSUU/XoSdRuV_y7I/AAAAAAAABSk/bzUQkwR6cnYCKjLEIh6NK-ROm_q-59G1gCEwYBhgLKs4DAMBZVoBxhVYQ6NL7kmz8fXTR0OIv0225HeGMfWgfvwGS48_faVPwzxAkQ9IE9FiQqmh7Ay1IamfiAXDMNjNqA8_MbCSr6KmZrdf_ggS4Nyz1GOpzEbUca9Ka4s0zlGvOf2EMpKZctN5Hd_pmAPrIDED-hf0S0MBmQQQC0dzvyeNqr2gKN8lq1ERpmzspHJHzMheWVdkSSv7_7MMQD2EXbFT3OptSIG-uXXREg_GpJc_WoBhSCyNJskm3M8lV3Yhrnt1awxjgclNlA2F8WsegMhQVTx35rr5JhE13tS0GIJ-xhkMGUYIjrfBVjiMuTUIRvi574Z2rC6-AbjRXUTVIvM7EHXNvy8MyFj1bPSn68nLHdd4_ivUj5mpGccO9RWp-OtPMdNuXKa3A-Yt9LLToER6Ggtx_LdqwbYFj1b7TrHjekp_I5SE02JYjZGxdt-wUKf0SttoiAem7e7kR3pwwA014O9MIByQtqhFW5zDhcPYIzd7f4mTlqrx4lUejN_Hf9cx3zphiwQR14exGQIrPQuaCKD26viENVZaAUwUYRNcPKTMs31w5LnPSSOdfRmSQT5EL0-XSdQU390Cda3pzRv18WUEwB8zbbB7nlbHIMJTAkvQF/s1600/1_4jL3xLNAYN63kQux8MlngQ.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="726" data-original-width="678" src="https://1.bp.blogspot.com/-4TvnZGsKSUU/XoSdRuV_y7I/AAAAAAAABSk/bzUQkwR6cnYCKjLEIh6NK-ROm_q-59G1gCEwYBhgLKs4DAMBZVoBxhVYQ6NL7kmz8fXTR0OIv0225HeGMfWgfvwGS48_faVPwzxAkQ9IE9FiQqmh7Ay1IamfiAXDMNjNqA8_MbCSr6KmZrdf_ggS4Nyz1GOpzEbUca9Ka4s0zlGvOf2EMpKZctN5Hd_pmAPrIDED-hf0S0MBmQQQC0dzvyeNqr2gKN8lq1ERpmzspHJHzMheWVdkSSv7_7MMQD2EXbFT3OptSIG-uXXREg_GpJc_WoBhSCyNJskm3M8lV3Yhrnt1awxjgclNlA2F8WsegMhQVTx35rr5JhE13tS0GIJ-xhkMGUYIjrfBVjiMuTUIRvi574Z2rC6-AbjRXUTVIvM7EHXNvy8MyFj1bPSn68nLHdd4_ivUj5mpGccO9RWp-OtPMdNuXKa3A-Yt9LLToER6Ggtx_LdqwbYFj1b7TrHjekp_I5SE02JYjZGxdt-wUKf0SttoiAem7e7kR3pwwA014O9MIByQtqhFW5zDhcPYIzd7f4mTlqrx4lUejN_Hf9cx3zphiwQR14exGQIrPQuaCKD26viENVZaAUwUYRNcPKTMs31w5LnPSSOdfRmSQT5EL0-XSdQU390Cda3pzRv18WUEwB8zbbB7nlbHIMJTAkvQF/s1600/1_4jL3xLNAYN63kQux8MlngQ.png" /></a></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="8e26" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
The vehicle observer is pretty simple and it acts based on the color that’s passed as a parameter.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="c2f0" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<span class="hd ol" style="box-sizing: inherit; font-weight: 700;"></span></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="b168" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
The “TrafficColor” is a structure with static properties</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="b168" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-uix2y6TSRa4/XoSdRgixt8I/AAAAAAAABSs/7JfOhiTm620MupajSTiPpjhRYkE2QBpLQCEwYBhgLKs4DAMBZVoBiXSzCRI9mhFJYV2g8AZUBYzofIRZzvDaPqQeFdZ-wE5gqQn44pgUTHFlQaZcyegN6hJ5-pTiLwaAlrgg9LRrCCKnC8BLqU-aURwI61IF0VVEJ4SnoKT6dgPpeHuGOqryfIgDaF-5J4BHYjyikMdGqkxcFL3o1594RjfWAXep_d9bqSr_RSUsEJ6cdgDpyHTLOZ2wHgkna2HqJYaqKdFfsapHcwBslml2A7wnOAKBpqM9ArKCcufsJFIBxbnJcZ8odFltc6ptLF1MdTdz8ykYDSQy3Pq2_OMbL4DPtbYOfPtCctRAMg5B_8vG5d3ckpMxdIYoCWnN_6U2jqUPhFI0HxZqFzvoM3HnId2iLPVX7Pa98A8F0mpiLeTHqJZCNUyhUH_ODtYjBJw5kFxlC3eJ_X8kBgBaJEmLMsw73H_NeMXnZcgVCLG1BxA_lYw6e8MMjV_VwxF1wYsSokrRxCvU7kVtXn92ibVj425IvrRFnyDUKrxkxlYBCamN5NAUxmJaiMP7kOypHYzu9sezkD7J_FD3l1FTSoDQ2pyqtrySXga-Z2Sdz1etY-29FgV53QJmNFiZhjudZUAMjXq6DJ7PkJVC2FFrmatN1ML7AkvQF/s1600/1_J7BZbIyykPS7d67bBbjUPQ.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="204" data-original-width="415" src="https://1.bp.blogspot.com/-uix2y6TSRa4/XoSdRgixt8I/AAAAAAAABSs/7JfOhiTm620MupajSTiPpjhRYkE2QBpLQCEwYBhgLKs4DAMBZVoBiXSzCRI9mhFJYV2g8AZUBYzofIRZzvDaPqQeFdZ-wE5gqQn44pgUTHFlQaZcyegN6hJ5-pTiLwaAlrgg9LRrCCKnC8BLqU-aURwI61IF0VVEJ4SnoKT6dgPpeHuGOqryfIgDaF-5J4BHYjyikMdGqkxcFL3o1594RjfWAXep_d9bqSr_RSUsEJ6cdgDpyHTLOZ2wHgkna2HqJYaqKdFfsapHcwBslml2A7wnOAKBpqM9ArKCcufsJFIBxbnJcZ8odFltc6ptLF1MdTdz8ykYDSQy3Pq2_OMbL4DPtbYOfPtCctRAMg5B_8vG5d3ckpMxdIYoCWnN_6U2jqUPhFI0HxZqFzvoM3HnId2iLPVX7Pa98A8F0mpiLeTHqJZCNUyhUH_ODtYjBJw5kFxlC3eJ_X8kBgBaJEmLMsw73H_NeMXnZcgVCLG1BxA_lYw6e8MMjV_VwxF1wYsSokrRxCvU7kVtXn92ibVj425IvrRFnyDUKrxkxlYBCamN5NAUxmJaiMP7kOypHYzu9sezkD7J_FD3l1FTSoDQ2pyqtrySXga-Z2Sdz1etY-29FgV53QJmNFiZhjudZUAMjXq6DJ7PkJVC2FFrmatN1ML7AkvQF/s1600/1_J7BZbIyykPS7d67bBbjUPQ.png" /></a></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="b168" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<span style="font-weight: 700; letter-spacing: -0.084px;">Vendor Observer:</span></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="b168" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<span style="font-weight: 700; letter-spacing: -0.084px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-KioKimCjQhQ/XoSdTO3WLfI/AAAAAAAABSo/Vvqtwtt3_Pg0pKojx7kcmxgoweChUk8_ACEwYBhgLKs4DAMBZVoARDDrfxn3jLlvvQhvPGvfVbAslHJxdlrCbHG4XE2i5oys-A-zyjqMFKfOWKmuyLTzxDVY3jFy7ONvDMwZd4fETYlYVh0nJSd7CKrHYuJy5Mhszt7SDTqh0AGFrMnjHMFcp_WAb7rCAcStl8Z-ERBxtSPGS7z3m3nX9QIF3Po57tC5uD3vvZoZqIAch-PndFB7-uMmq9bVQBTySHWX4htYij75hHcaOT22tdX3T1oMz1ZPuuGzU8afYTFI0W1HjGTOh8kbqpuvGi6ZkVSOEipV0UuWeYF3T22o4GJOtsj985ZRuo-vP4xAHtKtN1Jekj2IfwOZBbQYlozxWwVG55tKHTxOVzp0FfXe7lSb3aCxKbgsH3BP98ywuqPL4Q0zmOxw8NrqyofLVvnLPo4OQHBOf2LkPqLvVfO7nojGCifJux3GuAcsXJeuNCVVm7rjIqqOeWACTMT6vIo__eM97V_OFszbq17b6j7GmJU-3LEy8x9bj7f3nvLpn0kij_JU3BpkGKEkVLHSbbH7fz6n9K9lOnIMXkMvEQ-hkdaJSFfdGg9DNWjTdGqAXeuDo_w1nV45FwkHiJLpsUUPpNUHLogeZBUVzlPkCiTjEMNXAkvQF/s1600/1_lhAocMyLeVe_mBhss-ePMQ.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="611" data-original-width="694" src="https://1.bp.blogspot.com/-KioKimCjQhQ/XoSdTO3WLfI/AAAAAAAABSo/Vvqtwtt3_Pg0pKojx7kcmxgoweChUk8_ACEwYBhgLKs4DAMBZVoARDDrfxn3jLlvvQhvPGvfVbAslHJxdlrCbHG4XE2i5oys-A-zyjqMFKfOWKmuyLTzxDVY3jFy7ONvDMwZd4fETYlYVh0nJSd7CKrHYuJy5Mhszt7SDTqh0AGFrMnjHMFcp_WAb7rCAcStl8Z-ERBxtSPGS7z3m3nX9QIF3Po57tC5uD3vvZoZqIAch-PndFB7-uMmq9bVQBTySHWX4htYij75hHcaOT22tdX3T1oMz1ZPuuGzU8afYTFI0W1HjGTOh8kbqpuvGi6ZkVSOEipV0UuWeYF3T22o4GJOtsj985ZRuo-vP4xAHtKtN1Jekj2IfwOZBbQYlozxWwVG55tKHTxOVzp0FfXe7lSb3aCxKbgsH3BP98ywuqPL4Q0zmOxw8NrqyofLVvnLPo4OQHBOf2LkPqLvVfO7nojGCifJux3GuAcsXJeuNCVVm7rjIqqOeWACTMT6vIo__eM97V_OFszbq17b6j7GmJU-3LEy8x9bj7f3nvLpn0kij_JU3BpkGKEkVLHSbbH7fz6n9K9lOnIMXkMvEQ-hkdaJSFfdGg9DNWjTdGqAXeuDo_w1nV45FwkHiJLpsUUPpNUHLogeZBUVzlPkCiTjEMNXAkvQF/s1600/1_lhAocMyLeVe_mBhss-ePMQ.png" /></a></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="8fd6" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
The vendor observer here acts differently from the vehicle observer as you can see when the lights are red, the vendor starts to sell the products whereas when the lights are green the vendor moves aside from the traffic</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="9b35" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
Now it’s time to create the subject, which is the TrafficLightSubject</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="9b35" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-0SE6YYAS1ho/XoSdSG79cEI/AAAAAAAABSw/GbkBtWn4DtcRtV3R_BeRzCVUp6rwwaBBACEwYBhgLKs4DAMBZVoBk-Y-mPgrB266Evk6e7SPNYg2pumIz9lnJiIE02DnLqbjP4hINVV60rgSG3oFzCvXmG0K0ZfRWAiaYL7TNmWFMF37nmYlfjn5hjH_IX3YtxfPftoyjhk8IAa4I6eGD6JFGeyNanM6ZxVe5Uyg5HWT3JJpU2b3NeEO5z91abUebO5E2SZXMnplP8rNq6_CfCe5DpHLMnH1kMVn9YlfnsvnCZmx0w4NgHskA5eTuTSTJX03eTjdOAR98Y4qScN0SePSeQU1Oajdr0xutSvgrB4VEGcjIYAD6nWrUEeuMhwFTOd0b-Q6366iod1-1AxbKSykbESY4qhQ3_inp7TeuTj0i_Z2uvYZQbawrVzyRVIrLwIIGBfCc_QJQ11IYXh9QfQ6c0sRDnkX-U2x71H0btVqubF4T9O4aI_O6glw570lxfjhwdoChKUE91TjgqiVuEtpuWgnDm13PTJQnpxTPn8XtowJk4VXssRrzEmRlQ_1q-AJlI91RaFt5uOApd8psroqNikI2igMSk4PN6LDkWQPkx4GYdkEBlFblnB_d8uJUmJqEoRt43xeCAi1hOUWkjVUC9RdJUA-1hK1c7aL7w830RYux7I8MSe_YMPrAkvQF/s1600/1_dl7faGUMSWRe4MPeNbFkvQ.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="700" data-original-width="1000" src="https://1.bp.blogspot.com/-0SE6YYAS1ho/XoSdSG79cEI/AAAAAAAABSw/GbkBtWn4DtcRtV3R_BeRzCVUp6rwwaBBACEwYBhgLKs4DAMBZVoBk-Y-mPgrB266Evk6e7SPNYg2pumIz9lnJiIE02DnLqbjP4hINVV60rgSG3oFzCvXmG0K0ZfRWAiaYL7TNmWFMF37nmYlfjn5hjH_IX3YtxfPftoyjhk8IAa4I6eGD6JFGeyNanM6ZxVe5Uyg5HWT3JJpU2b3NeEO5z91abUebO5E2SZXMnplP8rNq6_CfCe5DpHLMnH1kMVn9YlfnsvnCZmx0w4NgHskA5eTuTSTJX03eTjdOAR98Y4qScN0SePSeQU1Oajdr0xutSvgrB4VEGcjIYAD6nWrUEeuMhwFTOd0b-Q6366iod1-1AxbKSykbESY4qhQ3_inp7TeuTj0i_Z2uvYZQbawrVzyRVIrLwIIGBfCc_QJQ11IYXh9QfQ6c0sRDnkX-U2x71H0btVqubF4T9O4aI_O6glw570lxfjhwdoChKUE91TjgqiVuEtpuWgnDm13PTJQnpxTPn8XtowJk4VXssRrzEmRlQ_1q-AJlI91RaFt5uOApd8psroqNikI2igMSk4PN6LDkWQPkx4GYdkEBlFblnB_d8uJUmJqEoRt43xeCAi1hOUWkjVUC9RdJUA-1hK1c7aL7w830RYux7I8MSe_YMPrAkvQF/s1600/1_dl7faGUMSWRe4MPeNbFkvQ.png" /></a></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="237c" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
I have added code comments so that it becomes easy to understand what each function is doing but in general here’s what’s happening</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="9454" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
We have a public property called trafficLightColor which will be used to change the color of the traffic light, when a new color is assigned inside the set method we will call a function named notifyObserver.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="d087" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
The notifyObserver will trigger the “onTrafficLightColorChange” function of all the observers which are added in the array named “trafficObserver”</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="dec6" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
We have an “addObserver” function that accepts the ObserverProtocol as a parameter, and before adding any observer in the array we have a guard statement to check if this observer was already added in the array to avoid duplicates.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="f4d4" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<span class="hd ol" style="box-sizing: inherit; font-weight: 700;">Note: </span>The Id is used to give each object a unique id which helps to identify in the addObserver method whether this object was already added in the “trafficObserver” array</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="12a7" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
It’s a good idea to add one more function which is “removeObserver” to remove any observes which we want to remove</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="12a7" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-eC9Am2Q---s/XoSdRrOWx5I/AAAAAAAABSk/ocrBNYp5REAswMTAzhIQi0De2BD68MitgCEwYBhgLKs4DAMBZVoCcOJ6M2tdMvVvhe_iu-dN2nD0l45Xch-jPC9juKEpD2IHNzPFZhhqAiilj6lGl2IWZHEoJOzwvKQwvSGNI96UIrPX968F-TjzNfeTPp_wvPLTG-58ZeRPB9Q1Crv_C5jzngwuQto7INoJ1TXQgFHp0BiCohmpJJr_ivUKaPwYZux2dCUUbY0ZUerMC7AwASOUPYxk_ZSeP4gDX8ZBectYpHemB0f4nbzSoWQXHwT06yFQn0SzSF09hYLe_DuRQKl-dsDG_M1JQvVbPYBszoyzgRcW-Lmon-VER6Z8Ynhdbd8gFgfHfuYwNbZUs_nFAPCEt3LCTi8Z0Y45IwsWEG99GctqFWX7vvMM5h6pQG5e3jauaBh6SvcKCQ5joHTuojMiqy180uGIpqX2EaMSHsYPleFOJ8o9Ft8rbIVCxobUg6wsEfjBbXaxzJpIv_o9ILJw82VpvnmkGwWAA6etp6xNXpOSzdZGIjwjJu76YfNvLThcjEWwYQqhkpw34PpRilOERTBIlGbZXfE0xQMTMPIbyAsZ4vAI-ntAZOCLJ4o1NLTf8gEO7bISpdRi47GqLk6buSWkldV75UmW8oVN050S8snjEPL45xKpHMKLBkvQF/s1600/1_RHPKPi082l6J5QelfvuWgQ.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="120" data-original-width="700" src="https://1.bp.blogspot.com/-eC9Am2Q---s/XoSdRrOWx5I/AAAAAAAABSk/ocrBNYp5REAswMTAzhIQi0De2BD68MitgCEwYBhgLKs4DAMBZVoCcOJ6M2tdMvVvhe_iu-dN2nD0l45Xch-jPC9juKEpD2IHNzPFZhhqAiilj6lGl2IWZHEoJOzwvKQwvSGNI96UIrPX968F-TjzNfeTPp_wvPLTG-58ZeRPB9Q1Crv_C5jzngwuQto7INoJ1TXQgFHp0BiCohmpJJr_ivUKaPwYZux2dCUUbY0ZUerMC7AwASOUPYxk_ZSeP4gDX8ZBectYpHemB0f4nbzSoWQXHwT06yFQn0SzSF09hYLe_DuRQKl-dsDG_M1JQvVbPYBszoyzgRcW-Lmon-VER6Z8Ynhdbd8gFgfHfuYwNbZUs_nFAPCEt3LCTi8Z0Y45IwsWEG99GctqFWX7vvMM5h6pQG5e3jauaBh6SvcKCQ5joHTuojMiqy180uGIpqX2EaMSHsYPleFOJ8o9Ft8rbIVCxobUg6wsEfjBbXaxzJpIv_o9ILJw82VpvnmkGwWAA6etp6xNXpOSzdZGIjwjJu76YfNvLThcjEWwYQqhkpw34PpRilOERTBIlGbZXfE0xQMTMPIbyAsZ4vAI-ntAZOCLJ4o1NLTf8gEO7bISpdRi47GqLk6buSWkldV75UmW8oVN050S8snjEPL45xKpHMKLBkvQF/s1600/1_RHPKPi082l6J5QelfvuWgQ.png" /></a></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="3ed4" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<span class="hd ol" style="box-sizing: inherit; font-weight: 700;">Note: </span>Again we are using the Id property here to remove the observer from the array</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="5982" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
As a good coding practice, we will use the deinit statement to remove all the objects from the “trafficObserver” array.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="5982" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-_ihEoC66BT0/XoSfYAjseNI/AAAAAAAABS4/3nr3tIMbQNY2YBthQc-RHl10WlKlpRgygCLcBGAsYHQ/s1600/deinit.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="256" data-original-width="700" height="117" src="https://1.bp.blogspot.com/-_ihEoC66BT0/XoSfYAjseNI/AAAAAAAABS4/3nr3tIMbQNY2YBthQc-RHl10WlKlpRgygCLcBGAsYHQ/s320/deinit.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="5982" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<span style="letter-spacing: -0.084px;">Now let’s create some objects and see how this goes</span></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="5982" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<span style="letter-spacing: -0.084px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/--vOZ749Lxr0/XoSfYN883ZI/AAAAAAAABTA/P5R4inG9tEsim3vDVsJJuKzaW1xUiz8vgCEwYBhgLKs4DAMBZVoCfi2kHhHatOYkSUXnucA7fhUL1bhWDJ4ojN2YbmZeI_jlp14jOegpDCVFwQ7HANqN_HNCEpOMeNwuc6g_I9QZyHiM3vHUa6Jme11oVq-T-qtwMRCKYNWvM9xQmh3gz8QGPO2ZQ7rnhErs_rfLFcAxVF09NuXr4GTgyNEiA5ZW79B-jp2A6Q--XQi8qhWKK1j2r8ddP18W1ebv9d4Er6F4o3_sw7lY98TVqdp8ikzMAkINm7Oltd0S8dABU48SLBI06HCqbsQz9whf8Avm-gkWs6E0Uf4OucAlZHCNI4pg0K9JHO4uV4_CqfUe5XQPsqV1dGy-w9klozDrOWV4EozFMWdcuAlFVeWr99lYrCmnHckKs8vZZtNdrFk9e9pGcx-Zo7MzUhAZh42hxprGiygZZf1hje0VJxLS6oS4EdylyeqWmLt4chaSitTpbVKgwgW-yiUc1ZqxFwTyDwRaNcJoc5nJyelQYP3rEqQHvl-O5y_v1qwQ1F55FvWf43UNm0sJdOJ--WZ7UL3wfoeNAKW5Hy4sMPnVEBkkRD-nbRnw7xti3oyjvBEyEStLi6YlYL0HHA53ftEQkexk0eOIEIsr0qSVEDuMuiDrlMNXDkvQF/s1600/green.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="341" data-original-width="700" src="https://1.bp.blogspot.com/--vOZ749Lxr0/XoSfYN883ZI/AAAAAAAABTA/P5R4inG9tEsim3vDVsJJuKzaW1xUiz8vgCEwYBhgLKs4DAMBZVoCfi2kHhHatOYkSUXnucA7fhUL1bhWDJ4ojN2YbmZeI_jlp14jOegpDCVFwQ7HANqN_HNCEpOMeNwuc6g_I9QZyHiM3vHUa6Jme11oVq-T-qtwMRCKYNWvM9xQmh3gz8QGPO2ZQ7rnhErs_rfLFcAxVF09NuXr4GTgyNEiA5ZW79B-jp2A6Q--XQi8qhWKK1j2r8ddP18W1ebv9d4Er6F4o3_sw7lY98TVqdp8ikzMAkINm7Oltd0S8dABU48SLBI06HCqbsQz9whf8Avm-gkWs6E0Uf4OucAlZHCNI4pg0K9JHO4uV4_CqfUe5XQPsqV1dGy-w9klozDrOWV4EozFMWdcuAlFVeWr99lYrCmnHckKs8vZZtNdrFk9e9pGcx-Zo7MzUhAZh42hxprGiygZZf1hje0VJxLS6oS4EdylyeqWmLt4chaSitTpbVKgwgW-yiUc1ZqxFwTyDwRaNcJoc5nJyelQYP3rEqQHvl-O5y_v1qwQ1F55FvWf43UNm0sJdOJ--WZ7UL3wfoeNAKW5Hy4sMPnVEBkkRD-nbRnw7xti3oyjvBEyEStLi6YlYL0HHA53ftEQkexk0eOIEIsr0qSVEDuMuiDrlMNXDkvQF/s1600/green.png" /></a></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="736b" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
As you can see at line 114 and 115 we are adding the object of Vehicle and Vendor observer to the trafficObserver array using the addObserver function</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="49d0" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
And in line 117 when we change the color of the trafficLight to green then in the console you can see two different objects behaving differently based on the state of the traffic light</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="ed95" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
The same behavior can be observed when we change the traffic light from green to red</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="ed95" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-E3U62vLlbEw/XoSfYPJYneI/AAAAAAAABS8/GSj9SDtCEAwumIxwuB8BoOrHnWybj6G4ACEwYBhgLKs4DAMBZVoAhiyjUk7sJI5w6eXsnHfBGEYQRqLl38dXsinNSwOen098o_CtzJXgqddIBjLfAlml9rT-GJpb47I9F2UxGIOfcXoT_AF9kyD12qe_7cwlsDhX6CfDHfbvhZndv42PptMYb9c3jismb6tL3-TX6tGnaa3mWyHRCf-7AWbY4RQ4R4YVcDfw4uUyCbMyoSBpbQTyRZ9qx5Fq2AZb4sKIYaTN4fiQzch5IylS4xFi-Ro1dIs0YSzprtBgPTLKsJDB0z2ATvKnlhWN312SVWOhwnO0g4yLMX3kLcfk1xrcBm9rhFntS7r0LgbOjUQnnEz0MUHf_vsGGrpmBGT3PpMCDyvrLyt49B7prlnPX7x5pWuL-YJBmHMvXmknU2sIA5hOcomg9PL7pu9WXZbcLxG9P2yQ95AB0xiMc8daqe6qt8sFDfaJCfY0YFy7FEZUCjxSU_BR5HfJjadj9bhLaROvuHytoDVVoYtr81r2xOHU6oIKFS_8diZ8a1WikBnaYgMJdcwSY3YIMBLZLP7kio25IsmaBlBv8KLidVvpAegnkDEZkmj6ZjUOihRdLs7dksUbYdlcLsfj9-0nKQGtCugCLnqJpNP_W715-ARukMO_DkvQF/s1600/red.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="334" data-original-width="700" src="https://1.bp.blogspot.com/-E3U62vLlbEw/XoSfYPJYneI/AAAAAAAABS8/GSj9SDtCEAwumIxwuB8BoOrHnWybj6G4ACEwYBhgLKs4DAMBZVoAhiyjUk7sJI5w6eXsnHfBGEYQRqLl38dXsinNSwOen098o_CtzJXgqddIBjLfAlml9rT-GJpb47I9F2UxGIOfcXoT_AF9kyD12qe_7cwlsDhX6CfDHfbvhZndv42PptMYb9c3jismb6tL3-TX6tGnaa3mWyHRCf-7AWbY4RQ4R4YVcDfw4uUyCbMyoSBpbQTyRZ9qx5Fq2AZb4sKIYaTN4fiQzch5IylS4xFi-Ro1dIs0YSzprtBgPTLKsJDB0z2ATvKnlhWN312SVWOhwnO0g4yLMX3kLcfk1xrcBm9rhFntS7r0LgbOjUQnnEz0MUHf_vsGGrpmBGT3PpMCDyvrLyt49B7prlnPX7x5pWuL-YJBmHMvXmknU2sIA5hOcomg9PL7pu9WXZbcLxG9P2yQ95AB0xiMc8daqe6qt8sFDfaJCfY0YFy7FEZUCjxSU_BR5HfJjadj9bhLaROvuHytoDVVoYtr81r2xOHU6oIKFS_8diZ8a1WikBnaYgMJdcwSY3YIMBLZLP7kio25IsmaBlBv8KLidVvpAegnkDEZkmj6ZjUOihRdLs7dksUbYdlcLsfj9-0nKQGtCugCLnqJpNP_W715-ARukMO_DkvQF/s1600/red.png" /></a></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="911a" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
This is how the observer pattern works in general and I hope after reading this article you have a basic understanding of this design pattern.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="f5bb" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
I have released a YouTube video on this topic on my channel, do check that out. It’s in Hindi language and I am working on uploading the subtitles soon.</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="1537" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
Do subscribe to the channel and share it with your iOS group</div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="126a" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
Download the code from the given link: <a class="bm fa pm pn po pp" href="https://github.com/codecat15/Youtube-tutorial/tree/master/ObserverPattern" rel="noopener nofollow" style="-webkit-tap-highlight-color: transparent; background-image: url("data:image/svg+xml; background-position: 0px calc(1em + 1px); background-repeat: repeat-x; background-size: 1px 1px; box-sizing: inherit; http: //www.w3.org/2000/svg\"><line x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\" stroke=\"rgba(0, 0, 0, 0.84)\" /></svg>"); text-decoration-line: none;" target="_blank">https://github.com/codecat15/Youtube-tutorial/tree/master/ObserverPattern</a></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="126a" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/44kEzzyf7Hk/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/44kEzzyf7Hk?feature=player_embedded" width="320"></iframe></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="hb hc av cd hd b he no hg np nq nr ns nt nu nv ho gc" data-selectable-paragraph="" id="863e" style="box-sizing: inherit; color: rgba(0, 0, 0, 0.84); font-family: medium-content-serif-font, Georgia, Cambria, "Times New Roman", Times, serif; font-size: 21px; letter-spacing: -0.004em; line-height: 1.58; margin-bottom: -0.46em; margin-top: 2em; word-break: break-word;">
Thank you so much for your time, Have a nice day and happy iCoding.</div>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com12tag:blogger.com,1999:blog-5601914985162740511.post-16378328715659100502019-12-13T21:22:00.001-08:002019-12-13T22:07:59.844-08:00Codecat15 youtube channel crosses 100 subscribers in few months. <div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<span style="font-family: "verdana" , sans-serif;">It's been only a couple of months I have started my youtube channel and today we have crossed 100 subscribers.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">I want to thank all of you for your love and support that has always motivated me to make good content. I will try to deliver content in the coming days as well. </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-N4KKVRnbJmo/XfRxRG0JxSI/AAAAAAAABRA/Z53wVxlOS-oLuUOXMlFQhHzENSOsiJGYwCLcBGAsYHQ/s1600/light-sign-typography-lighting-519.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1067" data-original-width="1600" height="266" src="https://1.bp.blogspot.com/-N4KKVRnbJmo/XfRxRG0JxSI/AAAAAAAABRA/Z53wVxlOS-oLuUOXMlFQhHzENSOsiJGYwCLcBGAsYHQ/s400/light-sign-typography-lighting-519.jpg" width="400" /></a></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">As of now I shall continue to make videos in Hindi language, but if you want me to make videos in English I would really appreciate if you can let me know that.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">For now here's a link to my latest video which explains the difference between software architect and design.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://youtu.be/-FKgRQrGhxg" target="_blank">Please subscribe to the channel</a> and let's grow this community and reach maximum programmers and show them how easy it is to write clean code :)</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Here are links to social media accounts where you can connect with me</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-3uzf4Oi5wtY/XfR8Al_IoBI/AAAAAAAABRc/8WCxw2DqDv4kfWZDGePKe-3BXCD-r3RgQCLcBGAsYHQ/s1600/BeFunky-design.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1200" height="400" src="https://1.bp.blogspot.com/-3uzf4Oi5wtY/XfR8Al_IoBI/AAAAAAAABRc/8WCxw2DqDv4kfWZDGePKe-3BXCD-r3RgQCLcBGAsYHQ/s400/BeFunky-design.jpg" width="400" /></a></div>
<div style="text-align: center;">
<br /></div>
<span style="font-family: Verdana, sans-serif;"><span style="background-color: #f9f9f9; color: #0d0d0d; font-size: 14px; white-space: pre-wrap;"></span></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Happy iCoding and have a nice day.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/-FKgRQrGhxg/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/-FKgRQrGhxg?feature=player_embedded" width="320"></iframe></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com5tag:blogger.com,1999:blog-5601914985162740511.post-89872619501218192192019-11-18T05:41:00.001-08:002019-11-18T05:43:48.583-08:00Your code does not need to be complex and it can be simplified very easily<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: "verdana" , sans-serif;"><b>A small request to the one reading this:</b> If you think the video tutorials are good and helps you to learn new concepts or old easily then please subscribe to the channel and share it with your friends and ask them to subscribe as well.<br /></span><br />
<span style="font-family: "verdana" , sans-serif;">I want to know if the new tutorial in Hindi is doing any good and helping you in a someway and by subscribing I would know if you all are really interested and want me to create more of such videos.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">In this video session, I would like to present how few programmers love to try new things and in their attempt, they forget how simple it is to do clean coding.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Your code does not need to have complexities and it can be simplified from a greater margin and in this video, I am demonstrating how you can do it and avoid being a programmer who loves to try new things but ends up making it complex.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">So here's the link to my new video, I hope you like it and please do share and subscribe to the channel to make it grow and gain knowledge :). I hope you enjoy this video, happy iCoding and have a nice day.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b>Link:</b> <a href="https://www.youtube.com/watch?v=WJznwyuOHZc">https://www.youtube.com/watch?v=WJznwyuOHZc</a></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "verdana" , sans-serif;"><iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/WJznwyuOHZc/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/WJznwyuOHZc?feature=player_embedded" width="320"></iframe></span></div>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><span id="goog_260525733"></span><a href="https://www.blogger.com/"></a><span id="goog_260525734"></span><br /></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com1tag:blogger.com,1999:blog-5601914985162740511.post-17305744995922232102019-10-29T21:04:00.000-07:002019-10-29T21:11:14.028-07:00Single responsibility principle<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="box-sizing: border-box; padding: 0px;">
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 14pt;">In this video, I am sharing how
you can improve your coding skills with the help of a simple technique called
SRP a.k.a Single Responsibility principle.</span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="color: black; font-family: "Verdana",sans-serif; font-size: 14.0pt;">I really hope you all enjoy the
video, it's in Hindi but if you want me to make videos in English do let me
know I can make a few and share it with all of you.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="color: black; font-family: "Verdana",sans-serif; font-size: 14.0pt;">The video is divided into two
parts.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false"
DefSemiHidden="false" DefQFormat="false" DefPriority="99"
LatentStyleCount="376">
<w:LsdException Locked="false" Priority="0" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 9"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="header"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footer"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index heading"/>
<w:LsdException Locked="false" Priority="35" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of figures"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope return"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="line number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="page number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of authorities"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="macro"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="toa heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 5"/>
<w:LsdException Locked="false" Priority="10" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Closing"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Signature"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="true"
UnhideWhenUsed="true" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Message Header"/>
<w:LsdException Locked="false" Priority="11" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Salutation"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Date"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Block Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Hyperlink"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="FollowedHyperlink"/>
<w:LsdException Locked="false" Priority="22" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Document Map"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Plain Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="E-mail Signature"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Top of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Bottom of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal (Web)"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Acronym"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Cite"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Code"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Definition"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Keyboard"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Preformatted"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Sample"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Typewriter"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Variable"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Table"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation subject"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="No List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Contemporary"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Elegant"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Professional"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Balloon Text"/>
<w:LsdException Locked="false" Priority="39" Name="Table Grid"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Theme"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" QFormat="true"
Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" QFormat="true"
Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" QFormat="true"
Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" QFormat="true"
Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" QFormat="true"
Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" QFormat="true"
Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" SemiHidden="true"
UnhideWhenUsed="true" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="TOC Heading"/>
<w:LsdException Locked="false" Priority="41" Name="Plain Table 1"/>
<w:LsdException Locked="false" Priority="42" Name="Plain Table 2"/>
<w:LsdException Locked="false" Priority="43" Name="Plain Table 3"/>
<w:LsdException Locked="false" Priority="44" Name="Plain Table 4"/>
<w:LsdException Locked="false" Priority="45" Name="Plain Table 5"/>
<w:LsdException Locked="false" Priority="40" Name="Grid Table Light"/>
<w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="46" Name="List Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Mention"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Smart Hyperlink"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Hashtag"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Unresolved Mention"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Smart Link"/>
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:3 0 0 0 1 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536859905 -1073697537 9 0 511 0;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1593833729 1073750107 16 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
p
{mso-style-noshow:yes;
mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman",serif;
mso-fareast-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.WordSection1
{page:WordSection1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style>
<![endif]-->
<!--StartFragment-->
<!--EndFragment--><br />
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="color: black; font-family: "Verdana",sans-serif; font-size: 14.0pt;">1.</span></b><span style="color: black; font-family: "Verdana",sans-serif; font-size: 14.0pt;"> <b>General
introduction to SRP</b><o:p></o:p></span></div>
</div>
<div style="box-sizing: border-box; padding: 0px;">
<br /></div>
<div class="separator" style="box-sizing: border-box; clear: both; padding: 0px; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/nvceoXrzDGE/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/nvceoXrzDGE?feature=player_embedded" width="320"></iframe></div>
<div style="box-sizing: border-box; padding: 0px;">
<br /></div>
<div style="box-sizing: border-box; padding: 0px;">
<br /></div>
<div style="box-sizing: border-box; padding: 0px;">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false"
DefSemiHidden="false" DefQFormat="false" DefPriority="99"
LatentStyleCount="376">
<w:LsdException Locked="false" Priority="0" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index 9"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" Name="toc 9"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="header"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footer"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="index heading"/>
<w:LsdException Locked="false" Priority="35" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of figures"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="envelope return"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="footnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="line number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="page number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote reference"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="endnote text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="table of authorities"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="macro"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="toa heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Bullet 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Number 5"/>
<w:LsdException Locked="false" Priority="10" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Closing"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Signature"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="true"
UnhideWhenUsed="true" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="List Continue 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Message Header"/>
<w:LsdException Locked="false" Priority="11" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Salutation"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Date"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text First Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Note Heading"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Body Text Indent 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Block Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Hyperlink"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="FollowedHyperlink"/>
<w:LsdException Locked="false" Priority="22" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Document Map"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Plain Text"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="E-mail Signature"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Top of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Bottom of Form"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal (Web)"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Acronym"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Address"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Cite"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Code"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Definition"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Keyboard"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Preformatted"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Sample"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Typewriter"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="HTML Variable"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Normal Table"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="annotation subject"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="No List"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Outline List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Simple 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Classic 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Colorful 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Columns 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Grid 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 4"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 5"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 7"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table List 8"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table 3D effects 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Contemporary"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Elegant"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Professional"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Subtle 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 1"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 2"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Web 3"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Balloon Text"/>
<w:LsdException Locked="false" Priority="39" Name="Table Grid"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Table Theme"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" SemiHidden="true" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" QFormat="true"
Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" QFormat="true"
Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" QFormat="true"
Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" QFormat="true"
Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" QFormat="true"
Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" QFormat="true"
Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" SemiHidden="true"
UnhideWhenUsed="true" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" SemiHidden="true"
UnhideWhenUsed="true" QFormat="true" Name="TOC Heading"/>
<w:LsdException Locked="false" Priority="41" Name="Plain Table 1"/>
<w:LsdException Locked="false" Priority="42" Name="Plain Table 2"/>
<w:LsdException Locked="false" Priority="43" Name="Plain Table 3"/>
<w:LsdException Locked="false" Priority="44" Name="Plain Table 4"/>
<w:LsdException Locked="false" Priority="45" Name="Plain Table 5"/>
<w:LsdException Locked="false" Priority="40" Name="Grid Table Light"/>
<w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="Grid Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="Grid Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="Grid Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="46" Name="List Table 1 Light"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark"/>
<w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful"/>
<w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 1"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 1"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 1"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 1"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 1"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 1"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 2"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 2"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 2"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 2"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 2"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 2"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 3"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 3"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 3"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 3"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 3"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 3"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 4"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 4"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 4"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 4"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 4"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 4"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 5"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 5"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 5"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 5"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 5"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 5"/>
<w:LsdException Locked="false" Priority="46"
Name="List Table 1 Light Accent 6"/>
<w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 6"/>
<w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 6"/>
<w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 6"/>
<w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 6"/>
<w:LsdException Locked="false" Priority="51"
Name="List Table 6 Colorful Accent 6"/>
<w:LsdException Locked="false" Priority="52"
Name="List Table 7 Colorful Accent 6"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Mention"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Smart Hyperlink"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Hashtag"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Unresolved Mention"/>
<w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true"
Name="Smart Link"/>
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:3 0 0 0 1 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536859905 -1073697537 9 0 511 0;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1593833729 1073750107 16 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
p
{mso-style-noshow:yes;
mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman",serif;
mso-fareast-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.WordSection1
{page:WordSection1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style>
<![endif]-->
<!--StartFragment-->
<!--EndFragment--><br />
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="font-family: "Verdana",sans-serif; font-size: 14.0pt;">2. How you can improvise to use SRP in your
code, and how not to use inheritance</span></b><span style="font-family: "Verdana",sans-serif; font-size: 14.0pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="font-family: "Verdana",sans-serif; font-size: 14.0pt;"><br /></span></b></div>
</div>
<div class="separator" style="box-sizing: border-box; clear: both; padding: 0px; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/PG8XSarFEcg/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/PG8XSarFEcg?feature=player_embedded" width="320"></iframe></div>
<div style="box-sizing: border-box; padding: 0px;">
<br /></div>
<div style="box-sizing: border-box; padding: 0px;">
<br /></div>
<div style="box-sizing: border-box; padding: 0px;">
<br /></div>
<div style="box-sizing: border-box; padding: 0px;">
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="color: black; font-family: "Verdana",sans-serif; font-size: 14.0pt;">Note:</span></b><span style="color: black; font-family: "Verdana",sans-serif; font-size: 14.0pt;"> In
part 2 I have shown how you can use generics and maturely improve your code.</span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="color: black; font-family: "Verdana",sans-serif; font-size: 14.0pt;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="color: black; font-family: "Verdana",sans-serif; font-size: 14.0pt;">Have a nice day and happy iCoding</span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="color: black; font-family: "Verdana",sans-serif; font-size: 14.0pt;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="font-family: Verdana, sans-serif; font-size: 14pt;">Do share this video with your friends or anyone who wants to learn swift and please do subscribe to the channel to get more amazing tips and tricks.</span></b></div>
</div>
<div style="box-sizing: border-box; padding: 0px;">
<br /></div>
<div style="box-sizing: border-box; padding: 0px;">
<br style="color: #1c1e29; font-family: "Akkurat Std", -apple-system, system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 20.25px; white-space: pre-wrap;" /></div>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:3 0 0 0 1 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536859905 -1073697537 9 0 511 0;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1593833729 1073750107 16 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
p
{mso-style-noshow:yes;
mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman",serif;
mso-fareast-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-family:"Calibri",sans-serif;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.WordSection1
{page:WordSection1;}
-->
</style></div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com9tag:blogger.com,1999:blog-5601914985162740511.post-65055722211556264002019-07-28T12:02:00.001-07:002019-07-28T12:02:27.001-07:00Introduction to Threading<div dir="ltr" style="text-align: left;" trbidi="on">
After a good vacation I am back to my video logs, and today I have shared a video on threading, usually, this is the one which gets asked most in interviews and even now many experienced folks out there struggle with the part involving multi-threading operations.<br />
<br />
But to understand multi-threading or threading in general we must first understand the basics of threading.<br />
<br />
In this video, I have tried my best to capture a few flavors of threading, queues and race conditions. The video is in Hindi if I get adequate requests I can make the video in English too :)<br />
<br />
Please do ask your friends or anyone who wants to learn iOS and needs to know in general how to improve in IT, then please do like, share and subscribe to this channel to know how easy it is to code and learn.<br />
<br />
Until then happy iCoding and have a nice day.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/OKfv_0FvEf0/0.jpg" src="https://www.youtube.com/embed/OKfv_0FvEf0?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<br /></div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com0tag:blogger.com,1999:blog-5601914985162740511.post-30536385893440133452019-04-23T12:34:00.001-07:002019-04-23T12:35:25.253-07:00Note from Radix, new youtube channel announcement for swift tutorial in Hindi<div dir="ltr" style="text-align: left;" trbidi="on">
Hello Everyone,<br />
<br />
This is radix, I have not been updating this blog post for a long period of time, as I was having some personal commitments and well life happened so was out of touch and busy and I apologize for the same.<br />
<br />
I have now started my own youtube channel and I am posting videos of swift there in Hindi, yes you read that right my videos are in Hindi.<br />
<br />
The major reason of keeping those videos in Hindi was to reach and explain the topic in a better way for you, I have been getting a lot of emails, messages from all the subscribers to add something like this from a long time.<br />
<br />
I would say the long wait is now over, I will be adding a max of 2 videos every week covering topics from basic to advanced. I believe that knowledge is something which should be provided for free and should be freely available so that anyone can pick up and learn and grow in life, with the youtube platform my goal is to share that in form of videos.<br />
<br />
These videos will not be limited to swift only, trust me you will love what's coming next.<br />
<br />
If there's demand I will surely do videos in English OR create two videos one in Hindi and one English but this will be done only for those videos where you mention in comments or send me an email to do the video in English.<br />
<br />
As for the blog, I am not sure when I will start writing again, but doing videos has made me realize how easy a topic can be covered within few minutes.<br />
<br />
Without saying further here is the name of my new youtube channel with some video links<br />
<br />
<b>Channel name:</b> <a href="https://www.youtube.com/channel/UCZoxAmodHJeSNxH7D6IqUMw" target="_blank">Codecat15</a><br />
<br />
<b>Calling API in swift:</b> <a href="https://www.youtube.com/watch?v=-7EyKipJltc">https://www.youtube.com/watch?v=-7EyKipJltc</a><br />
<br />
<b>Closures in swift:</b> <a href="https://www.youtube.com/watch?v=a_7ZxRp1B2Q">https://www.youtube.com/watch?v=a_7ZxRp1B2Q</a><br />
<br />
<b>Protocols in swift:</b> <a href="https://www.youtube.com/watch?v=MFPnxppPLXo">https://www.youtube.com/watch?v=MFPnxppPLXo</a><br />
<br />
<b>Introduction to test cases in an iOS application:</b> <a href="https://www.youtube.com/watch?v=7J_E4hnfrHs">https://www.youtube.com/watch?v=7J_E4hnfrHs</a><br />
<br />
I hope you enjoy these videos as much as I did making them.<br />
<br />
If you didn't like something please reach out to me OR if you are looking for a new topic which I don't have listed please let me know and I will try my best to add it.<br />
<br />
Once again I would like to thank all of you for the love and support all these years, <b>And don't forget to like, subscribe and share :)</b><br />
<br />
Thank you for your time reading this, have a nice day and Happy iCoding.<br />
<br />
<br /></div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com0tag:blogger.com,1999:blog-5601914985162740511.post-89928315670605680702015-07-25T06:44:00.000-07:002019-10-29T21:27:55.544-07:00Basics of swift: Introduction to class, methods and objects<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: "verdana" , sans-serif;"><b>Note:</b> Thank you for all the love and support for this video, I request you to please</span><span style="font-family: verdana, sans-serif;"> subscribe to my channel for more such insights</span><br />
<span style="font-family: verdana, sans-serif;"><br /></span>
<span style="font-family: verdana, sans-serif;"><b>Channel name:</b> codecat15</span><br />
<span style="font-family: "verdana" , sans-serif;"></span><br />
<span style="font-family: verdana, sans-serif;"><b>Channel link:</b></span><br />
<span style="font-family: verdana, sans-serif;"><a href="https://www.youtube.com/channel/UCZoxAmodHJeSNxH7D6IqUMw">https://www.youtube.com/channel/UCZoxAmodHJeSNxH7D6IqUMw</a></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Apple has released its new dynamic programming language called as swift and its pretty awesome.</span><br />
<br />
<span style="font-family: "verdana" , sans-serif;">From now on I will be releasing video tutorials of it so that I can explain the concepts through videos and make you understand in a much better way.</span><br />
<br />
<span style="font-family: "verdana" , sans-serif;">I request the readers of my blog post to visit the video URL and view the videos and in case if you are facing any issues or have any sort of difficulty in understanding any concept feel free to mention it as a comment or email me, I would be happy to help you.</span><br />
<br />
<span style="font-family: "verdana" , sans-serif;">Here is the first video tutorial on swift which will help beginners in understanding basic concepts on swift like building a class, method and objects. </span><br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/t_u3GlT0ejY/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/t_u3GlT0ejY?feature=player_embedded" width="320"></iframe></div>
<br />
<br />
<br />
<span style="font-family: "verdana" , sans-serif;">Happy iCoding and Have a great day </span><br />
<br />
<br />
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com5tag:blogger.com,1999:blog-5601914985162740511.post-42679585363813680782014-06-12T01:40:00.000-07:002014-06-12T01:40:22.640-07:00iOS interview question part 2<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">Hello Readers how are you long time no posts sorry about that i have been busy with work, i will be coming with new topics in the coming days but for now i have few interview questions for you to crunch on.</span></div>
<div style="text-align: left;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">Been interviewing for a long time and i see that even after having good experience candidates fail to have the actual drill down knowledge of basic concepts and some of them mug up answers from google and repeat them word to word.</span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">Today many of the companies are looking forward to a developer who are comfortable with native and hybrid development skills, now-a-days hybrid app development seems to be an important ace in your resume. My personal favorite will be native but i am too learning phonegap and will blog on that as well.</span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">Given below are few set on my own interview questions that i ask candidates who are experienced / freshers so here it is feel free to ask question to me via comments / mail or leave a message on our <a href="https://www.facebook.com/groups/iPhoneByRadix/" target="_blank">facebook group</a>. Happy iCoding and have a great day.</span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">This is my second post on interview question do have a look at the first one <a href="http://iphonebyradix.blogspot.in/2011/08/iphone-interview-questions.html" target="_blank">here </a></span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"MS 明朝";
panose-1:0 0 0 0 0 0 0 0 0 0;
mso-font-charset:128;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:fixed;
mso-font-signature:1 134676480 16 0 131072 0;}
@font-face
{font-family:"MS 明朝";
panose-1:0 0 0 0 0 0 0 0 0 0;
mso-font-charset:128;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:fixed;
mso-font-signature:1 134676480 16 0 131072 0;}
@font-face
{font-family:Cambria;
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:-536870145 1073743103 0 0 415 0;}
@font-face
{font-family:"Helvetica Neue Light";
panose-1:2 0 4 3 0 0 0 2 0 4;
mso-font-charset:0;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:-1610611969 1342185563 2 0 7 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"MS 明朝";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
mso-style-unhide:no;
mso-style-qformat:yes;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
mso-add-space:auto;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"MS 明朝";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
{mso-style-priority:34;
mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-type:export-only;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
mso-add-space:auto;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"MS 明朝";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
{mso-style-priority:34;
mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-type:export-only;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
mso-add-space:auto;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"MS 明朝";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
{mso-style-priority:34;
mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-type:export-only;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
mso-add-space:auto;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"MS 明朝";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"MS 明朝";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
@page WordSection1
{size:595.0pt 842.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1116102523;
mso-list-type:hybrid;
mso-list-template-ids:-182654140 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l1
{mso-list-id:1764574007;
mso-list-type:hybrid;
mso-list-template-ids:-1591444714 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l1:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l1:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l1:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style></div>
<div class="MsoListParagraphCxSpFirst" style="text-align: left;">
<br /></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">1.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Difference
between SEL and @selector.<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">2.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Difference
between retain and copy? (The answer that I am looking for is memory wise and
not some answer googled here and there)<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">3.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Difference
between categories and extension?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">4.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Explain
responder chain? And how it works<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">5.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Difference
between method calling and performSelector? What's the difference when you call a method using self and @selector<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">6.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">When
to use strong and weak reference?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">7.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Why
are IBOutlets and delegates declared as weak and not strong? And describe a
case where you would declare delegates as strong<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">8.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Difference
between atomic and non-atomic, Is atomic thread safe if YES then why YES and if
NO then why NO?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">9.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Explain
sandboxing in iOS app?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">10.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;"><span style="mso-spacerun: yes;"> </span>How to upload an enterprise app without using
any third party tool?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">11.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">Difference between
Core Data and SQLITE? (Note : Mostly people are asking how both work in a multi
threading environment so be prepared accordingly)<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">12.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">How does a table
cell work?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">13.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">In ARC how does the
compiler know that a certain object is not required?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">14.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">Why and when do we
make use of blocks in our code?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">15.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">How does an SSL
certificate work?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">16.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">What will you use
storyboard or XIB’s and why?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">17.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">How will you
convert an iOS 6 app to iOS 7?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">18.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">What does code
signing mean?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">19.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">Explain toll-free
bridging in iOS?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">20.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">Explain the life
cycle of a ViewController?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">21.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">Explain life cycle
of an iOS app?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">22.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">What is the use of self
= [super init]?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">23.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">Sizes of the entire
iphone and ipad screen?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">24.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">Difference between NSURLConnection
and NSURLSession?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">25.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">Better to read some
new features in the latest SDK.<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">26.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">You need to call a
webservice and lets say your app is in background for 2 days <b style="mso-bidi-font-weight: normal;">how will you achieve this in iOS 6?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</b></span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">27.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">How will the user
submit you crash report of your app, all you have provided is just the email of
your support team?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">28.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">Difference between
notification and delegate?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">29.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">How will you create
your own NSMutableArray class (This is a fav question of mine I ask this
question so that I come to know how much you can think).<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">30.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">Read on how
to upload an enterprise app and what are the necessary accounts or certificates
required in this process.</span></span>
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><br style="mso-special-character: line-break;" /></span>
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"></span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14.0pt; mso-bidi-font-family: Cambria; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Cambria; mso-fareast-theme-font: minor-latin;"><span style="mso-list: Ignore;">31.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">Explain the
iOS architecture OR explain the iphone OS architecture?</span></span>
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><br style="mso-special-character: line-break;" /></span>
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14.0pt;"></span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 14.2pt; text-align: left; text-indent: 0cm;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14.0pt; mso-bidi-font-family: Cambria; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Cambria; mso-fareast-theme-font: minor-latin;"><span style="mso-list: Ignore;">32.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span><span style="font-size: 14pt;">Your app is
present in a jail break device so how will you make sure that the attacker does
not get to sniff in plist files, User defaults or sqlite database present in
the app sandbox?</span><span style="font-size: 14.0pt;"></span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpLast" style="margin-left: 14.2pt; text-align: left;">
<br /></div>
<div style="text-align: left;">
</div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;">So
this was related with iOS development related questions few of my personal
favorite are given below</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpFirst" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">1.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Find
the factorial of a number without using any for, while, do-while or go-to?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">2.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">How
will you multiply two numbers without using any arithmetic operator and math
library?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><b style="mso-bidi-font-weight: normal;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">3.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></span></b><span style="font-size: 14pt;">What happens if I
make a web service call in the app did finish loading method and give the timeout
interval as 20 minutes? <b style="mso-bidi-font-weight: normal;">Note: I am
making a synchronous call here<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</b></span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">4.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Difference
between agile and waterfall model?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">5.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Explain
PGP i.e pretty good privacy and how does it work?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">6.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Difference
between encryption, cryptography and hashing?<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">7.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Difference
between final and const (something out of objective C)<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">8.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Assuming
I have an array filled with numbers from 1 to 6000 in this array at a given
point there is a number that is duplicate, tell me the optimum solution to find
that number using a single loop.<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">9.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">Why
objective C is called as a runtime language? (Pretty Basic :P )<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 1cm; text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">10.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span><span style="font-size: 14pt;">What
is the difference between deep copy and shallow copy? And how will you
implement this in objective C<br style="mso-special-character: line-break;" />
<br style="mso-special-character: line-break;" />
</span></span></div>
<div style="text-align: left;">
</div>
<div class="MsoListParagraphCxSpLast" style="margin-left: 1cm; text-align: left; text-indent: -18pt;">
<span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><span style="font-size: 14pt;"><span style="mso-list: Ignore;">11.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">
</span></span></span></span><span style="font-family: "Helvetica Neue Light"; font-size: 14.0pt;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">What
is the meaning of HTTP and what does it do and why is HTTPS secure than HTTP?</span><br style="mso-special-character: line-break;" />
</span></div>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com4tag:blogger.com,1999:blog-5601914985162740511.post-40892734374137367222013-12-12T02:20:00.002-08:002013-12-12T02:51:00.576-08:00Phonegap introduction <div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-wF_b-xHMkZs/UqmMLnj7q4I/AAAAAAAABGU/u_g-oEKfEMs/s1600/phonegap-build.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-wF_b-xHMkZs/UqmMLnj7q4I/AAAAAAAABGU/u_g-oEKfEMs/s320/phonegap-build.png" width="320" /></a></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">In this tutorial we will discuss
what is phonegap and what makes it so cool</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Phonegap is a mobile
development framework it was originally built by Nitobi and later was purchased
by Adobe systems. Phonegap helps you to create mobile apps by making use of <a href="http://www.w3schools.com/html/html5_intro.asp" target="_blank">HTML5</a>,
<a href="http://www.w3schools.com/js/default.asp" target="_blank">javascript</a> and <a href="http://www.w3schools.com/css/default.asp" target="_blank">CSS</a> instead of the device specific language (Objective C, C#,
Java).<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">The apps which are made in
phonegap are called as hybrid apps, hybrid apps because the UI rendering is
done as part of web and to call the native controllers like the image, camera
or sqlite database etc you have access to these device specific API’s (we will
talk about it later). If you are planning to use phonegap in your next project
then I would suggest you to make sure that your HTML, CSS and javascript skills
are clean.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">By using phonegap you are
at the same time developing apps for multiple platforms, you can take advantage
of the concept called as plugins to do device specific work in case if you do
not find a device API for the same.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><b>Example:</b> If you just want to
show a native alert in a phonegap based app, then you can write your own
plugin.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">The app, which uses
phonegap framework, makes use of the native webview, all the styling and UI
rendering is maintained with the help of CSS and javascript. Also note that phonegap is an open source framework.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">The various operating
system supported by phonegap are as follows:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Apple iOS<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">LG webOS<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Windows<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Symbian OS<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Blackberry<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Bada OS<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Ubuntu touch<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Android<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">While beginning the
learning phase a question raised in my mind like whenever I search phonegap
this cordova thing used to come up and it was like so confusing at the first
place but finally got the answer to it.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Above I mentioned that now
phonegap is owned by adobe, what adobe did later was they donated the phonegap
codebase to Apache software foundation (ASF), later phonegap was renamed to
Apache callback which the apache community found was not so cool so they
renamed it to Cordova, Cordova hmmmm is their<span style="mso-spacerun: yes;">
</span>a meaning in this name while yes phonegap was a project that was born in
Nitobi company which was located in Cordova Street in Vancouver,well now the
name makes sense.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">The next question that I
had in my mind was like what is the difference between phonegap and Apache
Cordova?<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">After visiting few links I
found that you could think of the apache cordova as the engine that powers a
car named phonegap. To be more specific Apache cordova has a set of device
level API’s with the help of which you can access the device level controllers
like the accelerometer, camera, etc with the help of apache cordova you can
build native mobile apps using HTML, CSS and Javascript.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Coming to phonegap now,
phonegap is a distribution of apache cordova you may think of apache cordova as
the heart and phonegap as arteries that supply blood to all the parts of your
body. So basically that makes phonegap as the supplier of cordova and its device
based API’s.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">If the above example did
not impress you then here’s a common example that you might have came across,
you can think of cordova like the webkit which powers safari or chrome.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">If you want to know more
then <a href="http://phonegap.com/about/faq/" target="_blank">here’s a FAQ guide</a> from phonegap itself.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">If you are planning to
install cordova then please visit <a href="http://docs.phonegap.com/en/3.2.0/guide_cli_index.md.html#The%20Command-Line%20Interface" target="_blank">this</a> link that contains simple step by step
written for installation. Also you need to download the cordova source from
<a href="https://www.apache.org/dist/cordova/cordova-3.2.0-src.zip" target="_blank">here</a> because to create cordova based app you need to use the <a href="http://cordova.apache.org/docs/en/2.5.0/guide_getting-started_ios_index.md.html" target="_blank">command lineterminal</a>.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">I hope that i was able to clear few things regarding phonegap in the next post we will see more about it, if you have any question then feel free to mail me or leave it as a comment until then Happy iCoding and have a great day.</span></div>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com18tag:blogger.com,1999:blog-5601914985162740511.post-80788019634569175312013-10-04T00:30:00.000-07:002013-10-04T00:31:51.376-07:00View provisioning profile in Xcode 5<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;">Obtaining Signing Identities and Downloading Provisioning Profiles<br /><br />Request code signing certificates and download provisioning profiles from Member Center.<br /><br />In the Xcode Preferences window, click Accounts.<br /><br />Select your team, and click View Details.</span></span><br />
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><a href="http://1.bp.blogspot.com/-xnkaPGQrtPw/Uk5s9d0OT1I/AAAAAAAABF8/VM5iAzqWK64/s1600/Snap1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="243" src="http://1.bp.blogspot.com/-xnkaPGQrtPw/Uk5s9d0OT1I/AAAAAAAABF8/VM5iAzqWK64/s320/Snap1.png" width="320" /></a></span></span></div>
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;">The view details dialog appears.</span></span><br />
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><a href="http://4.bp.blogspot.com/-IpGNoyJ5R68/Uk5tEgLC-TI/AAAAAAAABGE/WX8BIM0v5Mk/s1600/Snap2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="243" src="http://4.bp.blogspot.com/-IpGNoyJ5R68/Uk5tEgLC-TI/AAAAAAAABGE/WX8BIM0v5Mk/s320/Snap2.png" width="320" /></a></span></span></div>
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><br />Click the Refresh button in the lower-left corner of the view details dialog under the Provisioning Profiles table.<br /><br />If you are missing a development or distribution certificate, a dialog appears asking whether Xcode should request it on your behalf. A dialog may appear for each type of certificate you are missing.<br /><br />Click Request for the signing identities you want.<br /><br />Your new signing identities appear in the Signing Identities table. Xcode also downloads any missing provisioning profiles and adds them to the Provisioning Profiles table.<br /><br />If your keychain does not contain your development certificate but your team has the certificate, Xcode downloads it for you but without the private key. In this case, you should export your code signing assets from the Mac where you created the signing identity and import them on this Mac.<br /><br />If your role is a team member, inform the team agent or admin that there’s a pending certificate request.<br />If necessary, after the request is approved, follow these steps again to download your development certificate.<br /><br />If you are the team agent or admin, Xcode may request your team’s distribution certificate, in addition to a development certificate.</span></span><br />
<br />
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><b>Sources :</b> Apples documentation on Xcode.</span></span><br />
<br />
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;">Happy iCoding and have a great day. </span></span></div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com3tag:blogger.com,1999:blog-5601914985162740511.post-72644720960863095782013-09-16T06:33:00.003-07:002013-09-20T06:35:47.049-07:00Remove white spaces between NSString<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
<span style="font-family: Verdana,sans-serif;"><span style="font-size: small;">I was coding this app and was stuck with </span></span></div>
<div style="text-align: left;">
<span style="font-family: Verdana,sans-serif;"><span style="font-size: small;">removing the spaces from NSString </span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Verdana,sans-serif;"><span style="font-size: small;"><a href="http://4.bp.blogspot.com/-CUC0M_dk9wg/UjcH0GHo5fI/AAAAAAAABFs/q6GB83Gh0jM/s1600/regex-whitespace.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="192" src="http://4.bp.blogspot.com/-CUC0M_dk9wg/UjcH0GHo5fI/AAAAAAAABFs/q6GB83Gh0jM/s400/regex-whitespace.png" width="400" /></a></span></span></div>
<span style="font-family: Verdana,sans-serif;"><span style="font-size: small;">when i ran into this class called as <a href="https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSRegularExpression_Class/Reference/Reference.html" target="_blank">NSRegularExpression</a> and guess what i helped me a lot, given below is the code which i used to remove white spaces between <a href="https://developer.apple.com/library/ios/documentation/cocoa/reference/foundation/Classes/NSString_Class/Reference/NSString.html" target="_blank">NSString</a> object hope it helps</span></span><br />
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span></div>
<br />
<span style="font-family: Verdana,sans-serif;"><span style="font-size: small;"><br />Remove white spaces between NSString code : <br /><br /> NSString *whitespaceString = @"This is a string with white spaces ";<br /> <br /> NSError *error = nil;<br /> <br /> NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@" +" options:NSRegularExpressionCaseInsensitive error:&error];<br /> <br /> NSString *trimmedString = [regex stringByReplacingMatchesInString:whitespaceString options:0 range:NSMakeRange(0, [whitespaceString length]) withTemplate:@" "];<br /> <br /> NSLog(@"%@",trimmedString);</span></span><br />
<br />
<span style="font-family: Verdana,sans-serif;"><span style="font-size: small;"><b>Final String =</b> This is a string with white spaces</span></span><br />
<div style="text-align: left;">
<br /></div>
<span style="font-family: Verdana, sans-serif;">Join us on <a href="https://www.facebook.com/groups/iPhoneByRadix/">facebook</a></span><div>
<span style="font-family: Verdana, sans-serif;"><br /></span> <span style="font-family: Verdana, sans-serif;">Happy iCoding and have a great day....</span></div>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com8tag:blogger.com,1999:blog-5601914985162740511.post-85869996074566874502013-08-26T05:57:00.002-07:002013-08-26T06:06:33.323-07:00Ping a particular host using objective c<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">Ping a host and check for reachability</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">So heres the code (Make sure you add the SystemConfiguration Framework in your project before you begin with this)</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;">- (<span style="color: #c2339f;">BOOL</span>)pinghosttoCheckNetworkStatus</span></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;">{</span></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"> <span style="color: #c2339f;">bool</span> success = <span style="color: #c2339f;">false</span>;</span></div>
<div style="color: #dc241f; font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span><span style="color: #c2339f;">const</span><span style="color: black;"> </span><span style="color: #c2339f;">char</span><span style="color: black;"> *host_name = [</span>@"itunesconnect.apple.com"</span></div>
<div style="color: #39287e; font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span>cStringUsingEncoding<span style="color: black;">:</span>NSASCIIStringEncoding<span style="color: black;">];</span></span></div>
<div style="font-size: 14px; min-height: 16px;">
<span style="font-family: Verdana, sans-serif;"> </span></div>
<div style="color: #39287e; font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span><span style="color: #6f46a6;">SCNetworkReachabilityRef</span><span style="color: black;"> reachability = </span>SCNetworkReachabilityCreateWithName<span style="color: black;">(</span><span style="color: #c2339f;">NULL</span><span style="color: black;">,host_name);</span></span></div>
<div style="color: #6f46a6; font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span>SCNetworkReachabilityFlags<span style="color: black;"> flags;</span></span></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"> success = <span style="color: #39287e;">SCNetworkReachabilityGetFlags</span>(reachability, &flags);</span></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"> <span style="color: #c2339f;">bool</span> isAvailable = success && (flags & <span style="color: #39287e;">kSCNetworkFlagsReachable</span>) &&</span></div>
<div style="color: #39287e; font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> !(flags & </span>kSCNetworkFlagsConnectionRequired<span style="color: black;">);</span></span></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"> <span style="color: #c2339f;">if</span> (isAvailable)</span></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"> {</span></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"> <span style="color: #c2339f;">return</span> <span style="color: #c2339f;">YES</span>;</span></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"> }<span style="color: #c2339f;">else</span>{</span></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"> <span style="color: #c2339f;">return</span> <span style="color: #c2339f;">NO</span>;</span></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"> }</span></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;">}</span></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<br /></div>
<div style="font-size: 14px;">
<span style="font-family: Verdana, sans-serif;">Happy iCoding and have a great day.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Join Us on <a href="https://www.facebook.com/groups/iPhoneByRadix/" target="_blank">Facebook</a></span></div>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com0Sus Road, Maharashtra, India18.5526796 73.755863618.4924646 73.6751826 18.6128946 73.8365446tag:blogger.com,1999:blog-5601914985162740511.post-21952825327589567092013-07-08T03:06:00.000-07:002013-08-26T06:07:03.539-07:00Convert NSData into Base 64 string for SOAP services<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">Currently i was working on a SOAP request and wanted to send a file on the server, i looked at the SOAP request and saw that one of the parameter in the SOAP service accepted base64 as parameter, so i wanted to convert the NSData into base64 so after a long time spending debugging and breaking heads i finally surfed up and came saw a solution on stackoverflow which i would like to share with you </span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;">+ (<span class="s1">NSString</span>*)base64forData:(<span class="s1">NSData</span>*)theData {</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> <span class="s2">const</span> <span class="s1">uint8_t</span>* input = (<span class="s2">const</span> <span class="s1">uint8_t</span>*)[theData <span class="s3">bytes</span>];</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> <span class="s1">NSInteger</span> length = [theData <span class="s3">length</span>];</span></i></div>
<div class="p2">
<i><span style="font-family: Times, Times New Roman, serif;"> </span></i></div>
<div class="p3">
<i><span style="font-family: Times, Times New Roman, serif;"><span class="s4"> </span><span class="s2">static</span><span class="s4"> </span><span class="s2">char</span><span class="s4"> table[] = </span>"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="<span class="s4">;</span></span></i></div>
<div class="p2">
<i><span style="font-family: Times, Times New Roman, serif;"> </span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> <span class="s1">NSMutableData</span>* data = [<span class="s1">NSMutableData</span> <span class="s3">dataWithLength</span>:((length + <span class="s5">2</span>) / <span class="s5">3</span>) * <span class="s5">4</span>];</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> <span class="s1">uint8_t</span>* output = (<span class="s1">uint8_t</span>*)data.<span class="s3">mutableBytes</span>;</span></i></div>
<div class="p2">
<i><span style="font-family: Times, Times New Roman, serif;"> </span></i></div>
<div class="p4">
<i><span style="font-family: Times, Times New Roman, serif;"><span class="s4"> </span>NSInteger<span class="s4"> i;</span></span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> <span class="s2">for</span> (i=<span class="s5">0</span>; i < length; i += <span class="s5">3</span>) {</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> <span class="s1">NSInteger</span> value = <span class="s5">0</span>;</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> <span class="s1">NSInteger</span> j;</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> <span class="s2">for</span> (j = i; j < (i + <span class="s5">3</span>); j++) {</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> value <<= <span class="s5">8</span>;</span></i></div>
<div class="p2">
<i><span style="font-family: Times, Times New Roman, serif;"> </span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> <span class="s2">if</span> (j < length) {</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> value |= (<span class="s5">0xFF</span> & input[j]);</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> }</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> }</span></i></div>
<div class="p2">
<i><span style="font-family: Times, Times New Roman, serif;"> </span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> <span class="s1">NSInteger</span> theIndex = (i / <span class="s5">3</span>) * <span class="s5">4</span>;</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> output[theIndex + <span class="s5">0</span>] = table[(value >> <span class="s5">18</span>) & <span class="s5">0x3F</span>];</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> output[theIndex + <span class="s5">1</span>] = table[(value >> <span class="s5">12</span>) & <span class="s5">0x3F</span>];</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> output[theIndex + <span class="s5">2</span>] = (i + <span class="s5">1</span>) < length ? table[(value >> <span class="s5">6</span>) & <span class="s5">0x3F</span>] : <span class="s5">'='</span>;</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> output[theIndex + <span class="s5">3</span>] = (i + <span class="s5">2</span>) < length ? table[(value >> <span class="s5">0</span>) & <span class="s5">0x3F</span>] : <span class="s5">'='</span>;</span></i></div>
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;"> }</span></i></div>
<div class="p2">
<i><span style="font-family: Times, Times New Roman, serif;"> </span></i></div>
<div class="p5">
<i><span style="font-family: Times, Times New Roman, serif;"><span class="s4"> </span><span class="s2">return</span><span class="s4"> [[</span><span class="s1">NSString</span><span class="s4"> </span>alloc<span class="s4">] </span>initWithData<span class="s4">:data </span>encoding<span class="s4">:</span>NSASCIIStringEncoding<span class="s4">];</span></span></i></div>
<br />
<div class="p1">
<i><span style="font-family: Times, Times New Roman, serif;">}</span></i></div>
<div class="p1">
<i><b><span style="font-family: Verdana, sans-serif;"><br /></span></b></i></div>
<div class="p1">
<span style="font-family: Verdana, sans-serif;">The above function will convert the NSData into base64 string which you can send in your SOAP service as a parameter. And if you are finding it difficult to work with SOAP services then <a href="http://iphonebyradix.blogspot.in/2011/04/working-with-webservices.html" target="_blank">here's a link to my old tutorial on SOAP service.</a></span></div>
<div class="p1">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="p1">
<span style="font-family: Verdana, sans-serif;">Happy iCoding and have a great day.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif; font-size: 14px;">Join Us on </span><a href="https://www.facebook.com/groups/iPhoneByRadix/" style="font-family: Verdana, sans-serif; font-size: 14px;" target="_blank">Facebook</a></div>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com4tag:blogger.com,1999:blog-5601914985162740511.post-81272424461204354582013-07-04T04:20:00.001-07:002013-08-26T06:07:17.973-07:00How to jailbreak iOS device<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="p1">
<span style="font-family: Verdana, sans-serif;">The <b>author</b> of this post is my friend <a href="https://www.facebook.com/faisal.mohd28" target="_blank">Faisal Mohd</a>, he is one "<b>TECH GEEK</b>" when it comes to Mobile Technologies and he came up with this article on how do you jailbreak the ios device so i would like to thank him for sharing his knowledge with us. </span></div>
<div class="p1">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="p1">
<span style="font-family: Verdana, sans-serif;">And yes if you have any questions or queries feel free to post it as a comment or via mail or on our <a href="https://www.facebook.com/groups/iPhoneByRadix/" target="_blank">Facebook group</a>.</span></div>
<div class="p1">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="p1" style="text-align: center;">
<span style="font-family: Verdana, sans-serif; font-size: large;"><b>How to jailbreak an iOS device</b></span></div>
<div class="p1">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="p1">
<span style="font-family: Verdana, sans-serif;">The untethered jailbreak, a gateway to a whole new world of apps and tweaks and themes and what not is out there, how to do it?</span></div>
<div class="p1">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="p1">
<span style="font-family: Verdana, sans-serif;">Follow these simple steps to jailbreak iOS 6 and enjoy all the goodness of Cydia.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;"><b>Requirements</b></span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">1) An iOS device running iOS 6.x</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">2) A desktop or a laptop running either Windows(XP minimum), Mac OS X(10.5 minimum) or Linux.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">3) A USB cable to connect your iDevice to your desktop/laptop. And needless to say, iTunes.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;"><b>The Procedure</b></span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">1) If your device is not updated and you were waiting for the jailbreak, now is the time when you update your iOS. Connect your iDevice to iTunes and update it. Once it is updated, eject your iDevice and close iTunes. Work of iTunes is finished now.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">2) Once updated, download the jailbreaking software developed by the evad3rs from <a href="http://evasi0n.com/" target="_blank">here</a> .</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">3) Connect your iPhone to your desktop/laptop again and see to it that iTunes is not open as it can cause unwanted errors.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">4) Open the jailbreaking application. You will see a button which says “Jailbreak”. Press that button and let the process begin to jailbreak iOS 6.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">5) After some time, you will be asked to unlock your device and once you do that, you will see an icon which for your information will be the icon of the developers, the evad3rs. Tap that icon once and leave it. The process will resume again.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">6) Once the process is complete, the place where you saw the “Jailbreak” button, at the very same place you will now see “Exit”. Press that and you are almost done with jailbreaking iOS 6.x.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">7) The last and the final step is, you will see the Cydia icon in your iPhone, Open it and let Cydia run its setup. Once that is complete, you are done.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">8) Congrats. You now have an untethered jailbreak iOS 6 running on your iDevice. Enjoy.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">Do let us know your comments or queries about how to jailbreak iOS 6. Be it a problem during the process or any general query.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;"><b>Important</b></span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">1) It is highly recommended for you to take a backup of your device before continuing with the following procedure.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">2) If you have a lock pass code, please disable it. This is an advice from the developers before you jailbreak iOS 6.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">3) If by some bad luck, though I sincerely hope there is none, but if in the middle of the process something goes wrong or the process is stuck, don’t panic. Just restart the program or if necessary, reboot your device and do it one more time.</span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="p2">
<span style="font-family: Verdana, sans-serif;">Happy iCoding and have a great day while you jailbreak.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif; font-size: 14px;">Join Us on </span><a href="https://www.facebook.com/groups/iPhoneByRadix/" style="font-family: Verdana, sans-serif; font-size: 14px;" target="_blank">Facebook</a></div>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com3tag:blogger.com,1999:blog-5601914985162740511.post-88296957840047765132013-06-10T21:43:00.001-07:002013-08-26T06:07:29.235-07:00New features of iOS 7<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;">The new features introduced in the iOS 7 are as follows :</span></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;"><br /></span></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;">1. <b>Control Center :</b> Control Center gives you quick access to the controls and apps you
always seem to need right this second. Just swipe up from any screen including the Lock screen to do things like switch to Airplane mode,
turn Wi-Fi on or off, or adjust the brightness of your display. You can
even shine a light on things with a new flashlight. Never has one swipe
given you so much control.</span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div class="separator" style="clear: both; font-family: Verdana,sans-serif; text-align: center;">
<span style="font-size: small;"><a href="http://2.bp.blogspot.com/-xHLv4gz6iu8/UbaghQg1tWI/AAAAAAAABC8/aJq5i-IG9mo/s1600/shared_controlcenter_endframe.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-xHLv4gz6iu8/UbaghQg1tWI/AAAAAAAABC8/aJq5i-IG9mo/s320/shared_controlcenter_endframe.jpg" width="181" /></a></span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;">2. <b>Notification Center :</b> Notification Center lets you know about new mail, missed calls, to-dos
that need doing, and more. And a new feature called Today gives you a
convenient summary of, well, today. One glance at your iPhone and you’ll
know if it’s a certain someone’s birthday, if you’ll need an umbrella,
or if traffic will slow down your commute. You’ll even get a heads-up on
tomorrow. You can access Notification Center from any screen, including
the Lock screen. Just swipe down. And get up to speed.</span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div class="separator" style="clear: both; font-family: Verdana,sans-serif; text-align: center;">
<span style="font-size: small;"><a href="http://3.bp.blogspot.com/-XsA1my64g0g/Ubag7tzQhFI/AAAAAAAABDI/nuht-0IVqxQ/s1600/notificationcenter_missed_screen.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-XsA1my64g0g/Ubag7tzQhFI/AAAAAAAABDI/nuht-0IVqxQ/s320/notificationcenter_missed_screen.jpg" width="180" /></a></span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;">3. <b>Multitasking :</b> Multitasking has always been a smart way to switch between apps. Now
it’s even smarter. Because iOS 7 learns when you like to use your apps
and can update your content before you launch them. So if you tend to
check your favorite social app at 9:00 a.m. every day, your feed will be
ready and waiting for you. That’s multitasking in iOS 7. It knows what
you want to do before you do.</span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div class="separator" style="clear: both; font-family: Verdana,sans-serif; text-align: center;">
<span style="font-size: small;"><a href="http://3.bp.blogspot.com/-u7MUeZNnZDI/UbaihRcfnOI/AAAAAAAABDc/P4P5n5E_epM/s1600/shared_multitasking_endframe.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-u7MUeZNnZDI/UbaihRcfnOI/AAAAAAAABDc/P4P5n5E_epM/s320/shared_multitasking_endframe.jpg" width="181" /></a></span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;"> 4. <b>Camera :</b> Camera in iOS 7 puts all your shooting formats — still, video, panorama,
and now square — front and center. With a swipe, you can capture what
you want the way you want. Fast. And new filters let you do even more with each image. Give it a retro feel. Dial up the contrast.<br /> Or go black and white. Artistic license is all yours.</span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;"><a href="http://3.bp.blogspot.com/-BgLG1OPVohc/Ubai8_Ryz6I/AAAAAAAABDs/QYbZ93vKm28/s1600/camera_video_screen.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-BgLG1OPVohc/Ubai8_Ryz6I/AAAAAAAABDs/QYbZ93vKm28/s320/camera_video_screen.jpg" width="180" /></a> </span></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;"><a href="http://3.bp.blogspot.com/-CUbMt-jKlw0/Ubai7YW4CwI/AAAAAAAABDk/lCWmQZApCOA/s1600/camera_pano_screen.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-CUbMt-jKlw0/Ubai7YW4CwI/AAAAAAAABDk/lCWmQZApCOA/s320/camera_pano_screen.jpg" width="180" /></a></span> <span style="font-size: small;"><br /></span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;"><br /></span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;">5. <b>Photos</b> : Now there are faster, easier, and more delightful ways to scroll down
memory lane. Introducing Collections, Moments, and Years smart
groupings of your photos and videos based on time and place. Tap Years
and all your shots fill the screen. Each year holds Collections, like
your trip to San Francisco. And in that Collection are distinct Moments
photos from Union Square, videos from AT&T Park. So you can find a
shot from whenever, wherever, in no time.</span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;">6. <b>Airdrop</b> : Sending a photo or a document to someone via text or email is fine. But
if that someone is right next to you, a text or an email suddenly feels
like too many steps. Enter AirDrop for iOS. It lets you quickly and
easily share photos, videos, contacts and anything else from any app
with a Share button. Just tap Share, then select the person you want to
share with. AirDrop does the rest using Wi-Fi and Bluetooth. No setup
required. And transfers are encrypted, so what you share
is highly secure.</span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;"><a href="http://4.bp.blogspot.com/-gJhOGBc-Kx8/UbakB0movFI/AAAAAAAABEE/OTSV_UtFlCI/s1600/airdrop_received_screen.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/-gJhOGBc-Kx8/UbakB0movFI/AAAAAAAABEE/OTSV_UtFlCI/s320/airdrop_received_screen.jpg" width="180" /></a> </span></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;"><a href="http://1.bp.blogspot.com/-AJL8thoE-tU/UbakAuisXII/AAAAAAAABD8/GQEcElrBqZA/s1600/airdrop_send_screen.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-AJL8thoE-tU/UbakAuisXII/AAAAAAAABD8/GQEcElrBqZA/s320/airdrop_send_screen.jpg" width="180" /></a> </span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;">7. <b>iTunes Radio :</b> iTunes Radio features streaming radio stations you’ll love from day one —
from the best selection of music. The more you listen, the more
personalized it becomes. And it’s available on your iPhone, iPad, iPod
touch, Mac, PC, and Apple TV for free. It’s radio re-imagined.</span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
</div>
<div class="separator" style="clear: both; font-family: Verdana,sans-serif; text-align: center;">
<span style="font-size: small;"><a href="http://4.bp.blogspot.com/-QCBL38O2p4M/UbaklFdzQ4I/AAAAAAAABEM/ejTaCiT1UlQ/s1600/itunesradio_mystations.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/-QCBL38O2p4M/UbaklFdzQ4I/AAAAAAAABEM/ejTaCiT1UlQ/s320/itunesradio_mystations.jpg" width="180" /></a></span></div>
<div style="font-family: Verdana,sans-serif;">
</div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<a href="http://3.bp.blogspot.com/-81RoVZgxNSY/UbalDoHEXLI/AAAAAAAABEU/uJgvm25FIxI/s1600/siri_ask_screen.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-81RoVZgxNSY/UbalDoHEXLI/AAAAAAAABEU/uJgvm25FIxI/s320/siri_ask_screen.jpg" width="180" /></a><span style="font-size: small;"> </span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;">8. <b>Siri :</b> </span>Siri in iOS 7 gets a new look, a new sound, and new capabilities. It
features a redesigned interface that fades into view on top of
whatever’s on your screen. A more natural speech pattern in a new
female or male voice is even easier to understand. Siri is faster at
answering questions and checks more sources, such as Bing, Wikipedia,
and Twitter. And it takes on extra tasks, like returning calls, playing
voicemail, controlling <span class="nowrap">iTunes Radio, and more.</span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
</div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
</div>
<div style="font-family: Verdana,sans-serif;">
</div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<a href="http://3.bp.blogspot.com/-yFJq1biVstU/UbalW0P4_GI/AAAAAAAABEc/kR7rOsnQMGU/s1600/appstore_popular_screen.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-yFJq1biVstU/UbalW0P4_GI/AAAAAAAABEc/kR7rOsnQMGU/s320/appstore_popular_screen.jpg" width="180" /></a><span class="nowrap"> </span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span class="nowrap">9. <b>App Store :</b> </span>Apps Near Me — a new feature of the App Store in iOS 7 — shows you a
collection of popular apps relevant to your current location. And a new
Kids category spotlights the best apps for children based on age. iOS 7
also keeps your apps up to date automatically, so you don’t have to
bother. Another bonus of automatic updates: no more little red badge
begging for your attention.</div>
<div style="font-family: Verdana,sans-serif;">
<span class="nowrap"><br /></span></div>
<div style="font-family: Verdana,sans-serif;">
<span class="nowrap"></span></div>
<div style="font-family: Verdana,sans-serif;">
</div>
<div style="font-family: Verdana,sans-serif;">
<a href="http://4.bp.blogspot.com/-xz_pRrYTh5Y/UbamUvTm-wI/AAAAAAAABEs/tmNkznrmenM/s1600/find_my_iphone_erase_screen.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><br /></a></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<a href="http://4.bp.blogspot.com/-qp93FoVoR5Q/UbamQIJHnwI/AAAAAAAABEk/V5T4lJc-gl4/s1600/find_my_iphone_lost_screen.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/-qp93FoVoR5Q/UbamQIJHnwI/AAAAAAAABEk/V5T4lJc-gl4/s320/find_my_iphone_lost_screen.jpg" width="180" /></a><span class="nowrap"> </span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span class="nowrap">10. <b>Find my iPhone :</b> </span>Losing your iPhone feels lousy. Thankfully, Find My iPhone can help you
get it back. But if it looks like that’s not going to happen, new
security features in iOS 7 make it harder for anyone who’s not you to
use or sell your device. Now turning off Find My iPhone or erasing your
device requires your Apple ID and password. Find My iPhone can also
continue to display a custom message, even after your device is erased.
And your Apple ID and password are required before anyone can reactivate
it. Which means your iPhone is still your iPhone. No matter where it is.</div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
</div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;"> </span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;">11. <b>iWork for iCloud</b> : </span>iWork has always been the best way to be productive on the Mac. And
iWork for iOS made it easy to create beautiful documents on iPad and
iPhone. With iWork for iCloud we’re bringing Pages, Numbers, and Keynote
to the web on Mac and PC. And thanks to iCloud, your work is always
up to date on all your devices.</div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div class="separator" style="clear: both; font-family: Verdana,sans-serif; text-align: center;">
<a href="http://1.bp.blogspot.com/-Vh6srL6rFeY/Ubanpq69nqI/AAAAAAAABE8/bCdtu5jeRjI/s1600/hero.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="209" src="http://1.bp.blogspot.com/-Vh6srL6rFeY/Ubanpq69nqI/AAAAAAAABE8/bCdtu5jeRjI/s640/hero.jpg" width="640" /></a></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
12. <b>Developer API </b>: <span itemprop="articleBody description text">Apple stated at Monday’s
keynote that developers would gain access to over 1500 new developer
APIs in iOS 7. Given that most of Macworld’s readers aren’t highly
interested in this nitty-gritty, however, here are a few interesting
ones.</span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span itemprop="articleBody description text"><br /></span></div>
<div class="separator" style="clear: both; font-family: Verdana,sans-serif; text-align: center;">
<a href="http://4.bp.blogspot.com/-rRl8I1UiDbw/UbapXbNm0oI/AAAAAAAABFM/uSygQnyQUDQ/s1600/ios7-sdk-100041372-large.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-rRl8I1UiDbw/UbapXbNm0oI/AAAAAAAABFM/uSygQnyQUDQ/s400/ios7-sdk-100041372-large.png" width="400" /></a></div>
<div style="font-family: Verdana,sans-serif;">
<span itemprop="articleBody description text"><br /></span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<strong>iBeacons</strong>: Apple’s iBeacons, in technical speak, use the Bluetooth Low Energy profile for <a href="http://sensorsandsystems.com/article/columns/6526-micro-location-overview-beyond-the-metreto-the-centimetre.html">microlocation</a>. In plain speak, this means your iOS device may be able to use <a href="https://www.bluetooth.org/en-us/specification/adopted-specifications">Bluetooth 4.0 devices</a>
to collect precise location data—like your location inside of a
building—even though those devices don’t have a GPS system installed.
That said, I don’t claim to be a Bluetooth or microlocation scholar, and
Apple’s APIs are under the confidentiality agreement, so the actual
implementation might be slightly different.<br />
<br />
<strong>Background downloading</strong>: We heard mention of this during
the keynote: In short, it allows your apps to download information for
you at certain times of day, even if they’re not actively running. In
practice, this might allow your Twitter feed to download and cache
tweets for you to read before you hop on the subway or sit in an
airplane, sans Internet access.<br />
<br />
<strong>Third-party game controllers</strong>: There are a few pseudo third-party controllers for iOS games already (the <a href="http://www.ionaudio.com/products/details/icade">iCade</a>,
for one), but it looks like Apple plans to offer more expansive support
for those wishing to connect third-party controllers to their iOS
devices.
<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;"><b>Source :</b> <a href="http://www.apple.com/ios/ios7/features/">http://www.apple.com/ios/ios7/features/</a></span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;">I hope that i have covered few interesting features of the new iOS7 incase if i have missed any feature feel free to mention it as a comment or you may post the link</span></div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: small;">Happy iCoding and have a great day. </span><br />
<span style="font-size: small;"><br /></span>
<span style="font-size: 14px;">Join Us on </span><a href="https://www.facebook.com/groups/iPhoneByRadix/" style="font-size: 14px;" target="_blank">Facebook</a></div>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com14tag:blogger.com,1999:blog-5601914985162740511.post-71218662246120632542013-04-16T23:56:00.000-07:002013-08-26T06:07:45.395-07:00Understanding the concept of JSON <div dir="ltr" style="text-align: left;" trbidi="on">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Revision>0</o:Revision>
<o:TotalTime>0</o:TotalTime>
<o:Pages>1</o:Pages>
<o:Words>394</o:Words>
<o:Characters>2246</o:Characters>
<o:Company>QUAGNITIA</o:Company>
<o:Lines>18</o:Lines>
<o:Paragraphs>5</o:Paragraphs>
<o:CharactersWithSpaces>2635</o:CharactersWithSpaces>
<o:Version>14.0</o:Version>
</o:DocumentProperties>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>JA</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="276">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]-->
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<!--StartFragment-->
<br />
<div class="MsoNormal">
<span style="font-family: Verdana;">When you were a child you used to request chocolates from your dad and he used
to buy it for you, really childhood memories are awesome.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">In todays
session we are going to look closely at JSON, which happens to be the preferred
option that web developers are using as an output response.<br />
<br />
Well consider your childhood memories for a second, your iPhone is the child
who will request chocolates (i.e. data for a particular request) from the
server who’s the dad here and the server (dad) will do the required processing
for the requested chocolate (data) and will give the chocolate to the child
(iPhone), this is what happens in all the iOS application that have server
request involved.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">The
processing on the iPhone should be fast, your user should not wait long to see
his requested data, so it all depends upon how quickly you can parse (read) the
response given by the server and display it in the iPhone UI (user interface).<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Keeping
in mind that we are working with an environment where speed is the key, JSON
provides a better solution in parsing the response returned by the server.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">JSON
(JavaScript Object Notation) it’s a response format, which is composed of key
value pairs, you supply a key and get the value from it just like you do with
NSDictionary class.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">A JSON
response may contain a single dictionary with array or a single array with
multiple dictionaries or a single dictionary with some keys or all of them, the
structure of the response depends upon what you have requested from the server,
so you can say that JSON is a container of your requested data from the server
but in key value format.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">You
request your query to the server with the help of NSURLConnection class which
later provides you with NSData object from the server in it’s delegate method
named “connection did finish”, this NSData object is your actual response which
you have received for the request you made, but you cannot read this response
since it’s in bytes.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br />
In order to work with JSON we have a class called as <a href="http://developer.apple.com/library/ios/#documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html" target="_blank">NSJSONSerialization</a> which
helps us to convert the NSData object into actual readable JSON key-value pair
type, earlier we used a third party library called as the <a href="https://github.com/stig/json-framework/" target="_blank">SBJSON</a>.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">You might
have a question here like how can we identify if the JSON format is a array or
dictionary, well the answer is very simple if the JSON format contains a “{} “
curly bracket then its clear that it’s a dictionary and if the JSON response
has a square bracket “[]” then it’s an array.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Few years ago i worked on a project which had a really nice and a complicated JSON structure which i would like to share with you, hope this will help you in the learning curve.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><b>Image 1 :</b> JSON is a container of your data which you get from the server.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-efN8m7HU9pc/UW5ERIIOyZI/AAAAAAAABBo/e3Itnf5kSMA/s1600/SingleJSON.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-efN8m7HU9pc/UW5ERIIOyZI/AAAAAAAABBo/e3Itnf5kSMA/s1600/SingleJSON.png" /></a></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Look at the above image the response format is in curly bracket and hence we can say that it's a dictionary type, and if the response was an array then it contained square bracket [].</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><b>Image 2:</b> After expanding the JSON tag i can see that my response contains two set of arrays and one key named status.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-WzKZMC83s5o/UW5ExAm36rI/AAAAAAAABBw/u_P8OUGiVjI/s1600/JSON_WithArrays.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="67" src="http://1.bp.blogspot.com/-WzKZMC83s5o/UW5ExAm36rI/AAAAAAAABBw/u_P8OUGiVjI/s400/JSON_WithArrays.png" width="400" /></a></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><b>Image 3:</b> After expanding the result tag which is an array you can see that it contains a list of twenty dictionaries within itself at various index.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-qC9NAXwEYQ0/UW5FKHTB8UI/AAAAAAAABB4/naVM_Y6XB0s/s1600/Arraywithdict.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="402" src="http://2.bp.blogspot.com/-qC9NAXwEYQ0/UW5FKHTB8UI/AAAAAAAABB4/naVM_Y6XB0s/s640/Arraywithdict.png" width="640" /></a></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"> </span><span style="font-family: Verdana;">Let's expand a dictionary from the result tag and see what it contains</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><b>Image 4 :</b> The dictionary present at the 0th index of the result tag array again contains multiple objects of various types</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-FCnY0xlbzNY/UW5Fz8V6JJI/AAAAAAAABCA/YHI_hT6oqBE/s1600/Dictionary_withmultiple_items.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="446" src="http://1.bp.blogspot.com/-FCnY0xlbzNY/UW5Fz8V6JJI/AAAAAAAABCA/YHI_hT6oqBE/s640/Dictionary_withmultiple_items.png" width="640" /></a></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">By looking at the above structure we can conclude that a JSON is a container of our data which we request from the server and each item present in the container can have multiple items of their own in key-value pair.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">I use a
link to identify and study the JSON response form the server so that I can code
accordingly hope this link will help you to </span><a href="http://jsonviewer.stack.hu/" style="font-family: Verdana;" target="_blank">Online JSON Reader</a><span style="font-family: Verdana;">.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">I hope that after reading this post your concepts of JSON will be more clear and you can now identify the JSON structure and code as per your server response.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">You may enter your queries or suggestions via mail or comments and i will revert back to you, until then Happy iCoding and have a great day.</span><br />
<br />
<span style="font-family: Verdana, sans-serif; font-size: 14px;">Join Us on </span><a href="https://www.facebook.com/groups/iPhoneByRadix/" style="font-family: Verdana, sans-serif; font-size: 14px;" target="_blank">Facebook</a></div>
<!--EndFragment--></div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com7tag:blogger.com,1999:blog-5601914985162740511.post-33401822577562297212013-03-20T03:32:00.000-07:002013-08-26T06:07:53.791-07:00Sqlite Database part 4 : The Final Code<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">Before starting with this post i request you to read previous post related to sqlite</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><a href="http://iphonebyradix.blogspot.in/2013/01/steps-to-create-sqlite-database-for-ios.html" target="_blank">How to create Sqlite Database</a>.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<a href="http://iphonebyradix.blogspot.in/2013/03/sqlite-database-part-2-copying-database_1.html" target="_blank"><span style="font-family: Verdana, sans-serif;">How to copy database from bundle to document directory</span></a><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<a href="http://iphonebyradix.blogspot.in/2013/03/sqlite-database-part-3-inserting.html" target="_blank"><span style="font-family: Verdana, sans-serif;">How to insert record in sqlite database</span></a><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">If you have already done that then here's <a href="https://github.com/KRadix/DBDemo" target="_blank">the code for the database demo</a> that we have learned and i hope this helps you out in understanding the sqlite database.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Until then happy iCoding and have a great day.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif; font-size: 14px;">Join Us on </span><a href="https://www.facebook.com/groups/iPhoneByRadix/" style="font-family: Verdana, sans-serif; font-size: 14px;" target="_blank">Facebook</a></div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com1tag:blogger.com,1999:blog-5601914985162740511.post-78607975935214804372013-03-01T23:22:00.001-08:002013-03-01T23:22:34.178-08:00Sqlite Database part 3 : Inserting Records in Database<div dir="ltr" style="text-align: left;" trbidi="on">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Revision>0</o:Revision>
<o:TotalTime>0</o:TotalTime>
<o:Pages>1</o:Pages>
<o:Words>542</o:Words>
<o:Characters>3090</o:Characters>
<o:Company>QUAGNITIA</o:Company>
<o:Lines>25</o:Lines>
<o:Paragraphs>7</o:Paragraphs>
<o:CharactersWithSpaces>3625</o:CharactersWithSpaces>
<o:Version>14.0</o:Version>
</o:DocumentProperties>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>JA</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="276">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]-->
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<!--StartFragment-->
<br />
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Before beginning this post I hope that you have read my
earlier two posts on sqlite, if not then please have a look at them first and
then you may come here and if you have already done that then lets begin.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;"><a href="http://iphonebyradix.blogspot.in/2013/01/steps-to-create-sqlite-database-for-ios.html" target="_blank">Post one : Create an Sqlite database for your project.</a></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;"><a href="http://iphonebyradix.blogspot.in/2013/03/sqlite-database-part-2-copying-database_1.html" target="_blank">Post two : Copy Sqlite file in the document directory.</a></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">In this post we will learn on how to insert data into sqlite
database, assuming that you have read my earlier posts I shall begin with the
insertion part.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;"><b>Step 1:</b> We have created a function named
insertEmployeeRecord in the DatabaseHelper.h file and now its time to give body
to that function. Give below is the code for the same, the function returns
Boolean value indicating whether the data is successfully inserted in the
database or not.<o:p></o:p></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div style="color: #0b831b;">
<span style="font-family: Verdana, sans-serif;">// inserts the new employee record</span></div>
<span style="font-family: Verdana, sans-serif;">- (<span style="color: #b72e9f;">BOOL</span>)insertEmployeeRecordWithEmployeeName:(<span style="color: #703fa6;">NSString</span>*)empname andEmployeeDepartment:(<span style="color: #703fa6;">NSString</span>*)empdept andEmployeeImage:(<span style="color: #703fa6;">UIImage</span>*)empImage</span><br />
<span style="font-family: Verdana, sans-serif;">{</span><br />
<span style="font-family: Verdana, sans-serif;"> <span style="color: #b72e9f;">if</span> (empname.<span style="color: #3e207e;">length</span>!=<span style="color: #2f30d3;">0</span> && empdept.<span style="color: #3e207e;">length</span>!=<span style="color: #2f30d3;">0</span>)</span><br />
<span style="font-family: Verdana, sans-serif;"> {</span><br />
<div style="color: #0b831b;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span>// checking for any previously open connection which was not closed</span></div>
<div style="color: #34595d;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> [</span><span style="color: #b72e9f;">self</span><span style="color: black;"> </span>closeanyOpenConnection<span style="color: black;">];</span></span></div>
<div style="min-height: 25px;">
<span style="font-family: Verdana, sans-serif;"> </span></div>
<div style="color: #0b831b;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span>// preparing my sqlite query</span></div>
<div style="color: #cc2d24;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span><span style="color: #b72e9f;">const</span><span style="color: black;"> </span><span style="color: #b72e9f;">char</span><span style="color: black;"> *sqliteQuery = </span>"insert into EmployeeRecord(EmpName,EmpDept,EmpImage) values(?,?,?)"<span style="color: black;">;</span></span></div>
<div style="min-height: 25px;">
<span style="font-family: Verdana, sans-serif;"> </span></div>
<span style="font-family: Verdana, sans-serif;"> <span style="color: #703fa6;">sqlite3_stmt</span> *sqlstatement = <span style="color: #b72e9f;">nil</span>;</span><br />
<div style="min-height: 25px;">
<span style="font-family: Verdana, sans-serif;"> </span></div>
<span style="font-family: Verdana, sans-serif;"> <span style="color: #b72e9f;">if</span> (<span style="color: #3e207e;">sqlite3_prepare_v2</span>(<span style="color: #528186;">databaseReference</span>, sqliteQuery, -<span style="color: #2f30d3;">1</span>, &sqlstatement, <span style="color: #b72e9f;">NULL</span>)==<span style="color: #76482e;">SQLITE_OK</span> )</span><br />
<span style="font-family: Verdana, sans-serif;"> {</span><br />
<span style="font-family: Verdana, sans-serif;"> <span style="color: #3e207e;">sqlite3_bind_text</span>(sqlstatement, <span style="color: #2f30d3;">1</span>, [empname <span style="color: #3e207e;">UTF8String</span>], -<span style="color: #2f30d3;">1</span>, <span style="color: #76482e;">SQLITE_TRANSIENT</span>);</span><br />
<span style="font-family: Verdana, sans-serif;"> <span style="color: #3e207e;">sqlite3_bind_text</span>(sqlstatement, <span style="color: #2f30d3;">2</span>, [empdept <span style="color: #3e207e;">UTF8String</span>], -<span style="color: #2f30d3;">1</span>, <span style="color: #76482e;">SQLITE_TRANSIENT</span>);</span><br />
<div style="min-height: 25px;">
<span style="font-family: Verdana, sans-serif;"> </span></div>
<div style="color: #0b831b;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span>// You need to convert the image data into NSData first</span></div>
<span style="font-family: Verdana, sans-serif;"> <span style="color: #703fa6;">NSData</span> *imgData = [<span style="color: #703fa6;">NSData</span> <span style="color: #3e207e;">dataWithData</span>:<span style="color: #3e207e;">UIImagePNGRepresentation</span>(empImage)];</span><br />
<div style="min-height: 25px;">
<span style="font-family: Verdana, sans-serif;"> </span></div>
<div style="color: #0b831b;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span>// insert the binary representation of the byte data into the database</span></div>
<span style="font-family: Verdana, sans-serif;"> <span style="color: #3e207e;">sqlite3_bind_blob</span>(sqlstatement, <span style="color: #2f30d3;">3</span>, [imgData <span style="color: #3e207e;">bytes</span>], [imgData <span style="color: #3e207e;">length</span>], <span style="color: #76482e;">SQLITE_TRANSIENT</span>);</span><br />
<div style="min-height: 25px;">
<span style="font-family: Verdana, sans-serif;"> </span></div>
<div style="color: #0b831b;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span>// executes the sql statement with the data you need to insert in the db</span></div>
<span style="font-family: Verdana, sans-serif;"> <span style="color: #3e207e;">sqlite3_step</span>(sqlstatement);</span><br />
<div style="min-height: 25px;">
<span style="font-family: Verdana, sans-serif;"> </span></div>
<div style="color: #0b831b;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span>// clearing the sql statement</span></div>
<span style="font-family: Verdana, sans-serif;"> <span style="color: #3e207e;">sqlite3_finalize</span>(sqlstatement);</span><br />
<div style="color: #0b831b;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span>//closing the database after the query execution</span></div>
<div style="color: #528186;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span><span style="color: #3e207e;">sqlite3_close</span><span style="color: black;">(</span>databaseReference<span style="color: black;">);</span></span></div>
<div style="min-height: 25px;">
<span style="font-family: Verdana, sans-serif;"> </span></div>
<span style="font-family: Verdana, sans-serif;"> <span style="color: #b72e9f;">return</span> <span style="color: #b72e9f;">YES</span>;</span><br />
<span style="font-family: Verdana, sans-serif;"> }</span><br />
<span style="font-family: Verdana, sans-serif;"> <span style="color: #b72e9f;">else</span></span><br />
<span style="font-family: Verdana, sans-serif;"> {</span><br />
<span style="font-family: Verdana, sans-serif;"> <span style="color: #b72e9f;">return</span> <span style="color: #b72e9f;">NO</span>;</span><br />
<span style="font-family: Verdana, sans-serif;"> }</span><br />
<span style="font-family: Verdana, sans-serif;"> }</span><br />
<div style="color: #b72e9f;">
<span style="font-family: Verdana, sans-serif;"><span style="color: black;"> </span>return<span style="color: black;"> </span>NO<span style="color: black;">;</span></span></div>
<span style="font-family: Verdana, sans-serif;">}</span><br />
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;"><b>Code Explanation:</b> Before beginning with any DB operation I
always make sure that all my previous db connections are closed which is done
with the help of closeanyOpenConnection function.<br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Next I prepare my sqlite insert query with the help of a
const character pointer, the main function for insertion or any particular
operation is the sqlite api named sqlite3_prepare_v2 this function returns an
integer value which indicates whether
your sql operation will be carried forward or whether it will be stopped, </span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">You sql operation can stop due to reasons like if you have written some wrong sql query or
your database might not have been copied in the document directory, this
function returns zero for successful operation i.e. SQLITE_OK and it returns 1
for failure which is indicated by
SQLITE_ERROR<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">The function sqlite3_prepare_v2 takes few parameters that
are given as below<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-IEr1_15Y1ao/UTGk-UM8NcI/AAAAAAAABBY/TVCc7-ON4uo/s1600/sqliteprep.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="86" src="http://4.bp.blogspot.com/-IEr1_15Y1ao/UTGk-UM8NcI/AAAAAAAABBY/TVCc7-ON4uo/s400/sqliteprep.png" width="400" /></a></div>
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Now its time to insert your data based upon the data
type of your columns, my first two columns are of text type so I will be using
sqlite3_bind_text function, which takes five parameters:<o:p></o:p></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<i><span style="color: #3e207e; font-family: Verdana, sans-serif;">sqlite3_bind_text</span><span style="font-family: Verdana, sans-serif;">(sqlstatement, </span><span style="color: #2f30d3; font-family: Verdana, sans-serif;">1</span><span style="font-family: Verdana, sans-serif;">, [empname </span><span style="color: #3e207e; font-family: Verdana, sans-serif;">UTF8String</span><span style="font-family: Verdana, sans-serif;">], -</span><span style="color: #2f30d3; font-family: Verdana, sans-serif;">1</span><span style="font-family: Verdana, sans-serif;">,</span><span style="font-family: Verdana, sans-serif;"> </span><span style="color: #76482e; font-family: Verdana, sans-serif;">SQLITE_TRANSIENT</span><span style="font-family: Verdana, sans-serif;">);</span></i><br />
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;">1.<b>sqlstatement</b> : This is the pointer of
sqlite3_stmt which will carry the statement which we want to execute.<o:p></o:p></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;">2.<b>Column Number</b>: This is the column number into
which you want to insert the data and is the second parameter<o:p></o:p></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;">3.<b>Actual Value in UTF8 or C style:</b> This is the
actual value that you want to insert in the database, if its NSString then you
have to convert it into a UTF8 string.<o:p></o:p></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;">4.<b>Negative Integer one:</b> This value indicates the number of bytes in the value and if its negative then the length of the string is the number of bytes upto the first zero terminator.<o:p></o:p></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif;">5.<b>SQLITE_TRANSIENT:</b> Means that this content will
change in the coming future and SQlite should make its own private copy of the
content,moreover it’s like a destructor which would delete the value once the
insertion process has been done (this is what I understood till now)<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpLast">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">If there is integer data, which you want to insert, then you
may use the method <i>sqlite3_bind_int</i><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Adding binary data to the column is a piece of cake
sqlite has an inbilt method for doing this and its called as the sqlite3_bind_blob,
this statement is similar to your sqlite3_bind_text expect that it takes the
byte representation of your image with the image length.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div style="color: #0b831b;">
</div>
<i><span style="font-family: Verdana, sans-serif;">// You need to convert the image data into NSData first</span></i><br />
<i><span style="font-family: Verdana, sans-serif;"> <span style="color: #703fa6;">NSData</span> *imgData = [<span style="color: #703fa6;">NSData</span> <span style="color: #3e207e;">dataWithData</span>:<span style="color: #3e207e;">UIImagePNGRepresentation</span>(empImage)];</span></i><br />
<div style="min-height: 25px;">
<i><span style="font-family: Verdana, sans-serif;"><br /></span></i></div>
<div style="min-height: 25px;">
<i><span style="font-family: Verdana, sans-serif;">// insert the binary representation of the byte data into the database</span></i></div>
<i><span style="font-family: Verdana, sans-serif;"> <span style="color: #3e207e;">sqlite3_bind_blob</span>(sqlstatement, <span style="color: #2f30d3;">3</span>, [imgData <span style="color: #3e207e;">bytes</span>], [imgData <span style="color: #3e207e;">length</span>], <span style="color: #76482e;">SQLITE_TRANSIENT</span>);</span></i><br />
<br />
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Once you have set all the values for your database
columns then its time to execute your sqlite statement and this is done with
the help of a method named sqlite3_step which accepts the pointer of
sqlite3_stmt. </span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Once your sql statement is executed then you need to finalize it
with the help of sqlite3_finalize this step is important because it is used to
clear the sqlstatement which you have just created to insert record in the database also the finalize statement is important in case where you want to insert multiple records in a table<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">After that close the database connection with the help of
sqlite3_close<o:p></o:p></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div style="color: #0b831b;">
<span style="font-family: Verdana, sans-serif;"><i>//closing the database after the query execution</i></span></div>
<div style="color: #528186;">
<span style="font-family: Verdana, sans-serif;"><i><span style="color: black;"> </span><span style="color: #3e207e;">sqlite3_close</span><span style="color: black;">(</span>databaseReference<span style="color: black;">);</span></i></span></div>
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">With this
function you can now insert data into the sqlite database without breaking a
sweat, you may modify the function to do stuff as per your business logic and
if you are facing any issues then feel free to contact me I will help you out.<o:p></o:p></span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">I hope that i have cleared points on how to insert data in the sqlite database and if you are having any sort of queries then feel free to ask them via comments or emails</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">I will attach the copy of the code in the last tutorial of
sqlite where you may download the copy and check the app for yourself.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Until then Happy iCoding and have a great day.</span></div>
<!--EndFragment--></div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com8tag:blogger.com,1999:blog-5601914985162740511.post-68329727088831169522013-03-01T02:02:00.002-08:002013-03-03T23:25:05.542-08:00Sqlite Database part 2 : Copying the database file from project bundle to document directory<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">Before reading this part kindly have a look at my first post for sqlite <a href="http://iphonebyradix.blogspot.in/2013/01/steps-to-create-sqlite-database-for-ios.html" target="_blank">here</a>.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-TVzYWPzMos0/UTB3LHdpyLI/AAAAAAAABAs/OzdQmQ88Xdk/s1600/dylib.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="255" src="http://2.bp.blogspot.com/-TVzYWPzMos0/UTB3LHdpyLI/AAAAAAAABAs/OzdQmQ88Xdk/s320/dylib.png" width="320" /></a></div>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">To handle the database there is an in-build library that comes with xcode which is called as </span><b style="font-family: Verdana, sans-serif;">libsqlite3.0dylib</b><span style="font-family: Verdana, sans-serif;"> and if you are working with any database oriented project then in that case you need to first add this library into your project. </span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">To use this library you have to use <span style="color: purple;">#import<sqlite3.h> </span>in your header file. </span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Steps to add this library is similar to the way you add a framework into your project.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-AM0MiycVNI8/UTB3us9SZ9I/AAAAAAAABA0/OLiohrXPvFM/s1600/Lib.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="140" src="http://4.bp.blogspot.com/-AM0MiycVNI8/UTB3us9SZ9I/AAAAAAAABA0/OLiohrXPvFM/s400/Lib.png" width="400" /></a></div>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">In this post we will first create a class which will help us in performing the database operations. I will be adding an employee name and his corresponding department with his image, user may select the image from the iOS gallery by tapping on the image. </span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">The main focus of this post will be database oriented only hence i wont be showing you the UI part which you may see by downloading the source code and in case if you are facing any issues with the UI part feel free to ask me via mails or via comments.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">I have created an NSObject subclass named DatabaseHelper where i have wrote all the code for handling the database related operations, given below is an image displaying the list of functions in the DatabaseHelper.h file</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-tg21d9Q7iD8/UTBuui69MRI/AAAAAAAAA_8/AcfBPJZJYIk/s1600/Functions.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="310" src="http://3.bp.blogspot.com/-tg21d9Q7iD8/UTBuui69MRI/AAAAAAAAA_8/AcfBPJZJYIk/s400/Functions.png" width="400" /></a></div>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<span style="font-family: Verdana, sans-serif;">So as you may see from the above image the functions that i have declared that will assist me with data insertion with sqlite, the description about the function is mentioned as comments so that you can have a proper understanding regarding its role in the play.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>Note:</b> The database file present in your project bundle is just a copy from which you may read the data but not write new data into it, since its read only and hence inorder to add data in our sqlite file we need to copy this file (sqlite file) in the applications document directory from where we can not only read the data but as well write new data into it. </span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Hence before working with sqlite database you have to copy this file in the document directory of your application and then begin with reading or adding of data in the database.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>Document Directory :</b> This is a folder which is present in every iOS app, this folder contains some files related to your project which only your app can access.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Let's begin with the development process and see how to manage data with sqlite.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>Step 1 :</b> The first step is to copy the database file from your bundle or groups and files to the document directory and for that there are three functions that i have wrote which is given below</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>Function 1 : </b>This function wil help us in copying the database file from the bundle in the doc directory</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-aV-eXgNpHNk/UTBzxyW4gzI/AAAAAAAABAU/CO2LDkq2G4A/s1600/CopyDBFromBundle.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="314" src="http://3.bp.blogspot.com/-aV-eXgNpHNk/UTBzxyW4gzI/AAAAAAAABAU/CO2LDkq2G4A/s640/CopyDBFromBundle.png" width="640" /></a></div>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<b style="font-family: Verdana, sans-serif;">Code Explanation :</b><span style="font-family: Verdana, sans-serif;"> First i am checking if my sqlite file is present at document directory and then with the help of NSFileManager i am copying the sqlite file from my project bundle to it's new location i.e. document directory. The function returns boolean indicating whether the database file is copied in the doc directory or has failed in the process.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>Function 2 :</b> This function will get the location of the database file from the document directory</span><br />
<br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-uQNIuFtTA6c/UTBxU1Fz-XI/AAAAAAAABAI/JkoKO2CG3YI/s1600/DocDIrPath.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="128" src="http://1.bp.blogspot.com/-uQNIuFtTA6c/UTBxU1Fz-XI/AAAAAAAABAI/JkoKO2CG3YI/s640/DocDIrPath.png" width="640" /></a></div>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>Code Explanation :</b> The name of the database that i am using is called as "<b>AdventureWorks.sqlite</b>", documentDirectoryFolderLocation array contains the path of document directory for your application, and the retuned location from this function will be the new location for our database.</span><br />
<br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>Function 3 :</b> Will check if the db has been copied or if the operation has failed and will print the appropriate message in the Log.</span><br />
<br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-2y743CP6v2Q/UTB1Qqd_mMI/AAAAAAAABAg/kkbwjuubewg/s1600/createDBInstance.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="211" src="http://2.bp.blogspot.com/-2y743CP6v2Q/UTB1Qqd_mMI/AAAAAAAABAg/kkbwjuubewg/s400/createDBInstance.png" width="400" /></a></div>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>Code Explanation :</b> This function will make a call to the copyDatabaseFromBundletoDocumentDirectory and will return if the copying of the database operation has been success or has failed.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>Step 2: </b>After copying the database into the document directory i create a function which will close any open connection to the sqlite database before the execution of any new operation.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-oPv-RfUUzpI/UTB5fZJ75nI/AAAAAAAABBE/r9pZ1v8rhzY/s1600/ForceCloseOpenConnection.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="132" src="http://2.bp.blogspot.com/-oPv-RfUUzpI/UTB5fZJ75nI/AAAAAAAABBE/r9pZ1v8rhzY/s640/ForceCloseOpenConnection.png" width="640" /></a></div>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>Code Explanation :</b> The above code checks if any db connection is open with the help of sqlite3_open function and if a connection is open then it closes the connection with the help of sqlite3_close function which accepts the parameter of databaseReference which is the object of sqlite3.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<span style="font-family: Verdana, sans-serif;">I hope that you have understood the above steps we will have a look at rest of the steps in our next post where we will start adding and fetching records from the database.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">If you have any questions or queries regarding this post then feel free to ask me via comments or emails.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Happy iCoding and have a great day.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Move to the third part of tutorial on sqlite <a href="http://iphonebyradix.blogspot.in/2013/03/sqlite-database-part-3-inserting.html" target="_blank">here</a>.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com12tag:blogger.com,1999:blog-5601914985162740511.post-16042390958522161092013-01-17T04:48:00.001-08:002013-03-03T23:26:00.739-08:00Steps to create sqlite database for ios application<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-family: Verdana; text-align: left;">Most of
the application in the ios requires server interaction but there can be times
when you would like the application to store data locally. In
such conditions you can use sqlite or core data.</span></div>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">I already
have a post, which deals with core data, and hence in todays post we will be
having a look at the CURD (Create, Update, Read, Delete) operations using
sqlite database.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">SQLITE is
a light weighted database, which helps you to store your application related data tables in which you can store data and retrieve them with the help of SQL queries.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">In this
tutorial we will learn how to create the sqlite database with few tables in it
and in the next session we will use that database to perform CURD operations.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">There are various ways by which you could create database in your mac machine one of the most commonly method used is by using the terminal but the hurdle by using that approach is that if you miss out a command or type it wrong then you are stuck with the tons of error messages on your screen.<br /><br />The method that i follow to create sqlite DB for my applications is by using the Add-on provided by firefox browser which i feel is one of the most simplest way of creating an sqlite database for your application. By following the given steps you can create sqlite database for your iOS application.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><b>Step 1:</b>
Open Firefox browser and from the tools tab select Add-ons.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<a href="http://4.bp.blogspot.com/-jOqNjadulNk/UPfjwB90UhI/AAAAAAAAA7s/nuEOmlpomEY/s1600/Screen+Shot+2013-01-17+at+5.00.59+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://4.bp.blogspot.com/-jOqNjadulNk/UPfjwB90UhI/AAAAAAAAA7s/nuEOmlpomEY/s1600/Screen+Shot+2013-01-17+at+5.00.59+PM.png" /></a><span style="font-family: Verdana;"><br />
<br />
when you hit the Add-on button you will be navigated to the screen just like
the one given below</span><br />
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-cjCBqnbIZFI/UPfkLMTbcfI/AAAAAAAAA70/Qc9zNHj-YlI/s1600/Add_Ons.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="369" src="http://1.bp.blogspot.com/-cjCBqnbIZFI/UPfkLMTbcfI/AAAAAAAAA70/Qc9zNHj-YlI/s640/Add_Ons.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">Towards the right hand side of the screen you can see a search bar where you have to type the following keyword "SQlite Manager" and hit the enter keyboard button.</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">After doing that you will get a list of available add-ons from which you have to select the first one which says SQlite Manager the one which we are looking for, make sure you select the Available Add-ons section just like shown in the below image</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-PsjWSC0NaOA/UPflcMvwtkI/AAAAAAAAA8M/LDqNqMWYsCg/s1600/AvailableAdons.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="369" src="http://3.bp.blogspot.com/-PsjWSC0NaOA/UPflcMvwtkI/AAAAAAAAA8M/LDqNqMWYsCg/s640/AvailableAdons.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">Hit the install button given at the right hand side.</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-sNOoLM-Nd0Q/UPfm-yDXG1I/AAAAAAAAA8o/0rjpJHv4hBE/s1600/Install.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="369" src="http://1.bp.blogspot.com/-sNOoLM-Nd0Q/UPfm-yDXG1I/AAAAAAAAA8o/0rjpJHv4hBE/s640/Install.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">After installing the SQlite Manager firefox will ask you to restart the browser, hence kindly restart your browser and then after restarting it again select the tools menu and this time you will see the sqlite manager add-on added to your browser.</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-u8ibMjly8fU/UPfoIQT0qNI/AAAAAAAAA9E/GaQS6g7GBeE/s1600/Screen+Shot+2013-01-17+at+5.09.34+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="370" src="http://1.bp.blogspot.com/-u8ibMjly8fU/UPfoIQT0qNI/AAAAAAAAA9E/GaQS6g7GBeE/s640/Screen+Shot+2013-01-17+at+5.09.34+PM.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;"><b>Step 2:</b> Now open the firefox browser select tools and from the tools menu select the SQlite Manager add-on, now we are going to create a blank database and add tables inside that database, click on the blank page like option towards your left of the sqlite manager tool</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-JIIgUEZEjBg/UPfqAEfnGoI/AAAAAAAAA9g/8vLMltO8N4w/s1600/Screen+Shot+2013-01-17+at+5.39.44+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="http://2.bp.blogspot.com/-JIIgUEZEjBg/UPfqAEfnGoI/AAAAAAAAA9g/8vLMltO8N4w/s640/Screen+Shot+2013-01-17+at+5.39.44+PM.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">After selecting the blank page like menu the tool will ask you to enter your database name and then it will prompt you to save the database to a particular location.</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-50F9fbHOZNI/UPfqf4IaD1I/AAAAAAAAA9o/6S7kF5mWayk/s1600/MyDB.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="323" src="http://3.bp.blogspot.com/-50F9fbHOZNI/UPfqf4IaD1I/AAAAAAAAA9o/6S7kF5mWayk/s640/MyDB.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">After saving the file to the desired location of </span><span style="font-family: Verdana;">your</span><span style="font-family: Verdana;"> choice its time to add tables inside your database.</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
<span style="font-family: Verdana;"><b>Step 3:</b> After creating the database you can see several options towards the left hand side of the sqlite manager among which there is one option called as the "Tables", kindly right click it so that you can see the option to create table.</span></div>
<div>
<a href="http://4.bp.blogspot.com/-hiM2NYkDY60/UPfrbnUhNDI/AAAAAAAAA90/1-twQTCjuUw/s1600/Screen+Shot+2013-01-17+at+5.44.42+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="300" src="http://4.bp.blogspot.com/-hiM2NYkDY60/UPfrbnUhNDI/AAAAAAAAA90/1-twQTCjuUw/s640/Screen+Shot+2013-01-17+at+5.44.42+PM.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">Once you do that you will get the below view </span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-ubaCqws7zPk/UPfsI0hDXMI/AAAAAAAAA-M/CvSWegRM3BE/s1600/Screen+Shot+2013-01-17+at+5.49.36+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="302" src="http://3.bp.blogspot.com/-ubaCqws7zPk/UPfsI0hDXMI/AAAAAAAAA-M/CvSWegRM3BE/s640/Screen+Shot+2013-01-17+at+5.49.36+PM.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<b style="font-family: Verdana;"><br /></b></div>
<div>
<b style="font-family: Verdana;"><br /></b></div>
<div>
<b style="font-family: Verdana;">Step 4: </b><span style="font-family: Verdana;">Now as per your business logic kindly add the column name of the table along with the data type, one habit as a developer you should have and that is to mark your first column entry as primary keys.</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-7nrql8_2MdQ/UPftj8SoxlI/AAAAAAAAA-o/Qhh0f_V8gpU/s1600/TabRecord.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="302" src="http://3.bp.blogspot.com/-7nrql8_2MdQ/UPftj8SoxlI/AAAAAAAAA-o/Qhh0f_V8gpU/s640/TabRecord.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">Give your table a valuable name and hit the ok button given at the bottom, after pressing the ok button it will ask your permission to execute the given query as per your settings that you did just now.</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-vpdttxQ_NA0/UPfuN7oJp9I/AAAAAAAAA-w/Znr-SwNBsZ4/s1600/TableRecord2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="304" src="http://3.bp.blogspot.com/-vpdttxQ_NA0/UPfuN7oJp9I/AAAAAAAAA-w/Znr-SwNBsZ4/s640/TableRecord2.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<b style="font-family: Verdana;"><br /></b></div>
<div>
<b style="font-family: Verdana;">Step 5: </b><span style="font-family: Verdana;">Press the YES button to proceed, after you hit the press button it will add one table in your database which you may view by selecting the tables section towards your left.</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-5G4Z66houNQ/UPfurGx-5AI/AAAAAAAAA-4/hcrEv4bol0I/s1600/Emp.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="304" src="http://4.bp.blogspot.com/-5G4Z66houNQ/UPfurGx-5AI/AAAAAAAAA-4/hcrEv4bol0I/s640/Emp.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">Now as you can see from the above image we have successfully added the Employee table in our database. </span><span style="font-family: Verdana;">Accordingly you may add one or more table in your database.</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">In case if you think that you have missed out a column to add then no need of deleting the table, first select the table in which you want to add your new column and then simply select the structure tab </span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-1DuYf67hjFU/UPfx0hL2UaI/AAAAAAAAA_U/TgdaMJofw38/s1600/structure.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="304" src="http://1.bp.blogspot.com/-1DuYf67hjFU/UPfx0hL2UaI/AAAAAAAAA_U/TgdaMJofw38/s640/structure.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">scroll a little bit so that you can see the add column button</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-y6WXbR2FCxM/UPfx7wuAdrI/AAAAAAAAA_c/jucjNbfwymc/s1600/AddColumn.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="302" src="http://1.bp.blogspot.com/-y6WXbR2FCxM/UPfx7wuAdrI/AAAAAAAAA_c/jucjNbfwymc/s640/AddColumn.png" width="640" /></a></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">As per your business logic you can add the missed out column name and assign a datatype to it, and once you are done just hit the Add Column button and your new column will be added to your table.</span></div>
<div>
<span style="font-family: Verdana;"><br /></span></div>
<div>
<span style="font-family: Verdana;">I hope that this tutorial has helped you out for creating your own sqlite database and in case if you have find any point confusing then feel free to ask me via comments or via mail until then Happy iCoding and have a great day.</span><br />
<span style="font-family: Verdana;"><br /></span>
<span style="font-family: Verdana;"><br /></span>
<span style="font-family: Verdana;">Move to <a href="http://iphonebyradix.blogspot.in/2013/03/sqlite-database-part-2-copying-database_1.html" target="_blank">second part</a> of sqlite tutorial.</span></div>
<div>
<!--EndFragment--></div>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com4tag:blogger.com,1999:blog-5601914985162740511.post-21003401447545821352012-12-25T21:06:00.000-08:002012-12-25T21:06:12.451-08:00Core Data or SQLITE what to choose ?<div dir="ltr" style="text-align: left;" trbidi="on">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Revision>0</o:Revision>
<o:TotalTime>0</o:TotalTime>
<o:Pages>1</o:Pages>
<o:Words>264</o:Words>
<o:Characters>1505</o:Characters>
<o:Company>QUAGNITIA</o:Company>
<o:Lines>12</o:Lines>
<o:Paragraphs>3</o:Paragraphs>
<o:CharactersWithSpaces>1766</o:CharactersWithSpaces>
<o:Version>14.0</o:Version>
</o:DocumentProperties>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>JA</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="276">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]-->
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<!--StartFragment-->
<br />
<div class="MsoNormal">
<span style="font-family: Verdana;">While I was new to the ios
technology I always used to avoid sqlite because many of the syntax does not
made any sense to me, so I switched to core data which was beautifully designed
by apple and had various flavors to it, it was far most the easy way by which I
could interact with my applications local database. <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">I have worked on several
projects where I thought that core data is better and apps where I thought
sqlite is better, but there was a question in my mind which recently got clear
and that was when to distinguish the use of these two technologies.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">The answer to this is
quite simple if your application has a relational model of database i.e if it
has primary keys, foreign keys etc then in that case sqlite has
the upper hand and if your application has a non - relational structure then in
that case use core data.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">If the app database is
relational then too you may use core data but the handling becomes quite
complicated because you are responsible for handling the business logic (record fetching or adding) for the
database end where this is not the case with sqlite. To be more specific I am
speaking of complicated nested queries and joins.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">The hassle in sqlite is
that you have to manually write the database interaction code while this is not
the case with core data maximum of the database interaction code is done by itself,
allowing you to focus on your task. <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">In sqlite before storing
the database the data needs to be converted to native type c type and same is
the case when you are fetching the data from sqlite. In core data this is
avoided because it will give you fresh objects to bite on since it follows more
oop approach.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">There are many classes in core data which helps you to interact with the database and get the results where in sqlite there are c based methods which help you to achieve the same.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><b>Summary:</b> Both are good
technologies but it depends which one you want to pick upon your database
model.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">I hope this post has helped you in choosing the best technology for your app, and if you have any queries then mail me or post it as a comment.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Happy iCoding</span></div>
<!--EndFragment--></div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com0tag:blogger.com,1999:blog-5601914985162740511.post-6552614592064380332012-11-09T05:18:00.001-08:002012-11-09T05:20:38.421-08:00Solution : Could not Instantiate class named NSLayoutConstraint<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<span style="font-family: Verdana, sans-serif;">Finally I got a project which I can build now with Xcode 4.5 and their was a very interesting bug that I came across.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">The Bug Scenario: I made an app and as per the client request I wanted to make the application compatible with the previous versions of the iphone i.e. from iphone 4.3 to iphone 6.1.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">So I made a very simple login view and ran it by selecting the iOS 6 simlator and was very much happy to see the login view running fine. Now what I did is selected the iPhone simulator 4.3 version and then ran the application keeping my fingers crossed that it will run fine and will have no issues.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">But ALAS!!! I was wrong when I ran my application in iOS 4.3 the application crashed with a love letter in the console which said <b>“ Could not Instantiate class named NSLayoutConstraint”</b> well at first glance I did’nt know what that meant but after going through some developer forms I figured it out that it had to do with some settings of the XIB file.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">So lets have a look at those settings that I am talking about with these settings in place you can easily run your application with Xcode 4.5 from any deployment version you select in the xcode upto the latest version of the iOS without the NSLayoutConstraint crash.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">To resolve this crash all i had to do is deselect an option from the Xcode 4.5</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">- Select the XIB file from your bundle, this will open the xib file.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">- From the Utilities section (the one to your right)</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-MU4l8pNAGVY/UJ0AlI9E-oI/AAAAAAAAA6k/waAKIvdeAB0/s1600/Utilities.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="91" src="http://2.bp.blogspot.com/-MU4l8pNAGVY/UJ0AlI9E-oI/AAAAAAAAA6k/waAKIvdeAB0/s400/Utilities.png" width="400" /></a></div>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">- Select the file inspector sub section.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-qyHzhAKtZkE/UJ0A_vnccnI/AAAAAAAAA6s/GnP6_ZQKt4Q/s1600/Screen+Shot+2012-11-09+at+6.37.23+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-qyHzhAKtZkE/UJ0A_vnccnI/AAAAAAAAA6s/GnP6_ZQKt4Q/s1600/Screen+Shot+2012-11-09+at+6.37.23+PM.png" /></a></div>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">- In the interface-builder document their is a check mark for <b>Use AutoLayout in the Interface builder Document section </b>which is by default selected when you create your views in XIB using Xcode 4.5.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-CrEgTufYCfY/UJ0Bv1zKedI/AAAAAAAAA60/HwxUyVlTGqc/s1600/Screen+Shot+2012-11-09+at+6.39.10+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-CrEgTufYCfY/UJ0Bv1zKedI/AAAAAAAAA60/HwxUyVlTGqc/s1600/Screen+Shot+2012-11-09+at+6.39.10+PM.png" /></a></div>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span>
<span style="font-family: Verdana, sans-serif;"><b>- </b>If you want to give your application support from any previous version of iOS to the latest version then kindly un-check this option from the interface builder settings.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-tI48rXFcdFs/UJ0CCYHgZFI/AAAAAAAAA68/mlIPwipvVuE/s1600/Screen+Shot+2012-11-09+at+6.42.17+PM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-tI48rXFcdFs/UJ0CCYHgZFI/AAAAAAAAA68/mlIPwipvVuE/s1600/Screen+Shot+2012-11-09+at+6.42.17+PM.png" /></a></div>
<br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Now when you run your application it should run fine with all the versions of iOS .</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Hope this helps you in saving some time in development.</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;">Happy iCoding and Have a nice day.</span></div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com1tag:blogger.com,1999:blog-5601914985162740511.post-17474364790306145392012-10-25T06:27:00.000-07:002012-10-25T06:28:27.557-07:00What is a web service and what does it do.<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<span style="font-family: Verdana, sans-serif;">First of all i apologize for writing this post so late i should have wrote it earlier when i wrote my first post of web service.</span></div>
<span style="font-family: Verdana, sans-serif;"></span><br />
<div>
<span style="font-family: Verdana, sans-serif;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<span style="font-family: Verdana, sans-serif;">
Many Freshers who come in iOS development are keen to know what is a web service and why to use it ? So in today's post i am going to clear the air a little bit.</span><br />
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><b>What is a web service</b> : A web service (ws) is a media where you request some information from the server and the server processes your request and provides you with the appropriate response.</span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;">The response can be in various formats like XML (Extensible mark up language), JSON (JavaScript Object Notation), CSV (comma separated value)</span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><b>Example</b>: If you want to display the name of your facebook friends in a table view then what you do is you call the facebook API. You call the required service and get the list of your friends from facebook.</span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;">Similarly if you want to get the details of any one of your friend from the list the you call another facebook service which will get the information about your friend.</span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;">Another example is google places API where you pass the category name as a parameter like banks, hotels etc and your current location and you get the list of banks or hotels near you.</span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">How to know the response format of the web service</b><span style="font-family: Verdana, sans-serif;">:</span><span style="font-family: Verdana, sans-serif;"> The web developer who has created the web service will tell you regarding the response format. The response format which is mostly used for hand-held devices is JSON since its simple and faster.</span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><b>Classes for sending request in iPhone</b> : The class named <a href="https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/Reference/Reference.html" target="_blank">NSURLConnection</a> will help you out in sending a request to the server and it will give you the response in it's delegate method named "<i><b>connectionDidFinishLoading</b>"</i>. But before creating the object of this class you need to create a request object of class type <a href="https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSMutableURLRequest_Class/Reference/Reference.html" target="_blank">NSMutableURLRequest</a>. You may visit this <a href="http://iphonebyradix.blogspot.in/2011/04/working-with-webservices.html" target="_blank">link</a> for one of my sample demos for web service</span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">Response Issues with web service</b><span style="font-family: Verdana, sans-serif;"> : Many time what happens is that when the iOS developer parses the web service an HTML response is received instead of JSON or XML, this is because the web developer who was coding might have forgot to turn off his log printing (Just like NSLog that we have) or their might be an SQL / ORACLE exception.</span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><b>Myth in the minds of web service developers</b> : Many web service developers in the beginning think that making a ws for mobile is somewhat different than the ws they create, i would like to inform those developers that its the one and the same thing the only difference is in the response format where you need to send JSON or XML instead of a String or an Integer.</span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;">I hope that this has cleared some air in the minds of freshers and web service developers, if you have any queries then feel free to ask them as a comment to me via comment or mail.</span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;">Until then Happy iCoding and have a great day...</span></div>
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com3tag:blogger.com,1999:blog-5601914985162740511.post-70020970121511181022012-10-22T10:13:00.003-07:002012-10-22T10:14:50.671-07:00Updates in iOS 6<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">A lot has happened in iOS 6 and apple has a document which you may read it from <a href="http://developer.apple.com/library/ios/#releasenotes/General/RN-iOSSDK-6_0/_index.html" target="_blank">here</a>. </span><span style="font-family: Verdana, sans-serif;">The above document will guide you out regarding the changes that has happened in iOS technology.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Few of the changes i am mentioning it down so that you can read them as i feel that those are the important changes in iOS6.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;"><b>UIKIT Framework</b></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoNormal">
</div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">In iOS 5.1, the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UISplitViewController_class/Reference/Reference.html#//apple_ref/occ/cl/UISplitViewController" target="_self"><span style="color: #003366;">UISplitViewController</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">class adopts the sliding presentation style when
presenting the left view (previously seen only in Mail). This style is used
when presentation is initiated either by the existing bar button item provided
by the delegate methods or by a swipe gesture within the right view. No
additional API adoption is required to obtain this behavior, and all existing
APIs—including that of the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">UIPopoverController</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">instance provided by the delegate—will continue to work
as before. If the gesture would be insupportable in your app, setting the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UISplitViewController_class/Reference/Reference.html#//apple_ref/occ/instp/UISplitViewController/presentsWithGesture" target="_self"><span style="color: #003366;">presentsWithGesture</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">property of your split view controller to<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">NO</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">disables the gesture. However, disabling the gesture is
discouraged because its use preserves a consistent user experience across all
apps.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">In iOS 6, changes have been
introduced so that you no longer need to set a delegate and implement a method
for single-finger and single-tap gesture recognizers. This makes them work well
with the</span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIControl_Class/Reference/Reference.html#//apple_ref/occ/cl/UIControl" target="_self"><span style="color: #003366;">UIControl</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">objects.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">In iOS 6 and later, the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIWebView_Class/Reference/Reference.html#//apple_ref/occ/cl/UIWebView" target="_self"><span style="color: #003366;">UIWebView</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">class paints its contents asynchronously.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">Autorotation is changing in iOS 6.
In iOS 6, the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">shouldAutorotateToInterfaceOrientation:</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method of<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/cl/UIViewController" target="_self"><span style="color: #003366;">UIViewController</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">is deprecated. In its place, you should use the</span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/UIApplication/supportedInterfaceOrientationsForWindow:" target="_self"><span style="color: #003366;">supportedInterfaceOrientationsForWindow:</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">and<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/shouldAutorotate" target="_self"><span style="color: #003366;">shouldAutorotate</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">methods.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 46.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level2 lfo2; tab-stops: list 1.0in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">More responsibility is moving to
the app and the app delegate. Now, iOS containers (such as<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UINavigationController_Class/Reference/Reference.html#//apple_ref/occ/cl/UINavigationController" target="_self"><span style="color: #003366;">UINavigationController</span></a></span></code><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">) do not consult their children to determine whether
they should autorotate. By default, an app and a view controller’s supported
interface orientations are set to<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html#//apple_ref/c/econst/UIInterfaceOrientationMaskAll" target="_self"><span style="color: #003366;">UIInterfaceOrientationMaskAll</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">for the iPad idiom and</span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html#//apple_ref/c/econst/UIInterfaceOrientationMaskAllButUpsideDown" target="_self"><span style="color: #003366;">UIInterfaceOrientationMaskAllButUpsideDown</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">for the iPhone idiom.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 46.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level2 lfo2; tab-stops: list 1.0in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">A view controller’s supported
interface orientations can change over time—even an app’s supported interface
orientations can change over time. The system asks the top-most full-screen
view controller (typically the root view controller) for its supported
interface orientations whenever the device rotates or whenever a view
controller is presented with the full-screen modal presentation style.
Moreover, the supported orientations are retrieved only if this view controller
returns<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">YES</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">from its<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/shouldAutorotate" target="_self"><span style="color: #003366;">shouldAutorotate</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method. The system intersects the view controller’s
supported orientations with the app’s supported orientations (as determined by
the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">Info.plist</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">file or the app delegate’s<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UIApplicationDelegate/application:supportedInterfaceOrientationsForWindow:" target="_self"><span style="color: #003366;">application:supportedInterfaceOrientationsForWindow:</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method) to determine whether to rotate.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 46.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level2 lfo2; tab-stops: list 1.0in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">The system determines whether an
orientation is supported by intersecting the value returned by the app’s<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/UIApplication/supportedInterfaceOrientationsForWindow:" target="_self"><span style="color: #003366;">supportedInterfaceOrientationsForWindow:</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method with the value returned by the</span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/supportedInterfaceOrientations" target="_self"><span style="color: #003366;">supportedInterfaceOrientations</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method of the top-most full-screen controller.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 46.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level2 lfo2; tab-stops: list 1.0in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">The<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/UIApplication/setStatusBarOrientation:animated:" target="_self"><span style="color: #003366;">setStatusBarOrientation:animated:</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method is not deprecated outright. It now works only if
the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/supportedInterfaceOrientations" target="_self"><span style="color: #003366;">supportedInterfaceOrientations</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method of the top-most full-screen view controller
returns<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">0</span></code><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">. This makes the caller responsible for ensuring that
the status bar orientation is consistent.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 46.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level2 lfo2; tab-stops: list 1.0in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">For compatibility, view controllers
that still implement the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/occ/instm/UIViewController/shouldAutorotateToInterfaceOrientation:" target="_self"><span style="color: #003366;">shouldAutorotateToInterfaceOrientation:</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method do not get the new autorotation behaviors. (In
other words, they do not fall back to using the app, app delegate, or<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">Info.plist</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">file to determine the supported orientations.) Instead,
the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">shouldAutorotateToInterfaceOrientation:</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method is used to synthesize the information that would
be returned by the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/supportedInterfaceOrientations" target="_self"><span style="color: #003366;">supportedInterfaceOrientations</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">The<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/willRotateToInterfaceOrientation:duration:" target="_self"><span style="color: #003366;">willRotateToInterfaceOrientation:duration:</span></a></span></code><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">,<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/willAnimateRotationToInterfaceOrientation:duration:" target="_self"><span style="color: #003366;">willAnimateRotationToInterfaceOrientation:duration:</span></a></span></code><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">, and<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/didRotateFromInterfaceOrientation:" target="_self"><span style="color: #003366;">didRotateFromInterfaceOrientation:</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">methods are no longer called on any view controller that
makes a full-screen presentation over itself—for example,<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/presentViewController:animated:completion:" target="_self"><span style="color: #003366;">presentViewController:animated:completion:</span></a></span></code><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 46.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level2 lfo2; tab-stops: list 1.0in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">You should make sure that your apps
are not using these methods to manage the layout of any subviews. Instead, they
should use the view controller’s<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/viewWillLayoutSubviews" target="_self"><span style="color: #003366;">viewWillLayoutSubviews</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method and adjust the layout using the view’s bounds
rectangle.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">In iOS 6, the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">viewWillUnload</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">and<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">viewDidUnload</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">methods of<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/cl/UIViewController" target="_self"><span style="color: #003366;">UIViewController</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">are now deprecated. If you were using these methods to
release data, use the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/didReceiveMemoryWarning" target="_self"><span style="color: #003366;">didReceiveMemoryWarning</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method instead. You can also use this method to release
references to the view controller’s view if it is not being used. You would
need to test that the view is not in a window before doing this.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">It is not supported to set values
for the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/Reference/UILabel.html#//apple_ref/occ/instp/UILabel/shadowOffset" target="_self"><span style="color: #003366;">shadowOffset</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">or<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/Reference/UILabel.html#//apple_ref/occ/instp/UILabel/shadowColor" target="_self"><span style="color: #003366;">shadowColor</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">properties of a<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">UILabel</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">object if its<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/Reference/UILabel.html#//apple_ref/occ/instp/UILabel/attributedText" target="_self"><span style="color: #003366;">attributedText</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">property contains a valid attributed string. Instead,
use the</span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/NSAttributedString_UIKit_Additions/Reference/Reference.html#//apple_ref/c/data/NSShadowAttributeName" target="_self"><span style="color: #003366;">NSShadowAttributeName</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">attribute of the attributed string to set the shadow.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">Due to compatibility concerns, the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">NSBaselineOffsetAttributeName</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">attribute is no longer supported in iOS 6.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">The<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">NSTextAlignmentNatural</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">value is not supported. It will throw an exception when
it is used with the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/Reference/UILabel.html#//apple_ref/occ/instp/UILabel/textAlignment" target="_self"><span style="color: #003366;">textAlignment</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">property of<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">UILabel</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">or is supplied as the<span class="apple-converted-space"> </span><em>alignment</em><span class="apple-converted-space"> </span>parameter to the</span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/NSString_UIKit_Additions/Reference/Reference.html#//apple_ref/occ/instm/NSString/drawInRect:withFont:lineBreakMode:alignment:" target="_self"><span style="color: #003366;">drawInRect:withFont:lineBreakMode:alignment:</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method of<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">NSString</span></code><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">The<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">setContentStretch:</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method of<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/UIView/UIView.html#//apple_ref/occ/cl/UIView" target="_self"><span style="color: #003366;">UIView</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">has been deprecated. To achieve the same effect, use the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/Reference/Reference.html#//apple_ref/occ/instm/UIImage/resizableImageWithCapInsets:" target="_self"><span style="color: #003366;">resizableImageWithCapInsets:</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method of<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">UIImage</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">and display the image with a</span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImageView_Class/Reference/Reference.html#//apple_ref/occ/cl/UIImageView" target="_self"><span style="color: #003366;">UIImageView</span></a></span></code><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">The<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/Reference/Reference.html#//apple_ref/occ/instm/UIImage/resizableImageWithCapInsets:" target="_self"><span style="color: #003366;">resizableImageWithCapInsets:</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method of<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">UIImage</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">effectively resizes images by tiling. As a performance
optimization, it uses stretching rather than tiling when the user would not be
able to tell the difference, such as when a single column or row is being
stretched. But in certain circumstances, the user might want to actually
stretch some region of an image. In iOS 6, the</span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/Reference/Reference.html#//apple_ref/occ/instm/UIImage/resizableImageWithCapInsets:resizingMode:" target="_self"><span style="color: #003366;">resizableImageWithCapInsets:resizingMode:</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">method allows the caller to specify a tiling or
stretching resizing mode.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">The<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UICollectionViewLayout_class/Reference/Reference.html#//apple_ref/occ/cl/UICollectionViewLayout" target="_self"><span style="color: #003366;">UICollectionViewLayout</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">class has changed:<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 46.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level2 lfo2; tab-stops: list 1.0in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">The class now supports the
customization of the animations created during rotation. The names of methods
for customizing insert and delete animations have also changed, so the same
hooks can be used for rotations as well as for insertions and deletions.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 46.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level2 lfo2; tab-stops: list 1.0in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">The class has changed some method
names. Specifically, decoration views are no longer referred to by “reuse
identifier” but rather by “element kind.” Apps that are using decoration views
will need to modify their code and be rebuilt to accommodate this.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">The bottom edge of a<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/Reference/UILabel.html#//apple_ref/occ/cl/UILabel" target="_self"><span style="color: #003366;">UILabel</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">view is now different from its baseline.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt;">
<span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">Previously, Auto Layout was
interpreting the bottom of a<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">UILabel</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">to be the same as its baseline. While convenient in many
cases, it caused problems if you wanted to place the top edge of one label
against the bottom edge of another. In such a scenario, the bottom label would
overlap the top one, and descenders from the top label could crash into
ascenders from the bottom label. Now, Auto Layout interprets<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">UILayoutAttributeBottom</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">as the bottom of the text box (presuming the label is
not bigger than its intrinsic content size) and<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">UILayoutAttributeBaseline</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">as the baseline of the text. If you have already created
code for laying out labels according to the bottom or center point, your text
will move around a little and you will need to adjust your constraints.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">Apps with table views in their nib
or storyboard files, and that were built using previous versions of iOS 6 beta,
will require a clean build with beta 3 and newer.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 0in; margin-right: 0in; margin-top: 8.0pt;">
<span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">Landscape-only apps that invoke a
portrait-only view controller (such as the Game Center login screen) will cause
the app to crash.<o:p></o:p></span></div>
<div style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 8pt 0in 10pt;">
<span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">Workaround:<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 30.0pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l2 level1 lfo3; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">Apps should provide the delegate
method<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">application:supportedIntefaceOrientationsForWindow</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">and ensure that portrait is one of the returned mask
values.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 30.0pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l2 level1 lfo3; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">When a<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;">UIBNavigationController</span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">is involved, subclass the<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UINavigationController_Class/Reference/Reference.html#//apple_ref/occ/cl/UINavigationController" target="_self"><span style="color: #003366;">UINavigationController</span></a></span></code><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">and overriding<span class="apple-converted-space"> </span></span><code><span style="color: #666666; font-family: "Verdana","sans-serif"; font-size: 10.5pt;"><a href="http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/supportedInterfaceOrientations" target="_self"><span style="color: #003366;">supportedInterfaceOrientations</span></a></span></code><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">.<o:p></o:p></span></div>
<h3 style="background: white; margin-bottom: 3.0pt; margin-left: 0in; margin-right: 0in; margin-top: .25in;">
<span style="font-family: Verdana, sans-serif; font-size: 15pt; line-height: 115%;">Simulator<span style="font-weight: normal;"><o:p></o:p></span></span></h3>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">No privacy alerts are displayed in
iOS Simulator for apps that access Photos, Contacts, Calendar, and Reminders.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">For this release, iOS Simulator
does not support testing In-App Purchase. Please use a device to test your apps
that use this feature.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 10.5pt;">When attempting to play an MP3
sound in Simulator, you will hear a popping sound instead.<o:p></o:p></span></div>
<div style="background: white; margin-bottom: 10.0pt; margin-left: 16.2pt; margin-right: 0in; margin-top: 8.0pt; mso-list: l1 level1 lfo1; tab-stops: list .5in; text-indent: -.25in;">
</div>
<div style="margin: 8pt 0in 10pt 16.2pt; text-indent: -0.25in;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 14px;">I hope that by reading this post you have some clearance on iOS6.</span></span></div>
<div style="margin: 8pt 0in 10pt 16.2pt; text-indent: -0.25in;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 14px;"><a href="https://www.facebook.com/groups/iPhoneByRadix/" target="_blank">Join iPhone by radix group on facebook.</a></span></span></div>
</div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com3tag:blogger.com,1999:blog-5601914985162740511.post-71431437576672593422012-10-17T02:32:00.000-07:002012-10-17T02:33:10.919-07:00UIActivityViewController iOS 6<div dir="ltr" style="text-align: left;" trbidi="on">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Revision>0</o:Revision>
<o:TotalTime>0</o:TotalTime>
<o:Pages>1</o:Pages>
<o:Words>234</o:Words>
<o:Characters>1338</o:Characters>
<o:Company>QUAGNITIA</o:Company>
<o:Lines>11</o:Lines>
<o:Paragraphs>3</o:Paragraphs>
<o:CharactersWithSpaces>1569</o:CharactersWithSpaces>
<o:Version>14.0</o:Version>
</o:DocumentProperties>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>JA</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val="Cambria Math"/>
<m:brkBin m:val="before"/>
<m:brkBinSub m:val="--"/>
<m:smallFrac m:val="off"/>
<m:dispDef/>
<m:lMargin m:val="0"/>
<m:rMargin m:val="0"/>
<m:defJc m:val="centerGroup"/>
<m:wrapIndent m:val="1440"/>
<m:intLim m:val="subSup"/>
<m:naryLim m:val="undOvr"/>
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="276">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
<w:LsdException Locked="false" Priority="39" Name="toc 1"/>
<w:LsdException Locked="false" Priority="39" Name="toc 2"/>
<w:LsdException Locked="false" Priority="39" Name="toc 3"/>
<w:LsdException Locked="false" Priority="39" Name="toc 4"/>
<w:LsdException Locked="false" Priority="39" Name="toc 5"/>
<w:LsdException Locked="false" Priority="39" Name="toc 6"/>
<w:LsdException Locked="false" Priority="39" Name="toc 7"/>
<w:LsdException Locked="false" Priority="39" Name="toc 8"/>
<w:LsdException Locked="false" Priority="39" Name="toc 9"/>
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/>
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
<w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
<w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
<w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
<w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
<w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
<w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
<w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
<w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
<w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/>
<w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
<w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
<w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
<w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
<w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
<w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
<w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
<w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
<w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/>
<w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
<w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
<w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
<w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
<w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
<w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
<w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
<w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
<w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
<w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
</w:LatentStyles>
</xml><![endif]-->
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;}
</style>
<![endif]-->
<!--StartFragment-->
<br />
<div class="MsoNormal">
<a href="http://3.bp.blogspot.com/-cQ2D2D9NM4s/UH51x_kH-UI/AAAAAAAAA5M/Oa0iFsSZ_p4/s1600/Untitled111.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-cQ2D2D9NM4s/UH51x_kH-UI/AAAAAAAAA5M/Oa0iFsSZ_p4/s320/Untitled111.png" width="170" /></a><span style="font-family: Verdana;">Sharing is indeed one of
the important concepts when it comes to mobile computing people love to share
about the recent events in their life. </span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Apple in iOS6 has introduced a
class which will help the developers to give multiple options to the users for
sharing.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">The new class introduced
by apple is called <a href="http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIActivityViewController_Class/Reference/Reference.html" target="_blank">UIActivityViewController</a> which will help the developers to
do this.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">This class makes
use of the account settings for various social networks or mail present in your
iOS devices.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">So let’s see how to make
use of this class<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><b>Step 1:</b> Open Xcode and
create a single view based application, in the viewController.xib add the
object of the UIButton class<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-YXhmXrhrGNg/UH5xycjvFWI/AAAAAAAAA4c/8ANwuVMNgY8/s1600/Untitled12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="230" src="http://3.bp.blogspot.com/-YXhmXrhrGNg/UH5xycjvFWI/AAAAAAAAA4c/8ANwuVMNgY8/s400/Untitled12.png" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><b>Step 2:</b> Declare the
IBAction method in the viewcontroller.h file and connect it with the UIButton
present in the XIB<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-HPBxV-CT5l0/UH5yAePxHnI/AAAAAAAAA4k/QeldxhemOVw/s1600/Untitled13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="156" src="http://1.bp.blogspot.com/-HPBxV-CT5l0/UH5yAePxHnI/AAAAAAAAA4k/QeldxhemOVw/s400/Untitled13.png" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-DzR_S-vaXRQ/UH5ycdb_dKI/AAAAAAAAA4s/dY-aB4DDK4s/s1600/Untitled14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="http://4.bp.blogspot.com/-DzR_S-vaXRQ/UH5ycdb_dKI/AAAAAAAAA4s/dY-aB4DDK4s/s400/Untitled14.png" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><b>Step 3:</b> Let’s have a look
at the code part of the IBAction method in the view controller.m file.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-KZOI15Tlbuo/UH5yw0jVftI/AAAAAAAAA40/b71B-kOo2_I/s1600/Untitled15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="86" src="http://1.bp.blogspot.com/-KZOI15Tlbuo/UH5yw0jVftI/AAAAAAAAA40/b71B-kOo2_I/s400/Untitled15.png" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b style="font-family: Verdana;">Code Explanation:</b><span style="font-family: Verdana;"> In the
above code we have to create the object of the UIActivityIndicatorViewController
and what so every data you want to post you have to provide it in an array to
it.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><b>Step 4:</b> All set and done
now run the application and touch the button and when you do you will get the
following output.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-tubNap-kN74/UH5w8clQcsI/AAAAAAAAA4U/uuPamk70CuU/s1600/Untitled11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-tubNap-kN74/UH5w8clQcsI/AAAAAAAAA4U/uuPamk70CuU/s320/Untitled11.png" width="170" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-0Xy56vfhOMo/UH5zbuVAjsI/AAAAAAAAA48/zcJDVsOusGg/s1600/Untitled151.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-0Xy56vfhOMo/UH5zbuVAjsI/AAAAAAAAA48/zcJDVsOusGg/s320/Untitled151.png" width="170" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">As i have said earlier it makes use of the accounts that the user has already set up with the iOS device so currently i have not set up any settings for facebook and if i select facebook for sharing then i get a message which asks me to set up my facebook account in the settings option.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-CpwSA7AZm2U/UH5z_9-4bQI/AAAAAAAAA5E/GETJ2gcNtg0/s1600/Untitled152.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-CpwSA7AZm2U/UH5z_9-4bQI/AAAAAAAAA5E/GETJ2gcNtg0/s320/Untitled152.png" width="170" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">If you want to attach an image for sharing then you need to add the image object in the array and leave everything as it is.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-3Def38xJims/UH52Lv77i_I/AAAAAAAAA5U/l0JzUEytgQ0/s1600/Untitled16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="142" src="http://3.bp.blogspot.com/-3Def38xJims/UH52Lv77i_I/AAAAAAAAA5U/l0JzUEytgQ0/s640/Untitled16.png" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Now when you again run the application then you will get the following result</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-IqxElgn4mJI/UH52eK8NrSI/AAAAAAAAA5c/Zff7lD_CP3E/s1600/Untitled17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-IqxElgn4mJI/UH52eK8NrSI/AAAAAAAAA5c/Zff7lD_CP3E/s320/Untitled17.png" width="170" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">The last part pending is how to tackle completion of a particular posting event by this controller, </span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-YXhmXrhrGNg/UH5xycjvFWI/AAAAAAAAA4c/8ANwuVMNgY8/s1600/Untitled12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="184" src="http://3.bp.blogspot.com/-YXhmXrhrGNg/UH5xycjvFWI/AAAAAAAAA4c/8ANwuVMNgY8/s320/Untitled12.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-LoUsooszUok/UH56WLsRyEI/AAAAAAAAA5s/0T4pjjndRKs/s1600/Untitled22.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="354" src="http://4.bp.blogspot.com/-LoUsooszUok/UH56WLsRyEI/AAAAAAAAA5s/0T4pjjndRKs/s640/Untitled22.png" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Now when you post using any of the social media then you will receive a pop up which would describe whether the posting was successful or not and in the console you may check which media you have used.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">You may download the
source code from <a href="https://github.com/downloads/KRadix/CommonUtility/ActivityVCDemo.zip" target="_blank">here</a>.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">I hope that this post has
helped you out in using the UIActivityIndicatorViewController, in case if you
are having any questions or queries then do let me know via mail or via
comments.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;">Until then Happy iCoding
and have a great Day.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana;"><a href="https://www.facebook.com/groups/iPhoneByRadix/" target="_blank">Join iPhone by Radix on facebook.</a></span></div>
<!--EndFragment--></div>
Ravihttp://www.blogger.com/profile/15355776480383261849noreply@blogger.com2