tag:blogger.com,1999:blog-21588364436891222792024-03-05T09:52:12.510-08:00iOS Developer BlogAnonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.comBlogger75125tag:blogger.com,1999:blog-2158836443689122279.post-25325267697688737602017-01-05T01:28:00.004-08:002017-01-05T01:30:31.457-08:00iOS Interview questions<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 id="Question_1_2" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 1</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">On a UITableViewCell constructor:</span></div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;">- (id)initWithStyle:(<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">UITableViewCellStyle</span>)style reuseIdentifier:(<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSString</span> *)reuseIdentifier
</code></pre>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What is the <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; font-weight: 300; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">reuseIdentifier</code> used for?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
The <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">reuseIdentifier</code> is used to indicate that a cell can be re-used in a <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UITableView</code>. For example when the cell looks the same, but has different content. The <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UITableView</code> will maintain an internal cache of <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UITableViewCell</code>’s with the <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">reuseIdentifier</code> and allow them to be re-used when <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">dequeueReusableCellWithIdentifier:</code> is called. By re-using table cell’s the scroll performance of the tableview is better because new views do not need to be created.</div>
<h2 id="Question_2_3" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 2</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Explain the difference between atomic and nonatomic synthesized properties?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Atomic and non-atomic refers to whether the setters/getters for a property will atomically read and write values to the property. When the atomic keyword is used on a property, any access to it will be “synchronized”. Therefore a call to the getter will be guaranteed to return a valid value, however this does come with a small performance penalty. Hence in some situations nonatomic is used to provide faster access to a property, but there is a chance of a race condition causing the property to be nil under rare circumstances (when a value is being set from another thread and the old value was released from memory but the new value hasn’t yet been fully assigned to the location in memory for the property).</div>
<h2 id="Question_3_4" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 3</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Explain the difference between copy and retain?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Retaining an object means the retain count increases by one. This means the instance of the object will be kept in memory until it’s retain count drops to zero. The property will store a reference to this instance and will share the same instance with anyone else who retained it too. Copy means the object will be cloned with duplicate values. It is not shared with any one else.</div>
<h2 id="Question_4_5" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 4</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What is method swizzling in Objective C and why would you use it?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Method swizzling allows the implementation of an existing selector to be switched at runtime for a different implementation in a classes dispatch table. Swizzling allows you to write code that can be executed before and/or after the original method. For example perhaps to track the time method execution took, or to insert log statements</div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;">#<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">import</span> "UIViewController+Log.h"
@implementation <span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">UIViewController</span> (<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Log</span>)
+ (void)load {
<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">static</span> dispatch_once_t once_token;
dispatch_once(&once_token, ^{
<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SEL</span> viewWillAppearSelector = @selector(viewDidAppear:);
<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SEL</span> viewWillAppearLoggerSelector = @selector(log_viewDidAppear:);
<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Method</span> originalMethod = class_getInstanceMethod(<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</span>, viewWillAppearSelector);
<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Method</span> extendedMethod = class_getInstanceMethod(<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</span>, viewWillAppearLoggerSelector);
method_exchangeImplementations(originalMethod, extendedMethod);
});
}
- (void) log_viewDidAppear:(<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">BOOL</span>)animated {
[<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</span> log_viewDidAppear:animated];
<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSLog</span>(@<span class="hljs-string" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"viewDidAppear executed for %@"</span>, [<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</span> <span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">class</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">]);
}
@</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">end</span></span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
</span></code></pre>
<h2 id="Question_5_6" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 5</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
What’s the difference between not-running, inactive, active, background and suspended execution states?</div>
<ul style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Not running:</span> The app has not been launched or was running but was terminated by the system.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Inactive:</span> The app is running in the foreground but is currently not receiving events. (It may be executing other code though.) An app usually stays in this state only briefly as it transitions to a different state.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Active:</span> The app is running in the foreground and is receiving events. This is the normal mode for foreground apps.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Background:</span> The app is in the background and executing code. Most apps enter this state briefly on their way to being suspended. However, an app that requests extra execution time may remain in this state for a period of time. In addition, an app being launched directly into the background enters this state instead of the inactive state.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Suspended:</span> The app is in the background but is not executing code. The system moves apps to this state automatically and does not notify them before doing so. While suspended, an app remains in memory but does not execute any code. When a low-memory condition occurs, the system may purge suspended apps without notice to make more space for the foreground app.</li>
</ul>
<h2 id="Question_6_7" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 6</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What is a category and when is it used?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
A category is a way of adding additional methods to a class without extending it. It is often used to add a collection of related methods. A common use case is to add additional methods to built in classes in the Cocoa frameworks. For example adding async download methods to the <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIImage</code> class.</div>
<h2 id="Question_7_8" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 7</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Can you spot the bug in the following code and suggest how to fix it:</span></div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;">@interface <span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">MyCustomController</span> : <span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">UIViewController</span>
@property (strong, nonatomic) <span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">UILabel</span> *alert;
@end
@implementation <span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">MyCustomController</span>
- (void)viewDidLoad {
<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">CGRect</span> frame = <span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">CGRectMake</span>(<span class="hljs-number" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">100</span>, <span class="hljs-number" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">100</span>, <span class="hljs-number" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">100</span>, <span class="hljs-number" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">50</span>);
<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</span>.alert = [[<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">UILabel</span> alloc] initWithFrame:frame];
<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</span>.alert.text = @<span class="hljs-string" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"Please wait..."</span>;
[<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</span>.view addSubview:<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</span>.alert];
dispatch_async(
dispatch_get_global_queue(<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">DISPATCH_QUEUE_PRIORITY_DEFAULT</span>, <span class="hljs-number" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">0</span>),
^{
sleep(<span class="hljs-number" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">10</span>);
<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</span>.alert.text = @<span class="hljs-string" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"Waiting over"</span>;
}
);
}
@end
</code></pre>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
All UI updates must be done on the main thread. In the code above the update to the alert text may or may not happen on the main thread, since the global dispatch queue makes no guarantees . Therefore the code should be modified to always run the UI update on the main thread</div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;">dispatch_async(
dispatch_get_global_queue(<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">DISPATCH_QUEUE_PRIORITY_DEFAULT</span>, <span class="hljs-number" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">0</span>),
^{
sleep(<span class="hljs-number" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">10</span>);
dispatch_async(dispatch_get_main_queue(), ^{
<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</span>.alert.text = @<span class="hljs-string" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"Waiting over"</span>;
});
});
</code></pre>
<h2 id="Question_8_9" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 8</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What is the difference between <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; font-weight: 300; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">viewDidLoad</code> and <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; font-weight: 300; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">viewDidAppear</code>? Which should you use to load data from a remote server to display in the view?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">viewDidLoad</code> is called when the view is loaded, whether from a Xib file, storyboard or programmatically created in <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">loadView</code>. <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">viewDidAppear</code> is called every time the view is presented on the device. Which to use depends on the use case for your data. If the data is fairly static and not likely to change then it can be loaded in <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">viewDidLoad</code> and cached. However if the data changes regularly then using <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">viewDidAppear</code> to load it is better. In both situations, the data should be loaded asynchronously on a background thread to avoid blocking the UI.</div>
<h2 id="Question_9_10" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 9</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What considerations do you need when writing a <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; font-weight: 300; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UITableViewController</code> which shows images downloaded from a remote server?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
This is a very common task in iOS and a good answer here can cover a whole host of knowledge. The important piece of information in the question is that the images are hosted remotely and they may take time to download, therefore when it asks for “considerations”, you should be talking about:</div>
<ul style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Only download the image when the cell is scrolled into view, i.e. when <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">cellForRowAtIndexPath</code> is called.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Downloading the image asynchronously on a background thread so as not to block the UI so the user can keep scrolling.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">When the image has downloaded for a cell we need to check if that cell is still in the view or whether it has been re-used by another piece of data. If it’s been re-used then we should discard the image, otherwise we need to switch back to the main thread to change the image on the cell.</li>
</ul>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Other good answers will go on to talk about offline caching of the images, using placeholder images while the images are being downloaded.</div>
<h2 id="Question_10_11" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 10</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What is a protocol, how do you define your own and when is it used?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
A protocol is similar to an interface from Java. It defines a list of required and optional methods that a class must/can implement if it adopts the protocol. Any class can implement a protocol and other classes can then send messages to that class based on the protocol methods without it knowing the type of the class.</div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;">@<span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">protocol</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">MyCustomDataSource</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
- (</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSUInteger</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">numberOfRecords</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">;
- (</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSDictionary</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"> *)</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">recordAtIndex</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">:(</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSUInteger</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">index</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">;
@</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">optional</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
- (</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSString</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"> *)</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">titleForRecordAtIndex</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">:(</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSUInteger</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">index</span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">;
@</span><span class="hljs-title" style="border: 0px; color: #445588; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-class" style="border: 0px; color: inherit; font-weight: 300; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><span class="hljs-title" style="border: 0px; font-weight: bold; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">end</span></span></span></span><span class="hljs-class" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
</span></code></pre>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
A common use case is providing a DataSource for <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UITableView</code> or <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UICollectionView</code>.</div>
<h2 id="Question_11_12" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 11</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What is KVC and KVO? Give an example of using KVC to set a value.</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">KVC</em> stands for <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Key-Value Coding</em>. It's a mechanism by which an object's properties can be accessed using string's at runtime rather than having to statically know the property names at development time. <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">KVO</em> stands for <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Key-Value Observing</em> and allows a controller or class to observe changes to a property value.</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Let's say there is a property <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">name</code> on a class:</div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;">@property (nonatomic, copy) <span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSString</span> *name;
</code></pre>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
We can access it using KVC:</div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;"><span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSString</span> *n = [object valueForKey:@<span class="hljs-string" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"name"</span>]
</code></pre>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
And we can modify it's value by sending it the message:</div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;">[object setValue:@<span class="hljs-string" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"Mary"</span> forKey:@<span class="hljs-string" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"name"</span>]
</code></pre>
<h2 id="Question_12_13" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 12</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What are blocks and how are they used?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Blocks are a way of defining a single task or unit of behavior without having to write an entire Objective-C class. Under the covers Blocks are still Objective C objects. They are a language level feature that allow programming techniques like lambdas and closures to be supported in Objective-C. Creating a block is done using the <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">^ { }</code> syntax:</div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;"> myBlock = ^{
<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSLog</span>(@<span class="hljs-string" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"This is a block"</span>);
}
</code></pre>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
It can be invoked like so:</div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;">myBlock();
</code></pre>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
It is essentially a function pointer which also has a signature that can be used to enforce type safety at compile and runtime. For example you can pass a block with a specific signature to a method like so:</div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;">- (void)callMyBlock:(void (^)(void))callbackBlock;
</code></pre>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
If you wanted the block to be given some data you can change the signature to include them:</div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;">- (void)callMyBlock:(void (^)(double, double))block {
...
block(<span class="hljs-number" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">3.0</span>, <span class="hljs-number" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">2.0</span>);
}
</code></pre>
<h2 id="Question_13_14" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 13</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What mechanisms does iOS provide to support multi-threading?</span></div>
<ul style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">NSThread</code> creates a new low-level thread which can be started by calling the <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">start</code> method.<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 714px;"><span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSThread</span>* myThread = [[<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSThread</span> alloc] initWithTarget:<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</span>
selector:@selector(myThreadMainMethod:)
object:<span class="hljs-literal" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">nil</span>];
[myThread start];
</code></pre>
</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">NSOperationQueue</code> allows a pool of threads to be created and used to execute <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">NSOperation</code>s in parallel. <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">NSOperation</code>s can also be run on the main thread by asking <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">NSOperationQueue</code> for the <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">mainQueue</code>.<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 714px;"><span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSOperationQueue</span>* myQueue = [[<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSOperationQueue</span> alloc] <span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">init</span>];
[myQueue addOperation:anOperation];
[myQueue addOperationWithBlock:^{
<span class="hljs-comment" style="border: 0px; color: inherit; font-style: italic; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">/* Do something. */</span>
}];
</code></pre>
</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">GCD</em> or <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Grand Central Dispatch</em> is a modern feature of Objective-C that provides a rich set of methods and API's to use in order to support common multi-threading tasks. <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">GCD</em> provides a way to queue tasks for dispatch on either the main thread, a concurrent queue (tasks are run in parallel) or a serial queue (tasks are run in FIFO order).<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 714px;">dispatch_queue_t myQueue = dispatch_get_global_queue(<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">DISPATCH_QUEUE_PRIORITY_DEFAULT</span>, <span class="hljs-number" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">0</span>);
dispatch_async(myQueue, ^{
printf(<span class="hljs-string" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"Do some work here.\n"</span>);
});
</code></pre>
</li>
</ul>
<h2 id="Question_14_15" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 14</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What is the Responder Chain?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
When an event happens in a view, for example a touch event, the view will fire the event to a chain of <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIResponder</code> objects associated with the <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIView</code>. The first <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIResponder</code> is the <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIView</code>itself, if it does not handle the event then it continues up the chain to until <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIResponder</code> handles the event. The chain will include <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIViewController</code>s, parent <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIView</code>s and their associated <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIViewController</code>s, if none of those handle the event then the <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIWindow</code> is asked if it can handle it and finally if that doesn't handle the event then the <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIApplicationDelegate</code> is asked.</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
If you get the opportunity to draw this one out, it's worth doing to impress the interviewer:</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<img alt="enter image description here" src="https://www.filepicker.io/api/file/2RlPNYtPQPs56t7iPGQj" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle;" title="enter image title here" /></div>
<h2 id="Question_15_16" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 15</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What's the difference between using a <em style="border: 0px; font-weight: 300; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">delegate</em> and <em style="border: 0px; font-weight: 300; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">notification</em>?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Both are used for sending values and messages to interested parties. A <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">delegate</em> is for one-to-one communication and is a pattern promoted by Apple. In <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">delegation</em> the class raising events will have a property for the <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">delegate</em> and will typically expect it to implement some <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">protocol</code>. The <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">delegating</em> class can then call the _delegate_s protocol methods.</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Notification</em> allows a class to broadcast events across the entire application to any interested parties. The broadcasting class doesn't need to know anything about the listeners for this event, therefore <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">notification</em> is very useful in helping to decouple components in an application.</div>
<pre style="background-color: whitesmoke; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.0980392); box-sizing: border-box; color: #333333; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin-bottom: 24px; max-height: 500px; max-width: 100%; outline: 0px; overflow: scroll; padding: 12px; vertical-align: baseline; white-space: pre-wrap !important; word-break: break-all; word-wrap: normal;"><code class="lang-swift hljs" style="background: rgb(248, 248, 248); border-radius: 3px; border: 0px; display: block; font-family: monospace, serif; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; overflow-x: auto; padding: 0px; vertical-align: baseline; width: 734px;">[<span class="hljs-type" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">NSNotificationCenter</span> defaultCenter]
postNotificationName:@<span class="hljs-string" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"TestNotification"</span>
object:<span class="hljs-keyword" style="border: 0px; color: inherit; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</span>];
</code></pre>
<h2 id="Question_16_17" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 16</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What's your preference when writing UI's? Xib files, Storyboards or programmatic <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; font-weight: 300; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIView</code>?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
There's no right or wrong answer to this, but it's great way of seeing if you understand the benefits and challenges with each approach. Here's the common answers I hear:</div>
<ul style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Storyboard's and Xib's are great for quickly producing UI's that match a design spec. They are also really easy for product managers to visually see how far along a screen is.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Storyboard's are also great at representing a flow through an application and allowing a high-level visualization of an entire application.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Storyboard's drawbacks are that in a team environment they are difficult to work on collaboratively because they're a single file and merge's become difficult to manage.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Storyboards and Xib files can also suffer from duplication and become difficult to update. For example if all button's need to look identical and suddenly need a color change, then it can be a long/difficult process to do this across storyboards and xibs.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Programmatically constructing <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIView</code>'s can be verbose and tedious, but it can allow for greater control and also easier separation and sharing of code. They can also be more easily unit tested.</li>
</ul>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Most developers will propose a combination of all 3 where it makes sense to share code, then re-usable <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIView</code>s or <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">Xib</code> files.</div>
<h2 id="Question_17_18" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 17</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">How would you securely store private user data offline on a device? What other security best practices should be taken?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Again there is no right answer to this, but it's a great way to see how much a person has dug into iOS security. If you're interviewing with a bank I'd almost definitely expect someone to know something about it, but all companies need to take security seriously, so here's the ideal list of topics I'd expect to hear in an answer:</div>
<ul style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">If the data is extremely sensitive then it should never be stored offline on the device because all devices are crackable.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">The keychain is one option for storing data securely. However it's encryption is based on the pin code of the device. User's are not forced to set a pin, so in some situations the data may not even be encrypted. In addition the users pin code may be easily hacked.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">A better solution is to use something like <a href="https://www.zetetic.net/sqlcipher/" style="background: transparent; border: 0px; color: #3e90ca; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;" target="_blank" title="null">SQLCipher</a> which is a fully encrypted SQLite database. The encryption key can be enforced by the application and separate from the user's pin code.</li>
</ul>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Other security best practices are:</div>
<ul style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Only communicate with remote servers over SSL/HTTPS.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">If possible implement certificate pinning in the application to prevent man-in-the-middle attacks on public WiFi.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Clear sensitive data out of memory by overwriting it.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Ensure all validation of data being submitted is also run on the server side.</li>
</ul>
<h2 id="Question_18_19" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 18</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What is MVC? How is it implemented in iOS? What are some pitfalls you've experienced with it? Are there any alternatives to MVC?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">MVC</em> stands for <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Model, View, Controller</em>. It is a design pattern that defines how to separate out logic when implementing user interfaces. In iOS, Apple provides <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIView</code> as a base class for all _View_s, <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIViewController</code> is provided to support the <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Controller</em> which can listen to events in a <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">View</em> and update the <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">View</em> when data changes. The <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Model</em> represents data in an application and can be implemented using any <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">NSObject</code>, including data collections like <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">NSArray</code> and <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">NSDictionary</code>.</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Some of the pitfalls that people hit are bloated <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIViewController</code> and not separating out code into classes beyond the MVC format. I'd highly recommend reading up on some solutions to this:</div>
<ul style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><a href="https://www.objc.io/issues/1-view-controllers/lighter-view-controllers/" style="background: transparent; border: 0px; color: #3e90ca; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;" target="_blank" title="null">https://www.objc.io/issues/1-view-controllers/lighter-view-controllers/</a></li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><a href="https://speakerdeck.com/trianglecocoa/unburdened-viewcontrollers-by-jay-thrash" style="background: transparent; border: 0px; color: #3e90ca; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;" target="_blank" title="null">https://speakerdeck.com/trianglecocoa/unburdened-viewcontrollers-by-jay-thrash</a></li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><a href="https://programmers.stackexchange.com/questions/177668/how-to-avoid-big-and-clumsy-uitableviewcontroller-on-ios" style="background: transparent; border: 0px; color: #3e90ca; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;" target="_blank" title="null">https://programmers.stackexchange.com/questions/177668/how-to-avoid-big-and-clumsy-uitableviewcontroller-on-ios</a></li>
</ul>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
In terms of alternatives, this is pretty open ended. The most common alternative is MVVM using ReactiveCocoa, but others include VIPER and using Functional Reactive code.</div>
<h2 id="Question_19_20" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 19</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">A product manager in your company reports that the application is crashing. What do you do?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
This is a great question in any programming language and is really designed to see how you problem solve. You're not given much information, but some interviews will slip you more details of the issue as you go along. Start simple:</div>
<ul style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">get the exact steps to reproduce it.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">find out the device, iOS version.</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">do they have the latest version?</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">get device logs if possible.</li>
</ul>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Once you can reproduce it or have more information then start using tooling. Let's say it crashes because of a memory leak, I'd expect to see someone suggest using <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Instruments</em> leak tool. A really impressive candidate would start talking about writing a unit test that reproduces the issue and debugging through it.</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Other variations of this question include slow UI or the application freezing. Again the idea is to see how you problem solve, what tools do you know about that would help and do you know how to use them correctly.</div>
<h2 id="Question_20_21" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Question 20</h2>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">What is AutoLayout? What does it mean when a constraint is "broken" by iOS?</span></div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">AutoLayout</em> is way of laying out <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIView</code>s using a set of constraints that specify the location and size based relative to other views or based on explicit values. <em style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">AutoLayout</em> makes it easier to design screens that resize and layout out their components better based on the size and orientation of a screen. _Constraint_s include:</div>
<ul style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">setting the horizontal/vertical distance between 2 views</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">setting the height/width to be a ratio relative to a different view</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">a width/height/spacing can be an explicit static value</li>
</ul>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Sometimes constraints conflict with each other. For example imagine a <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIView</code> which has 2 height constraints: one says make the <code style="background-color: #f7f7f9; border-radius: 3px; border: 0px; font-family: monospace, serif; font-size: 15px; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;">UIView</code> 200px high, and the second says make the height twice the height of a button. If the iOS runtime can not satisfy both of these constraints then it has to pick only one. The other is then reported as being "broken" by iOS.</div>
<h2 id="Standard_Questions_22" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.2; margin: 0.83em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
Standard Questions</h2>
<h3 id="-tell-me-about-yourself-" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 22px; line-height: 1.3; margin: 0.9em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
“Tell me about yourself”.</h3>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
This is a REALLY tricky one! So many people read their resume out loud (forgetting I am looking right at it!), listing every class they took in college, every position they have ever held (and that really adds up for the Senior Level Engineers) and every responsibility (which often times happen to be the same across 2 or 3 companies that particular person has worked at. So, 20 minutes later, I still don’t know anything new/outside of the resume about the candidate, we are 20 minutes in, and by then I believe that they might as well be robots (and robots tend to not fit very well with dynamic teams).</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
So do yourself (and the hiring manager) a favor by preparing a 2min long elevator pitch of your background- keep it simple, concise and brief, and then add something personal at the end. Do you love running? Are you coaching your daughter’s soccer team? Die hard Star Wars fan? Adding a little bit of personality in is a great ice breaker, and will make for an amazing transition into the deeper part of the interview.</div>
<h3 id="-describe-an-interesting-problem-and-how-you-solved-it-" style="background-color: white; border: 0px; clear: both; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 22px; line-height: 1.3; margin: 0.9em 0px; outline: 0px; padding: 0px; text-rendering: optimizeLegibility; vertical-align: baseline;">
"Describe an interesting problem and how you solved it."</h3>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Your chance of hearing this one is basically 99%, so you better have a great answer ready for them! Here are a few tips: think of a particularly amazing project that you are proud of. Got it? Great! Now, grab a piece of paper and summarize it in 5 bullet points. 1st bullet point- very brief backstory of the circumstances behind the project 2nd bullet- the nature of the project itself 3rd bullet- the problems you have came across while solving it/them 4thbullet- how did you solve the difficulties above 5th bullet point- what have you learned from it.</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Now, find somebody who will listen (a friend, partner, colleague) and ask them if the story makes sense (minus any technical aspects of it if the person you are talking with isn’t your peer). It’s a great way to validate if the story holds itself together.</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
You would be shocked how many times I have heard things like “and then I went to John, and he used the tool he has created to remove the critical bug which then……”. Who is Tom? Your manager? Intern? Peer? Why did you go to him of everybody in your company? What is that magical tool that he has put together? Which critical bug exactly did it remove and how? What was the outcome?</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
You get the idea :)</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Additional bonus? You now have 5 bullet points you can use as a cheat sheet during your interview without looking like THAT guy who is reading his resume out loud.</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="border: 0px; font-weight: 700; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Now let’s jump into the WEIRD questions that some hiring managers like to throw in to tip you off your game.</span></div>
<ul style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 24px 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">How would you test a toaster?</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">How many pens can you fit into an airplane?</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">How many windows are in San Francisco?</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">How many golf balls can fit in a school bus?</li>
<li style="border: 0px; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">How many Big Macs does McDonald's sell each year in the U.S.?</li>
</ul>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
The list goes on and on. While it has nothing to do with your technical skills, it does a good job of checking how you deal with curve balls, and to see if you are capable of logical step-by step problem solving. In most cases, there aren’t perfect answers to those type of questions (though you can google them for your peace of mind). It is all about how you explain your logic to your interviewer.</div>
<div style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; line-height: 30px; margin-bottom: 1em; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Here is the answer to the golf balls question by Michael Beauchamp, so you get the idea of what I am talking about:</div>
<blockquote style="background: url("/assets/quote.png") 0px 12px no-repeat rgb(255, 255, 255); border: 0px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 18px; hyphens: none; line-height: 30px; margin: 0px; outline: 0px; padding: 30px 0px 0px; quotes: none; vertical-align: baseline;">
<div style="border: 0px; font-size: 20px; font-weight: bold; line-height: 30px; margin-bottom: 24px; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
I figure a standard school bus is about 8ft wide by 6ft high by 20 feet long - this is just a guess based on the thousands of hours I have been trapped behind school buses while traffic in all directions is stopped.</div>
<div style="border: 0px; font-size: 20px; font-weight: bold; line-height: 30px; margin-bottom: 24px; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
That means 960 cubic feet and since there are 1728 cubic inches in a cubit foot, that means about 1.6 million cubic inches.</div>
<div style="border: 0px; font-size: 20px; font-weight: bold; line-height: 30px; margin-bottom: 24px; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
I calculate the volume of a golf ball to be about 2.5 cubic inches (4/3 <span style="border: 0px; font-weight: 300; line-height: 30px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">pi </span>.85) as .85 inches is the radius of a golf ball.</div>
<div style="border: 0px; font-size: 20px; font-weight: bold; line-height: 30px; margin-bottom: 24px; margin-top: 1em; outline: 0px; padding: 0px; vertical-align: baseline;">
Divide that 2.5 cubic inches into 1.6 million and you come up with 660,000 golf balls. However, since there are seats and crap in there taking up space and also since the spherical shape of a golf ball means there will be considerable empty space between them when stacked, I'll round down to 500,000 golf balls.</div>
</blockquote>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-11176880053859889192014-08-19T04:05:00.009-07:002014-08-19T04:05:38.697-07:00iOS Q&A<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">1. Difference between SEL and @selector.<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">2. Difference between retain and copy? (The answer that I am looking for is memory wise and not some answer googled here and there)<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">3. Difference between categories and extension?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">4. Explain responder chain? And how it works<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">5. Difference between method calling and performSelector? What's the difference when you call a method using self and @selector<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">6. When to use strong and weak reference?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">7. Why are IBOutlets and delegates declared as weak and not strong? And describe a case where you would declare delegates as strong<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">8. Difference between atomic and non-atomic, Is atomic thread safe if YES then why YES and if NO then why NO?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">9. Explain sandboxing in iOS app?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">10. How to upload an enterprise app without using any third party tool?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">11. Difference between Core Data and SQLITE? (Note : Mostly people are asking how both work in a multi threading environment so be prepared accordingly)<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">12. How does a table cell work?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">13. In ARC how does the compiler know that a certain object is not required?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">14. Why and when do we make use of blocks in our code?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">15. How does an SSL certificate work?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">16. What will you use storyboard or XIB’s and why?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">17. How will you convert an iOS 6 app to iOS 7?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">18. What does code signing mean?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">19. Explain toll-free bridging in iOS?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">20. Explain the life cycle of a ViewController?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">21. Explain life cycle of an iOS app?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">22. What is the use of self = [super init]?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">23. Sizes of the entire iphone and ipad screen?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">24. Difference between NSURLConnection and NSURLSession?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">25. Better to read some new features in the latest SDK.<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">26. You need to call a webservice and lets say your app is in background for 2 days <b>how will you achieve this in iOS 6?<br /></b></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">27. How will the user submit you crash report of your app, all you have provided is just the email of your support team?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">28. Difference between notification and delegate?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">29. 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 /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-size: x-small;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">30. Read on how to upload an enterprise app and what are the necessary accounts or certificates required in this process.</span> <span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-size: x-small;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">31. Explain the iOS architecture OR explain the iphone OS architecture?</span> <span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt; text-indent: 0cm;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">32. 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></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpLast" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 14.2pt;">
<span style="font-size: x-small;"><br /></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoNormal" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">So this was related with iOS development related questions few of my personal favorite are given below</span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoNormal" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt;">
<span style="font-size: x-small;"><br /></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpFirst" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">1. Find the factorial of a number without using any for, while, do-while or go-to?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">2. How will you multiply two numbers without using any arithmetic operator and math library?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><b>3.<span style="font-weight: normal;"> </span></b>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>Note: I am making a synchronous call here<br /></b></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">4. Difference between agile and waterfall model?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">5. Explain PGP i.e pretty good privacy and how does it work?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">6. Difference between encryption, cryptography and hashing?<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">7. Difference between final and const (something out of objective C)<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">8. 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 /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 36pt; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">9. Why objective C is called as a runtime language? (Pretty Basic :P )<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpMiddle" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 1cm; text-indent: -18pt;">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">10. What is the difference between deep copy and shallow copy? And how will you implement this in objective C<br /></span></span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;">
</div>
<div class="MsoListParagraphCxSpLast" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 1cm; text-indent: -18pt;">
<span style="font-size: x-small;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">11. </span><span style="font-family: 'Helvetica Neue Light';"><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></span></span></div>
<div class="MsoListParagraphCxSpLast" style="font-family: Cambria; margin: 0cm 0cm 0.0001pt 1cm; text-indent: -18pt;">
<span style="font-size: x-small;"><span style="font-family: 'Helvetica Neue Light';"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></span></span></div>
<div class="MsoListParagraphCxSpLast" style="margin: 0cm 0cm 0.0001pt 1cm; text-indent: -18pt;">
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif; font-size: xx-small;">from iPhoneradix..</span></div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-80240944675976894932013-08-22T05:08:00.000-07:002013-08-22T05:08:03.315-07:00Open Phone, SMS, Email, Map and browser apps in iPhone SDK<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h2 style="background-color: white; color: #333333; font-family: arial, verdana, sans-serif; font-size: 1.6em; line-height: 1.2em; margin: 0px 0px 10px; padding: 0px 3px;">
<a href="http://www.makebetterthings.com/iphone/open-phone-sms-email-map-and-browser-apps-in-iphone-sdk/" style="color: black; display: block; margin: 0px; outline: none; padding: 0px; text-decoration: none;" title="Open Phone, SMS, Email, Map and browser apps in iPhone SDK"><br /></a></h2>
<div class="entry" style="background-color: white; color: #333333; font-family: arial, verdana, sans-serif; font-size: 12px; line-height: 16px; margin: 0px; overflow: hidden; padding: 0px 3px;">
<div style="line-height: 1.6em; margin-bottom: 10px; margin-top: 10px; padding: 0px;">
Here is how you can open default Phone app, SMS app, Email app, Maps app and browser app with openURL.</div>
<div style="line-height: 1.6em; margin-bottom: 10px; margin-top: 10px; padding: 0px;">
<strong style="margin: 0px; padding: 0px;">Open default Phone app in iPhone</strong>:</div>
<div style="margin: 0px; padding: 0px;">
<div class="syntaxhighlighter objc" id="highlighter_137168" style="background-color: white !important; font-size: 1em !important; margin: 1em 0px !important; overflow-x: auto !important; overflow-y: hidden !important; padding: 0px; position: relative !important; width: 654px;">
<table border="0" cellpadding="0" cellspacing="0" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 654px;"><tbody style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
</td><td class="code" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 626px;"><div class="container" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[[UIApplication sharedApplication] openURL:[</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">NSURL</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">URLWithString:</code><code class="objc string" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@"<a href="tel://8004664411" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-decoration: none; top: auto !important; vertical-align: baseline !important; width: auto !important;">tel://8004664411</a>"</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">]];</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="line-height: 1.6em; margin-bottom: 10px; margin-top: 10px; padding: 0px;">
<strong style="margin: 0px; padding: 0px;">Open default SMS app in iPhone:</strong></div>
<div style="margin: 0px; padding: 0px;">
<div class="syntaxhighlighter objc" id="highlighter_960263" style="background-color: white !important; font-size: 1em !important; margin: 1em 0px !important; overflow-x: auto !important; overflow-y: hidden !important; padding: 0px; position: relative !important; width: 654px;">
<table border="0" cellpadding="0" cellspacing="0" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 654px;"><tbody style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
</td><td class="code" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 626px;"><div class="container" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[[UIApplication sharedApplication] openURL:[</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">NSURL</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">URLWithString:</code><code class="objc string" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@"<a href="sms://466453" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-decoration: none; top: auto !important; vertical-align: baseline !important; width: auto !important;">sms://466453</a>"</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">]];</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="line-height: 1.6em; margin-bottom: 10px; margin-top: 10px; padding: 0px;">
<strong style="margin: 0px; padding: 0px;">Open default Email app in iPhone:</strong></div>
<div style="margin: 0px; padding: 0px;">
<div class="syntaxhighlighter objc" id="highlighter_246939" style="background-color: white !important; font-size: 1em !important; margin: 1em 0px !important; overflow-x: auto !important; overflow-y: hidden !important; padding: 0px; position: relative !important; width: 654px;">
<table border="0" cellpadding="0" cellspacing="0" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 752px;"><tbody style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
</td><td class="code" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 724px;"><div class="container" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[[UIApplication sharedApplication] openURL:[</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">NSURL</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">URLWithString:</code><code class="objc string" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@"<a href="mailto://devprograms@apple.com" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-decoration: none; top: auto !important; vertical-align: baseline !important; width: auto !important;">mailto://devprograms@apple.com</a>"</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">]];</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="line-height: 1.6em; margin-bottom: 10px; margin-top: 10px; padding: 0px;">
<strong style="margin: 0px; padding: 0px;">Open default Maps app in iPhone:</strong></div>
<div style="margin: 0px; padding: 0px;">
<div class="syntaxhighlighter objc" id="highlighter_94758" style="background-color: white !important; font-size: 1em !important; margin: 1em 0px !important; overflow-x: auto !important; overflow-y: hidden !important; padding: 0px; position: relative !important; width: 654px;">
<table border="0" cellpadding="0" cellspacing="0" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 738px;"><tbody style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
<div class="line number3 index2 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
3</div>
<div class="line number4 index3 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
4</div>
<div class="line number5 index4 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
5</div>
<div class="line number6 index5 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
6</div>
<div class="line number7 index6 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
7</div>
<div class="line number8 index7 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
8</div>
<div class="line number9 index8 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
9</div>
<div class="line number10 index9 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
10</div>
<div class="line number11 index10 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
11</div>
</td><td class="code" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 703px;"><div class="container" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">NSString</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">* addressText = </code><code class="objc string" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@"1 Infinite Loop, Cupertino, CA 95014"</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">;</code></div>
<div class="line number2 index1 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number3 index2 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc comment" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">// URL encode the spaces</code></div>
<div class="line number4 index3 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number5 index4 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">addressText = [addressText stringByAddingPercentEscapesUsingEncoding: </code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">NSASCIIStringEncoding</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">];</code></div>
<div class="line number6 index5 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number7 index6 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">NSString</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">* urlText = [</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">NSString</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">stringWithFormat:</code><code class="objc string" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@"<a href="http://maps.google.com/maps?q=%@" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-decoration: none; top: auto !important; vertical-align: baseline !important; width: auto !important;">http://maps.google.com/maps?q=%@</a>"</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, addressText];</code></div>
<div class="line number8 index7 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number9 index8 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc comment" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">// lets throw this text on the log so we can view the url in the event we have an issue</code></div>
<div class="line number10 index9 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
</div>
<div class="line number11 index10 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[[UIApplication sharedApplication] openURL:[</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">NSURL</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">URLWithString:urlText]];</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="line-height: 1.6em; margin-bottom: 10px; margin-top: 10px; padding: 0px;">
<strong style="margin: 0px; padding: 0px;">Open default Browser app in iPhone:</strong></div>
<div style="margin: 0px; padding: 0px;">
<div class="syntaxhighlighter objc" id="highlighter_854888" style="background-color: white !important; font-size: 1em !important; margin: 1em 0px !important; overflow-x: auto !important; overflow-y: hidden !important; padding: 0px; position: relative !important; width: 654px;">
<table border="0" cellpadding="0" cellspacing="0" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 808px;"><tbody style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
</td><td class="code" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 780px;"><div class="container" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[[UIApplication sharedApplication] openURL:[</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">NSURL</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">URLWithString:</code><code class="objc string" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@"<a href="http://www.makebetterthings.com/blogs/" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-decoration: none; top: auto !important; vertical-align: baseline !important; width: auto !important;">http://www.</a>google.com/"</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">]];</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-49274907406926219932013-05-28T21:41:00.003-07:002013-05-28T21:41:58.770-07:00CustomCell<div dir="ltr" style="text-align: left;" trbidi="on">
View Didload<br />
<br />
<br />
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: #4b8087;">objArray</span><span style="color: black;"> = [[</span><span style="color: #7a25ab;">NSMutableArray</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithObjects<span style="color: black;">:</span></div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Steak"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"Rare"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Steak"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"Medium"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Salad"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"Caesar"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Salad"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"Bean"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Fruit"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"Apple"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Potato"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"Baked"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Potato"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"Mashed"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Bread"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"White"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Bread"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"Brown"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Hot Dog"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"Beef"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Hot Dog"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"Chicken"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Hot Dog"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"Veggie"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
[[<span style="color: #4b8087;">ListObjects</span> <span style="color: #480083;">alloc</span>] <span style="color: #2e585d;">initWithName</span>:<span style="color: #d73321;">@"Pizza"</span> <span style="color: #2e585d;">andDesc</span>:<span style="color: #d73321;">@"Pepperonni"</span>],</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">nil</span> ];</div>
<div>
<br /></div>
<div>
<div style="font-family: Menlo; font-size: 11px;">
cellForRowAtIndexPath</div>
<div style="font-family: Menlo; font-size: 11px;">
<br /></div>
</div>
<div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">static</span> <span style="color: #7a25ab;">NSString</span> *CellIdentifier = <span style="color: #d73321;">@"Cell"</span>;</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #4b8087;">ThumbCellView</span> *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
</div>
<div style="color: #2e585d; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> cell = [[</span><span style="color: #4b8087;">ThumbCellView</span><span style="color: black;"> </span><span style="color: #480083;">alloc</span><span style="color: black;">] </span>initWithStyle<span style="color: black;">:</span><span style="color: #480083;">UITableViewCellStyleValue1</span><span style="color: black;"> </span>reuseIdentifier<span style="color: black;">:</span><span style="color: #c301a4;">nil</span><span style="color: black;"> </span>imageName<span style="color: black;">:</span><span style="color: #4b8087;">objArray</span><span style="color: black;"> </span>width<span style="color: black;">:</span><span style="color: #c301a4;">self</span><span style="color: black;">.</span><span style="color: #7a25ab;">view</span><span style="color: black;">.</span><span style="color: #7a25ab;">bounds</span><span style="color: black;">.</span><span style="color: #7a25ab;">size</span><span style="color: black;">.</span><span style="color: #7a25ab;">width</span><span style="color: black;">];</span></div>
<div style="color: #7a25ab; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> cell.</span>backgroundColor<span style="color: black;">=[</span>UIColor<span style="color: black;"> </span><span style="color: #480083;">clearColor</span><span style="color: black;">];</span></div>
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> cell.</span><span style="color: #7a25ab;">selectionStyle</span><span style="color: black;"> = </span>UITableViewCellSelectionStyleNone<span style="color: black;">;</span></div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">return</span> cell;</div>
<div style="font-family: Menlo; font-size: 11px;">
<br /></div>
<div style="font-family: Menlo; font-size: 11px;">
<br /></div>
<div style="font-family: Menlo; font-size: 11px;">
ListObjects Class</div>
<div style="font-family: Menlo; font-size: 11px;">
<br /></div>
<div style="font-family: Menlo; font-size: 11px;">
</div>
-(<span style="color: #c301a4;">id</span>) initWithName:(<span style="color: #7a25ab;">NSString</span>*)cateName andDesc:(<span style="color: #7a25ab;">NSString</span>*)tltName<br />
{<br />
<span style="color: #c301a4;">self</span> = [<span style="color: #c301a4;">super</span> <span style="color: #480083;">init</span>];<br />
<span style="color: #c301a4;">if</span>(<span style="color: #c301a4;">self</span>)<br />
{<br />
<span style="color: #c301a4;">self</span>.<span style="color: #4b8087;">catName</span> = cateName;<br />
<span style="color: #c301a4;">self</span>.<span style="color: #4b8087;">titleName</span> = tltName;<br />
}<br />
<div style="color: #c301a4;">
<span style="color: black;"> </span>return<span style="color: black;"> </span>self<span style="color: black;">;</span></div>
}<br />
<div>
<br /></div>
<div>
- (<span style="color: #c301a4;">id</span>)initWithStyle:(<span style="color: #7a25ab;">UITableViewCellStyle</span>)style reuseIdentifier:(<span style="color: #7a25ab;">NSString</span> *)reuseIdentifier imageName:(<span style="color: #7a25ab;">NSArray</span> *)imageList width:(<span style="color: #c301a4;">int</span>)width<br />
{<br />
<span style="color: #c301a4;">self</span> = [<span style="color: #c301a4;">super</span> <span style="color: #480083;">initWithStyle</span>:style <span style="color: #480083;">reuseIdentifier</span>:reuseIdentifier];<br />
<span style="color: #c301a4;">if</span> (<span style="color: #c301a4;">self</span>) {<br />
<div style="color: #008800;">
<span style="color: black;"> </span>// Initialization code</div>
<div style="color: #008800;">
<span style="color: #c301a4; font-family: Menlo; font-size: 11px;">int</span><span style="font-family: Menlo; font-size: 11px;"> val;</span></div>
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> </span><span style="color: #c301a4;">if</span><span style="color: black;"> ([[</span><span style="color: #7a25ab;">UIDevice</span><span style="color: black;"> </span>currentDevice<span style="color: black;">] </span>userInterfaceIdiom<span style="color: black;">] == </span>UIUserInterfaceIdiomPhone<span style="color: black;">) {</span></div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">if</span> (width==<span style="color: #4900da;">320</span>)</div>
<div style="font-family: Menlo; font-size: 11px;">
val=<span style="color: #4900da;">0</span>;</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">else</span></div>
<div style="font-family: Menlo; font-size: 11px;">
val=<span style="color: #4900da;">25</span>;</div>
<div style="font-family: Menlo; font-size: 11px;">
}</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">else</span></div>
<div style="font-family: Menlo; font-size: 11px;">
{</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">if</span> (width==<span style="color: #4900da;">768</span>)</div>
<div style="font-family: Menlo; font-size: 11px;">
val=<span style="color: #4900da;">0</span>;</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">else</span></div>
<div style="font-family: Menlo; font-size: 11px;">
val=<span style="color: #4900da;">25</span>;</div>
<div style="font-family: Menlo; font-size: 11px;">
}</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">for</span> (<span style="color: #c301a4;">int</span> i=<span style="color: #4900da;">0</span>;i<[imageList <span style="color: #480083;">count</span>];i++)</div>
<div style="font-family: Menlo; font-size: 11px;">
{</div>
<div style="font-family: Menlo; font-size: 11px;">
UIButton* cellBgImg;</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
</div>
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> </span><span style="color: #c301a4;">if</span><span style="color: black;"> ([[</span><span style="color: #7a25ab;">UIDevice</span><span style="color: black;"> </span>currentDevice<span style="color: black;">] </span>userInterfaceIdiom<span style="color: black;">] == </span>UIUserInterfaceIdiomPhone<span style="color: black;">)</span></div>
<div style="font-family: Menlo; font-size: 11px;">
{</div>
<div style="font-family: Menlo; font-size: 11px;">
cellBgImg = [[<span style="color: #7a25ab;">UIButton</span> <span style="color: #480083;">alloc</span>] <span style="color: #480083;">initWithFrame</span>:<span style="color: #480083;">CGRectMake</span>(<span style="color: #4900da;">50</span>+i*<span style="color: #4900da;">140</span>+val, <span style="color: #4900da;">10</span>, <span style="color: #4900da;">70</span>, <span style="color: #4900da;">90</span>)];</div>
<div style="font-family: Menlo; font-size: 11px;">
}</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">else</span></div>
<div style="font-family: Menlo; font-size: 11px;">
{</div>
<div style="font-family: Menlo; font-size: 11px;">
cellBgImg = [[<span style="color: #7a25ab;">UIButton</span> <span style="color: #480083;">alloc</span>] <span style="color: #480083;">initWithFrame</span>:<span style="color: #480083;">CGRectMake</span>(<span style="color: #4900da;">70</span>+i*<span style="color: #4900da;">180</span>+val, <span style="color: #4900da;">65</span>, <span style="color: #4900da;">103</span>, <span style="color: #4900da;">133</span>)];</div>
<div style="font-family: Menlo; font-size: 11px;">
}</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #7a25ab;">UIImage</span> *img=[<span style="color: #7a25ab;">UIImage</span> <span style="color: #480083;">imageNamed</span>:<span style="color: #d73321;">@"image.png"</span>];</div>
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> [cellBgImg </span>setBackgroundImage<span style="color: black;">:img </span>forState<span style="color: black;">:</span>UIControlStateNormal<span style="color: black;">];</span></div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
</div>
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[cellBgImg </span>setTitle<span style="color: black;">:[</span><span style="color: #7a25ab;">NSString</span><span style="color: black;"> </span>stringWithFormat<span style="color: black;">:</span><span style="color: #d73321;">@"%d"</span><span style="color: black;">,i+</span><span style="color: #4900da;">1</span><span style="color: black;">] </span>forState<span style="color: black;">:</span>UIControlStateNormal<span style="color: black;">];</span></div>
<div style="font-family: Menlo; font-size: 11px;">
cellBgImg.<span style="color: #7a25ab;">titleLabel</span>.<span style="color: #7a25ab;">font</span>=[<span style="color: #7a25ab;">UIFont</span> <span style="color: #480083;">fontWithName</span>:<span style="color: #d73321;">@"Arial"</span> <span style="color: #480083;">size</span>:<span style="color: #4900da;">0.0</span>];</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
</div>
<div style="font-family: Menlo; font-size: 11px;">
cellBgImg.<span style="color: #7a25ab;">tag</span>=i;</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
</div>
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[cellBgImg </span>addTarget<span style="color: black;">:</span><span style="color: #c301a4;">self</span><span style="color: black;"> </span>action<span style="color: black;">:</span><span style="color: #c301a4;">@selector</span><span style="color: black;">(btnpress:) </span>forControlEvents<span style="color: black;">:</span>UIControlEventTouchUpInside<span style="color: black;">];</span></div>
<div style="color: #7a25ab; font-family: Menlo; font-size: 11px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>cellBgImg.</span>backgroundColor<span style="color: black;">=[</span>UIColor<span style="color: black;"> </span><span style="color: #480083;">clearColor</span><span style="color: black;">];</span></div>
<div style="font-family: Menlo; font-size: 11px;">
[<span style="color: #c301a4;">self</span> <span style="color: #480083;">addSubview</span>:cellBgImg];</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
</div>
<div style="font-family: Menlo; font-size: 11px;">
}</div>
<div style="color: #008800;">
</div>
}<br />
<div style="color: #c301a4;">
<span style="color: black;"> </span>return<span style="color: black;"> </span>self<span style="color: black;">;</span></div>
}<br />
</div>
</div>
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-46085488073237044862013-05-26T22:10:00.001-07:002013-05-26T22:10:16.989-07:00Apple Push Notification<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="color: #7a4b2a; font-family: Menlo; font-size: 11px;">
#pragma mark -</div>
<div style="color: #7a4b2a; font-family: Menlo; font-size: 11px;">
#pragma mark Application lifecycle</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<br /></div>
<div style="font-family: Menlo; font-size: 11px;">
- (<span style="color: #c301a4;">void</span>)applicationDidFinishLaunching:(<span style="color: #7a25ab;">UIApplication</span> *)application { </div>
<div style="color: #4b8087; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> [</span>window<span style="color: black;"> </span><span style="color: #480083;">addSubview</span><span style="color: black;">:</span>viewController<span style="color: black;">.</span><span style="color: #7a25ab;">view</span><span style="color: black;">];</span></div>
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> [</span><span style="color: #4b8087;">window</span><span style="color: black;"> </span>makeKeyAndVisible<span style="color: black;">];</span></div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #d73321; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> </span><span style="color: #480083;">NSLog</span><span style="color: black;">(</span>@"Registering for push notifications..."<span style="color: black;">); </span></div>
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> [[</span><span style="color: #7a25ab;">UIApplication</span><span style="color: black;"> </span>sharedApplication<span style="color: black;">] </span></div>
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span>registerForRemoteNotificationTypes<span style="color: black;">:(</span>UIRemoteNotificationTypeAlert<span style="color: black;">|</span>UIRemoteNotificationTypeBadge<span style="color: black;">|</span>UIRemoteNotificationTypeSound<span style="color: black;">)];</span></div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font-family: Menlo; font-size: 11px;">
}</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<br /></div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<br /></div>
<div style="font-family: Menlo; font-size: 11px;">
- (<span style="color: #c301a4;">void</span>)application:(<span style="color: #7a25ab;">UIApplication</span> *)app didRegisterForRemoteNotificationsWithDeviceToken:(<span style="color: #7a25ab;">NSData</span> *)deviceToken1 { </div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font-family: Menlo; font-size: 11px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7a25ab;">NSUserDefaults</span> *standardUserDefaults = [<span style="color: #7a25ab;">NSUserDefaults</span> <span style="color: #480083;">standardUserDefaults</span>];</div>
<div style="font-family: Menlo; font-size: 11px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7a25ab;">NSString</span> *str = [<span style="color: #7a25ab;">NSString</span> <span style="color: #480083;">stringWithFormat</span>:<span style="color: #d73321;">@"%@"</span>,deviceToken1];</div>
<div style="font-family: Menlo; font-size: 11px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #480083;">NSLog</span>(<span style="color: #d73321;">@"%@"</span>,str);</div>
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #7a25ab;">NSString</span><span style="color: black;"> *stringWithoutOpenB = [str </span>stringByReplacingOccurrencesOfString<span style="color: black;">:</span><span style="color: #d73321;">@"<"</span><span style="color: black;"> </span>withString<span style="color: black;">:</span><span style="color: #d73321;">@""</span><span style="color: black;">];</span></div>
<div style="font-family: Menlo; font-size: 11px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7a25ab;">NSString</span> *stringWithoutCloseB = [stringWithoutOpenB <span style="color: #480083;">stringByReplacingOccurrencesOfString</span>:<span style="color: #d73321;">@">"</span> <span style="color: #480083;">withString</span>:<span style="color: #d73321;">@""</span>];</div>
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #7a25ab;">NSString</span><span style="color: black;"> *trimmedString = [stringWithoutCloseB </span>stringByReplacingOccurrencesOfString<span style="color: black;">:</span><span style="color: #d73321;">@" "</span><span style="color: black;"> </span>withString<span style="color: black;">:</span><span style="color: #d73321;">@""</span><span style="color: black;">];</span></div>
<div style="font-family: Menlo; font-size: 11px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #c301a4;">if</span> (standardUserDefaults) {</div>
<div style="font-family: Menlo; font-size: 11px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>[standardUserDefaults <span style="color: #480083;">setObject</span>:trimmedString <span style="color: #480083;">forKey</span>:<span style="color: #d73321;">@"DT"</span>];</div>
<div style="font-family: Menlo; font-size: 11px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>[standardUserDefaults <span style="color: #480083;">synchronize</span>];</div>
<div style="font-family: Menlo; font-size: 11px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #480083;">NSLog</span>(<span style="color: #d73321;">@"%@"</span>,str);</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font-family: Menlo; font-size: 11px;">
}</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<br /></div>
<div style="font-family: Menlo; font-size: 11px;">
- (<span style="color: #c301a4;">void</span>)application:(<span style="color: #7a25ab;">UIApplication</span> *)app didFailToRegisterForRemoteNotificationsWithError:(<span style="color: #7a25ab;">NSError</span> *)err { </div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #7a25ab;">NSString</span> *str = [<span style="color: #7a25ab;">NSString</span> <span style="color: #480083;">stringWithFormat</span>: <span style="color: #d73321;">@"Error: %@"</span>, err];</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #480083;">NSLog</span>(<span style="color: #d73321;">@"%@"</span>,str); </div>
<div style="font-family: Menlo; font-size: 11px;">
}</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<br /></div>
<div style="font-family: Menlo; font-size: 11px;">
- (<span style="color: #c301a4;">void</span>)application:(<span style="color: #7a25ab;">UIApplication</span> *)application didReceiveRemoteNotification:(<span style="color: #7a25ab;">NSDictionary</span> *)userInfo {</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">for</span> (<span style="color: #c301a4;">id</span> key <span style="color: #c301a4;">in</span> userInfo) {</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #480083;">NSLog</span>(<span style="color: #d73321;">@"key: %@, value: %@"</span>, key, [userInfo <span style="color: #480083;">objectForKey</span>:key]);</div>
<div style="font-family: Menlo; font-size: 11px;">
} </div>
<div style="font-family: Menlo; font-size: 11px;">
}</div>
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-82767576606327107902013-04-22T03:23:00.000-07:002013-04-22T03:23:09.472-07:00Objective C/iPhone/iPad/iOS Interview Questions<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h2 style="background-color: white; font-family: Arial, Verdana; line-height: 20px;">
<b style="color: #5c5c5c; font-family: inherit; font-size: 14px;">1. What is delegate?</b><b style="color: #5c5c5c; font-family: inherit; font-size: 14px;"> </b></h2>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>2. What is protocol? Types off protocols? By default Which type ?</b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"><b>3. What is the difference between Delegate and Protocol?</b><b> </b></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>4. What are categories?<o:p></o:p></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">5 . Difference b/w categories and Extend?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">6. Difference b/w categories and Inheritance?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>7. Is there over loading function in object c?</b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">8.How objective C supports overloading and overriding ?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 9. How OOPS Concept supports to ObjectiveC?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 10.What is MVC? How It’s supported to objectiveC?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 11.Explain the Application LifeCycle?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 12.What is Protocol? Types of Protocols?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 13. Is Synthesis required? What is the Importance of it?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 14 How should you manage memory?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 15. Delegate Methods?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 16.What are the controls?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 17.what is xib?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 18.Waht is the difference b/w loadview and viewdid load?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 19. How to change one controller to other controller?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 20. How to change the Default controller?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 21. How to Provide Multiple options to the user?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 22.What are required delegates for Table View?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 23. Table View Delegate Methods?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 24. How the memory allocated for table view?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 25.what are UI Text field methods?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 26. Difference b/w simulator and Device?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 27. Differences b/w IPAD And Iphone?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 28. Features of 4.0version?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 29. Difference B/w versions?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 30. How you Customize the table view?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 31. Difference B/w C,C++,ObjectiveC?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 32. What is Garbage Collection How it’s supported?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 33. Difference b/w Copy and Retain?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 34. Differences b/w Copy and Mutable Copy?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 35. Difference b/w Release and Auto Release?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 36. What is the base class for all the classes?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 37. What are Data Types? What is the Default Data type?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 38. What are Access Specifiers? What is the Default Access Specifier?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 39. Differences b/w String and NSString?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 40. Array allocation is Contiguous ?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 41. Differences b/w NSArray and NSMutable Array?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> 42. What are the Design Patterns?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<span style="line-height: 16px;"> Design Patterns :<o:p></o:p></span></div>
<ol start="1" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-top: 0in;" type="1">
<li class="MsoNormal"><span style="line-height: 16px;">MVC<o:p></o:p></span></li>
<li class="MsoNormal"><span style="line-height: 16px;">Singleton :<o:p></o:p></span></li>
</ol>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 0.5in;">
<span style="line-height: 16px;">A system only needs to create one instance of a class, and that instance will be accessed throughout the program. Examples would include objects needed for logging, communication, database access, etc. You could pass such an instance from method to method, or assign it to each object in the system. However, this adds a lot of unnecessary complexity.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 0.5in;">
<br /></div>
<ol start="3" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-top: 0in;" type="1">
<li class="MsoNormal"><span style="line-height: 16px;">Factory design pattern :<o:p></o:p></span></li>
</ol>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 0.5in;">
<span style="line-height: 16px;">The <b>factory method pattern</b> is an <a href="http://en.wikipedia.org/wiki/Object-oriented" style="color: #336699; outline: none; text-decoration: none;" title="Object-oriented">object-oriented</a> <a href="http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29" style="color: #336699; outline: none; text-decoration: none;" title="Design pattern (computer science)">design pattern</a> to implement the concept of <a href="http://en.wikipedia.org/wiki/Factory_%28software_concept%29" style="color: #336699; outline: none; text-decoration: none;" title="Factory (software concept)">factories</a>. Factory method Pattern is to "Define an interface for creating an object, but let the subclasses decide which class to instantiate.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">43. What is singleton object? How it’s supported?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">44. <b> Instance method followed by………………………<o:p></o:p></b></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> Member variable<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">45. <b> Instance method begins with?<o:p></o:p></b></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> -<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>46. Class method begins with?<o:p></o:p></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> +<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>47. @interface<o:p></o:p></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> Methods define<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>48. @implementation<o:p></o:p></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> Define methods are implemented<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>49. Default constructor syntax is?<o:p></o:p></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> - (id) init.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">50. <b>What is the difference b/w dismissmodelview control and presentviewmodel controller?<o:p></o:p></b></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">51. <b> Which API’s are using in u r application?<o:p></o:p></b></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> API means frameworks like UIkit, foundation, Core animation<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>52. What is the cocoa?<o:p></o:p></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> Object c framework called COCOA. The specific part of the framework used for iPhone app development is called <a href="http://en.wikipedia.org/wiki/Cocoa_Touch" style="color: #336699; outline: none; text-decoration: none;">Cocoa Touch</a>. <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>53 .What is the difference Between APPKit and UIKit?<o:p></o:p></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> there is NO APPKit in iphone and there is no UIKit in Mac OS<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<span style="font-family: inherit;"><span style="line-height: 16px;">54. </span><span style="line-height: 16px;">What is diff between Get and Post methods?</span></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<span style="line-height: 16px;">55. What is NSPredicate?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<span style="line-height: 16px;">56. which class is used for sorting the objects in array?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>57. How to customize u r app in iphone?<o:p></o:p></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 18pt; margin-bottom: 0in; text-indent: 0.5in;">
<span style="font-family: inherit;"><b><span style="color: #262626;">Winterboard</span></b><span style="color: #262626;"> is an application that let you <b>customize your iPhone / iPod 2.0+.<o:p></o:p></b></span></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 18pt; margin-bottom: 0in;">
<b><span style="color: #262626;">58. What is the Winterboard?<o:p></o:p></span></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 18pt; margin-bottom: 0in; text-indent: 0.5in;">
<span style="font-family: inherit;"><span style="color: #262626;">Winterboard allows you to customize Springboard of your iphone</span><span style="color: #262626;">. Using Winterboard you can change iPhone icons, customize applications, status bar graphics, iPhone dock graphics, install themes and change wallpapers of your iPhone Springboard. You can even customize sounds on your iPhone. With Winterboard you can theme almost everything that comes to your mind. Before iPhone 2.0 there was Summerboard but Winterboard has replaced it since iPhone 2.0 and can even load themes of Summerboard.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 18pt; margin-bottom: 0in;">
<span style="font-family: inherit;"><b><span style="color: #262626;">59. What is the springboard?</span></b><span style="color: #262626;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 15pt; margin-bottom: 0in; text-indent: 0.5in;">
<span style="font-family: inherit;"><b>Springboard</b> is the standard application that manages the iOS (formerly iPhone OS) home screen.<b><span style="color: #262626;"><o:p></o:p></span></b></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 18pt; margin-bottom: 0in;">
<b>60. Is it support multiple inheritance? How it’s over come?<o:p></o:p></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 18pt; margin-bottom: 0in; text-indent: 0.5in;">
<span style="font-family: inherit;">Not supported<b> </b></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>61. What is the memory management?<o:p></o:p></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> It allocates and reallocates memory and find out memory leaks.</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>62. What is the ton?<o:p></o:p></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="color: #4d4d4d;"> Singletons are a class that only gets instantiated once in your application’s run-time.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="color: #4d4d4d;"><span style="font-family: inherit;">Ex: <a href="http://getsetgames.com/2009/08/19/web-enabled-resource-manager-for-cocos2d/" style="color: #336699; outline: none; text-decoration: none;">web-based resource manager class</a></span></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<b>63. How many layers are there in iphone sdk?<o:p></o:p></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .cocoa touch layer<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> Address book UI<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> UIkit<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .media layer<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .audio toolbox<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .audio unit<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .AV foundation<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .core Audio<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .core graphics<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .media player<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .open GL ES<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .quartz Core<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .core service layer<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .address book<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .core foundation <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .core location <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .foundation <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .system Configuration<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .core os layer<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .CF network <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .security<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;"> .system</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">64. What is Parsing? Types of Parsing? Differences b/w types?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">65. How File Handling should be done?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">66. Permanent Storage?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">67. What is APP Delegate? Why It’s used?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">68. How handling the Data Base? Which Database your used?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">69. Differences b/w SQLite and CoreData?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">70. How Mapkit is used?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">71. How change the Application Name?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">72. What are the Frameworks you are used?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">73. Essences of Library File?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">74. What is Web Service? How it’s connected?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">75. What it is NSURL?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">76. Difference b/w SAX Parsing and DOM Parsing?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">77. How to Implement Check Boxes and List View and Tree View and Combo box?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">78. What is Notifications? Types of Notifications?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-family: inherit;">79. What is Push Notification?</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<span style="line-height: 16px;">80. How to handle device orientation?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<span style="line-height: 16px;"> ShouldAutoRotatetointerfaceorientation – method</span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<span style="line-height: 16px;">81. Deployment steps?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<b><span style="line-height: 16px;">Deplolyment :<o:p></o:p></span></b></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 19.5pt; text-indent: -0.25in;">
<span style="font-family: inherit;"><b><span style="line-height: 16px;">1)<span style="font-weight: normal; line-height: normal;"> </span></span></b><span style="line-height: 16px;">Open applicatons- uitilites-keychain access –certificate assistance – requested a certificate from a certifate authority<o:p></o:p></span></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<span style="line-height: 16px;">Email :<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<span style="line-height: 16px;">Savetodisk(radio button)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<span style="line-height: 16px;">Ok<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">
<span style="line-height: 16px;">Certificate icon Is created in desktop. (developer certificate is created)<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 19.5pt; text-indent: -0.25in;">
<span style="font-family: inherit;"><b><span style="line-height: 16px;">2)<span style="font-weight: normal; line-height: normal;"> </span></span></b><span style="line-height: 16px;">Upload the developer certificate into developer.apple.com<o:p></o:p></span></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 19.5pt;">
<span style="line-height: 16px;">Registed login :<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 19.5pt; text-indent: -0.25in;">
<span style="font-family: inherit;"><b><span style="line-height: 16px;">3)<span style="font-weight: normal; line-height: normal;"> </span></span></b><span style="line-height: 16px;">Create the provisioning profile from developer.applie.com and download it to system.<br /><br /><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 19.5pt; text-indent: -0.25in;">
<span style="font-family: inherit;"><b><span style="line-height: 16px;">4)<span style="font-weight: normal; line-height: normal;"> </span></span></b><span style="line-height: 16px;">Open the XCode and select the window -> organizer -> select the device and under provisioning profile tab drag it to device.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="font-family: inherit;"><span style="line-height: 16px;">82. Steps for App Store Submission?</span><span style="line-height: 16px;"> </span></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">83. What is IPA?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">84. Adhoc distributions?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">85. what is plist?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">86. what is Multithreading? How it’s supported?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">87.what is the dimensions of IPHone And IPAd?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">88.What is the dismismodal view controller and present modal view controller?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">89. Difference b/w Non Automic and Automic ?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">90. Difference b/w Nib and Xib?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">91. Difference b/w Data Source and Delegate?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">92.what is Selector?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">93.Difference b/w Array and NSDictionary?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">94.Difference b/w Super and Base?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">95. What are Application Life Cycle Phases?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">96.How to build the Application?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">97.How to handle Errors and Bugs and Exceptions?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">98. How to test the Application?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">99. How to create the Custom controls?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">100. How to Change the Color for title bar of navigation bar?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">101. Difference b/w Navigation And Tab Bar controller?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">102. What is JSON?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">103. What is Gestures?<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #5c5c5c; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; margin-left: 1.5pt;">
<span style="line-height: 16px;">104. Difference b/w #define and #paragama and #import?</span></div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-16527350852243538522013-04-09T20:42:00.000-07:002013-04-09T20:42:16.946-07:00iCloud implementation iOS5<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #444444;"><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; letter-spacing: 0.5pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-transform: uppercase; vertical-align: baseline;">STEP BY STEP METHOD TO IMPLEMENT </span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; letter-spacing: 0.5pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-transform: uppercase; vertical-align: baseline;">ICLOUD</span><span style="background-color: #fefdfa; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;"> </span><br style="background-color: #fefdfa; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto;" /><span style="background-color: #fefdfa; font-family: Arial; font-size: 13px; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px;">•</span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; font-weight: bold; letter-spacing: 0.3pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px; vertical-align: baseline;">Make</span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; font-weight: bold; letter-spacing: 0.3pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px; vertical-align: baseline;"> sure </span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; font-weight: bold; letter-spacing: 0.3pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px; vertical-align: baseline;">your</span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; font-weight: bold; letter-spacing: 0.3pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px; vertical-align: baseline;"> </span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; font-weight: bold; letter-spacing: 0.3pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px; vertical-align: baseline;">device</span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; font-weight: bold; letter-spacing: 0.3pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px; vertical-align: baseline;"> </span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; font-weight: bold; letter-spacing: 0.3pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px; vertical-align: baseline;">is</span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; font-weight: bold; letter-spacing: 0.3pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px; vertical-align: baseline;"> </span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; font-weight: bold; letter-spacing: 0.3pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px; vertical-align: baseline;">running </span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; font-weight: bold; letter-spacing: 0.3pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px; vertical-align: baseline;">iOS</span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; font-weight: bold; letter-spacing: 0.3pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px; vertical-align: baseline;"> 5</span><span style="background-color: #fefdfa; font-family: 'Arial Narrow'; font-size: 13px; font-weight: bold; letter-spacing: 0.3pt; line-height: 18px; margin: 0px; padding: 0px; text-align: -webkit-auto; text-indent: -36px; vertical-align: baseline;">.</span></span><br />
<div style="background-color: #fefdfa; direction: ltr; font-family: 'Arial Narrow'; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0.38in; padding: 0px; text-align: -webkit-auto; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<span style="color: #444444;"><span style="font-family: Arial; margin: 0px; padding: 0px;">•</span><span style="font-weight: bold; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">Turn</span><span style="font-weight: bold; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span style="font-weight: bold; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">on </span><span style="font-weight: bold; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">iCloud</span><span style="font-weight: bold; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">.</span></span></div>
<div class="O1" style="background-color: #fefdfa; direction: ltr; font-family: 'Arial Narrow'; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0.81in; padding: 0px; text-align: -webkit-auto; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<i style="margin: 0px; padding: 0px;"><span style="color: #444444;"><span style="font-family: Arial; margin: 0px; padding: 0px;">•</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">When you turn on a new </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">iOS</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;"> device or after you’ve completed the update to </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">iOS</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;"> 5, follow the onscreen instructions to activate your device and set up </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">iCloud</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">.</span></span></i></div>
<div class="O1" style="background-color: #fefdfa; direction: ltr; font-family: 'Arial Narrow'; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0.81in; padding: 0px; text-align: -webkit-auto; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<i style="margin: 0px; padding: 0px;"><span style="color: #444444;"><span style="font-family: Arial; margin: 0px; padding: 0px;">•</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">If you skipped the setup process or want to change your </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">iCloud</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;"> settings, tap the Settings icon on the Home screen and select </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">iCloud</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">.</span></span></i></div>
<div style="background-color: #fefdfa; direction: ltr; font-family: 'Arial Narrow'; font-size: 13px; line-height: 18px; margin: 4.32pt 0px 6pt 0.38in; padding: 0px; text-align: -webkit-auto; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<span style="color: #444444;"><span style="font-family: Arial; margin: 0px; padding: 0px;">•</span><span style="font-weight: bold; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">Customize your settings.</span></span></div>
<div class="O1" style="background-color: #fefdfa; direction: ltr; font-family: 'Arial Narrow'; font-size: 13px; line-height: 18px; margin: 4.32pt 0px 6pt 0.81in; padding: 0px; text-align: -webkit-auto; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<i style="margin: 0px; padding: 0px;"><span style="color: #444444;"><span style="font-family: Arial; margin: 0px; padding: 0px;">•</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">Tap </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">the Settings icon and select </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">iCloud</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">. Tap the On/Off switches to enable individual </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">iCloud</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;"> services, including Photo Stream, Documents, Find My iPhone, and more.</span></span></i></div>
<div class="O1" style="background-color: #fefdfa; direction: ltr; font-family: 'Arial Narrow'; font-size: 13px; line-height: 18px; margin: 4.32pt 0px 6pt 0.81in; padding: 0px; text-align: -webkit-auto; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<i style="margin: 0px; padding: 0px;"><span style="color: #444444;"><span style="font-family: Arial; margin: 0px; padding: 0px;">•</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">To enable Backup, tap Storage & Backup, then switch on </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">iCloud</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;"> Backup</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">.</span></span></i></div>
<div class="O1" style="background-color: #fefdfa; direction: ltr; font-family: 'Arial Narrow'; font-size: 13px; line-height: 18px; margin: 4.32pt 0px 6pt 0.81in; padding: 0px; text-align: -webkit-auto; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<i style="margin: 0px; padding: 0px;"><span style="color: #444444;"><span style="font-family: Arial; margin: 0px; padding: 0px; text-indent: -36px;">•</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;">Now </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;">go to the Provisioning Portal to enable </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;">iCloud</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;"> storage for your </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;">iOS</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;">application. </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;">Enabling </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;">this feature requires that you have an updated provisioning profile on your development systems.</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;">Xcode</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;"> 4 handles this step for you automatically</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;">.</span></span></i></div>
<div class="O1" style="background-color: #fefdfa; direction: ltr; font-family: 'Arial Narrow'; font-size: 13px; line-height: 18px; margin: 4.32pt 0px 6pt 0.81in; padding: 0px; text-align: -webkit-auto; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<i style="margin: 0px; padding: 0px;"><span style="color: #444444;"><span style="font-family: Arial; margin: 0px; padding: 0px; text-indent: -36px;">•</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;">Add </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;">a new Entitlements file to your application and use it to configure the </span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;">iCloud</span><span style="letter-spacing: 0.3pt; margin: 0px; padding: 0px; text-indent: -36px; vertical-align: baseline;"> features for your application uses. Set the keys and values like this:</span></span></i></div>
<div class="O1" style="background-color: #fefdfa; direction: ltr; font-family: 'Arial Narrow'; font-size: 13px; line-height: 18px; margin: 4.32pt 0px 6pt 0.81in; padding: 0px; text-align: -webkit-auto; text-indent: -0.31in; unicode-bidi: embed; word-break: normal;">
<span style="color: #444444;"> </span></div>
<div class="separator" style="background-color: #fefdfa; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 0px; padding: 0px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimiF-F694Q-SWIg97kvi0XG52sXNP7o-mc9v8ZPVgiZ36larxCHIMW7UCqYlvRngYtLoLZ1gyFprSKE8lnATltuGaAjKrsyZN45fuv6f19ADReHzG9hW1eXa-gp9ikQzmaOPxbv0NPnfc/s1600/Screen+Shot+2011-10-14+at+11.10.14+AM.png" imageanchor="1" style="margin: 0px 1em; padding: 0px; text-decoration: none;"><i style="margin: 0px; padding: 0px;"><span style="color: #444444;"><img border="0" height="76" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimiF-F694Q-SWIg97kvi0XG52sXNP7o-mc9v8ZPVgiZ36larxCHIMW7UCqYlvRngYtLoLZ1gyFprSKE8lnATltuGaAjKrsyZN45fuv6f19ADReHzG9hW1eXa-gp9ikQzmaOPxbv0NPnfc/s320/Screen+Shot+2011-10-14+at+11.10.14+AM.png" style="-webkit-box-shadow: rgba(0, 0, 0, 0.199219) 0px 0px 20px; background-color: white; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.199219) 0px 0px 20px; font-style: normal; margin: 0px; padding: 8px; position: relative;" width="320" /></span></i></a></div>
<div class="separator" style="background-color: #fefdfa; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 0px; padding: 0px; text-align: center;">
<span style="color: #444444;"> </span></div>
<div class="separator" style="background-color: #fefdfa; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 0px; padding: 0px; text-align: center;">
<span style="color: #444444;"> </span></div>
<div style="background-color: #fefdfa; direction: ltr; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0.38in; padding: 0px; text-align: -webkit-auto; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<i style="margin: 0px; padding: 0px;"><span style="color: #444444;"><span style="font-family: Arial; margin: 0px; padding: 0px;"> •</span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">Now we have to do Entitlements settings. Go to your target and select Summary tab and do the settings so that it will look like this:</span></span></i></div>
<div style="background-color: #fefdfa; direction: ltr; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0.38in; padding: 0px; text-align: -webkit-auto; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<span style="color: #444444;"> </span></div>
<div class="separator" style="background-color: #fefdfa; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 0px; padding: 0px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZOpEwfGhpq_RXFWVBQITHBla179t22EUCm0npwnak_EGaXreIexIcdns5WAfCahAYLE2PQ83afhwsCMfTFnDavmE7zLbFcoLBkd8oZym1npFj3qb8Tep8Wtop-31jYVllgxTMtTfuNJM/s1600/Screen+Shot+2011-10-14+at+11.18.29+AM.png" imageanchor="1" style="margin: 0px 1em; padding: 0px; text-decoration: none;"><i style="margin: 0px; padding: 0px;"><span style="color: #444444;"><img border="0" height="148" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZOpEwfGhpq_RXFWVBQITHBla179t22EUCm0npwnak_EGaXreIexIcdns5WAfCahAYLE2PQ83afhwsCMfTFnDavmE7zLbFcoLBkd8oZym1npFj3qb8Tep8Wtop-31jYVllgxTMtTfuNJM/s320/Screen+Shot+2011-10-14+at+11.18.29+AM.png" style="-webkit-box-shadow: rgba(0, 0, 0, 0.199219) 0px 0px 20px; background-color: white; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.199219) 0px 0px 20px; font-style: normal; margin: 0px; padding: 8px; position: relative;" width="320" /></span></i></a></div>
<div class="separator" style="background-color: #fefdfa; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 0px; padding: 0px; text-align: center;">
<span style="color: #444444;"> </span></div>
<div class="separator" style="background-color: #fefdfa; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 0px; padding: 0px; text-align: center;">
<span style="color: #444444;"> </span></div>
<div style="background-color: #fefdfa; direction: ltr; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0.38in; padding: 0px; text-align: -webkit-auto; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<i style="margin: 0px; padding: 0px;"><span style="color: #444444;"><span style="font-family: Arial; margin: 0px; padding: 0px;"> •</span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">Now we have to do some setup for bundle settings. For this add a new setting bundle file under</span></span></i></div>
<div style="background-color: #fefdfa; direction: ltr; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0.38in; padding: 0px; text-align: -webkit-auto; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<i style="margin: 0px; padding: 0px;"><span style="color: #444444;"><span style="font-family: Arial; margin: 0px; padding: 0px;"> •</span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">Resource option in your project , it will have extension .bundle. Now this file contain a </span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">Root.plist</span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;"> file</span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">.</span></span></i></div>
<div style="background-color: #fefdfa; direction: ltr; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0.38in; padding: 0px; text-align: -webkit-auto; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<i style="margin: 0px; padding: 0px;"><span style="color: #444444;"><span style="font-family: Arial; margin: 0px; padding: 0px;"> •</span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">In </span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">Root.plist</span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;"> you will get 2 key, one is Preference Items with 4 items and another is Strings Filename. Delete all the items under Preference Items and setup it like this:</span></span></i></div>
<div style="background-color: #fefdfa; direction: ltr; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0.38in; padding: 0px; text-align: -webkit-auto; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<span style="color: #444444;"> </span></div>
<div class="separator" style="background-color: #fefdfa; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 0px; padding: 0px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRF_vG8e3ZqGVWJoXBFZwootEVZYHG2p9S80BP8oRiEWFUMxx6xxQSUNKOud6Igs-5zYeGxq-FMNCijL4JZ81sNdd2bM77V6_FSY1E2R4wyQyhej5ZJFxegaO4taT8s1yFv2V4OZAJTcY/s1600/Screen+Shot+2011-10-14+at+11.28.06+AM.png" imageanchor="1" style="margin: 0px 1em; padding: 0px; text-decoration: none;"><span style="color: #444444;"><img border="0" height="126" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRF_vG8e3ZqGVWJoXBFZwootEVZYHG2p9S80BP8oRiEWFUMxx6xxQSUNKOud6Igs-5zYeGxq-FMNCijL4JZ81sNdd2bM77V6_FSY1E2R4wyQyhej5ZJFxegaO4taT8s1yFv2V4OZAJTcY/s320/Screen+Shot+2011-10-14+at+11.28.06+AM.png" style="-webkit-box-shadow: rgba(0, 0, 0, 0.199219) 0px 0px 20px; background-color: white; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.199219) 0px 0px 20px; margin: 0px; padding: 8px; position: relative;" width="320" /></span></a></div>
<div class="separator" style="background-color: #fefdfa; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 0px; padding: 0px; text-align: center;">
<span style="color: #444444;"> </span></div>
<div style="background-color: #fefdfa; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0.38in; padding: 0px; text-align: -webkit-auto; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<b style="margin: 0px; padding: 0px;"><span style="color: #444444;"><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">Now come on code, Go to your </span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">appDelegate.m</span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;"> file and write these line in</span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;">didFinishLaunchingWithOptions</span><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;"> method :</span></span></b></div>
<div style="background-color: #fefdfa; direction: ltr; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0in; padding: 0px; text-align: -webkit-auto; text-indent: 0in; unicode-bidi: embed; word-break: normal;">
<span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="color: #444444;"> </span></span></div>
<div style="background-color: #fefdfa; direction: ltr; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0in; padding: 0px; text-align: -webkit-auto; text-indent: 0in; unicode-bidi: embed; word-break: normal;">
<span style="color: #444444;"><span style="font-family: 'Arial Narrow'; letter-spacing: 0.3pt; margin: 0px; padding: 0px; vertical-align: baseline;"> </span></span><span style="background-color: transparent; font-family: Menlo; font-size: 11px; text-align: left;">[[</span><span style="background-color: transparent; color: #7a25ab; font-family: Menlo; font-size: 11px; text-align: left;">NSUserDefaults</span><span style="background-color: transparent; font-family: Menlo; font-size: 11px; text-align: left;"> </span><span style="background-color: transparent; color: #480083; font-family: Menlo; font-size: 11px; text-align: left;">standardUserDefaults</span><span style="background-color: transparent; font-family: Menlo; font-size: 11px; text-align: left;">] </span><span style="background-color: transparent; color: #480083; font-family: Menlo; font-size: 11px; text-align: left;">setValue</span><span style="background-color: transparent; font-family: Menlo; font-size: 11px; text-align: left;">:</span><span style="background-color: transparent; color: #d73321; font-family: Menlo; font-size: 11px; text-align: left;">@"YES"</span><span style="background-color: transparent; font-family: Menlo; font-size: 11px; text-align: left;"> </span><span style="background-color: transparent; color: #480083; font-family: Menlo; font-size: 11px; text-align: left;">forKey</span><span style="background-color: transparent; font-family: Menlo; font-size: 11px; text-align: left;">:</span><span style="background-color: transparent; color: #d73321; font-family: Menlo; font-size: 11px; text-align: left;">@"enableiCloud"</span><span style="background-color: transparent; font-family: Menlo; font-size: 11px; text-align: left;">];</span></div>
<div style="color: #7a25ab; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> </span>NSFileManager<span style="color: black;"> *fileManager = [</span>NSFileManager<span style="color: black;"> </span><span style="color: #480083;">defaultManager</span><span style="color: black;">];</span></div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #7a25ab;">NSURL</span> *iCloudURL = [fileManager <span style="color: #480083;">URLForUbiquityContainerIdentifier</span>:<span style="color: #d73321;">@"LCRABX9EHK.com.sapnasolutions.iCloudTest"</span>];</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">BOOL</span> check = [fileManager <span style="color: #480083;">isUbiquitousItemAtURL</span>:iCloudURL];</div>
<div style="color: #7a25ab; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> </span>NSUbiquitousKeyValueStore<span style="color: black;"> *cloudStore = [</span>NSUbiquitousKeyValueStore<span style="color: black;"> </span><span style="color: #480083;">defaultStore</span><span style="color: black;">];</span></div>
<div style="font-family: Menlo; font-size: 11px;">
[cloudStore <span style="color: #480083;">setString</span>:[iCloudURL <span style="color: #480083;">absoluteString</span>] <span style="color: #480083;">forKey</span>:<span style="color: #d73321;">@"iCloudURL"</span>];</div>
<div style="color: #008800; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> [cloudStore </span><span style="color: #480083;">synchronize</span><span style="color: black;">]; </span>// Important as it stores the values you set before on iCloud</div>
<div style="color: #008800; font-family: Menlo; font-size: 11px;">
<span style="background-color: #fefdfa; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto; text-indent: 0in;"><br /></span></div>
<div style="color: #480083; font-family: Menlo; font-size: 11px;">
<span style="color: #7a25ab;">NSArray</span><span style="color: black;"> *paths = </span>NSSearchPathForDirectoriesInDomains<span style="color: black;">(</span>NSDocumentDirectory<span style="color: black;">, </span>NSUserDomainMask<span style="color: black;">, </span><span style="color: #c301a4;">YES</span><span style="color: black;">);</span></div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #7a25ab;">NSString</span> *documentsDirectory = [paths <span style="color: #480083;">objectAtIndex</span>:<span style="color: #4900da;">0</span>];</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #7a25ab;">NSString</span> *writableDBPath = [documentsDirectory <span style="color: #480083;">stringByAppendingPathComponent</span>:<span style="color: #d73321;">@"saved.png"</span>];</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">BOOL</span> existFile = [fileManager <span style="color: #480083;">fileExistsAtPath</span>:writableDBPath];</div>
<div style="color: #008800; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> </span>// If the file exist then send it on iCloud.</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">if</span> (existFile) {</div>
<div style="font-family: Menlo; font-size: 11px;">
NSError *errorOut=<span style="color: #c301a4;">nil</span>;</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #c301a4;">BOOL</span> success =[fileManager setUbiquitous:<span style="color: #c301a4;">YES</span> itemAtURL:[NSURL URLWithString:writableDBPath] destinationURL:iCloudURL error: &errorOut];</div>
<div style="font-family: Menlo; font-size: 11px;">
NSLog(<span style="color: #d73321;">@"Error: %@"</span>, errorOut);</div>
<div style="font-family: Menlo; font-size: 11px;">
}</div>
<div style="font-family: Menlo; font-size: 11px;">
<br /></div>
<div style="background-color: #fefdfa; direction: ltr; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 4.08pt 0px 6pt 0.38in; padding: 0px; text-align: -webkit-auto; text-indent: -0.38in; unicode-bidi: embed; word-break: normal;">
<div style="direction: ltr; margin: 4.08pt 0px 6pt 0in; padding: 0px; text-indent: 0in; unicode-bidi: embed; word-break: normal;">
<div style="color: #7a25ab; font-family: Menlo; font-size: 11px; line-height: normal;">
<span style="color: #4b8087;">query</span><span style="color: black;"> = [[</span>NSMetadataQuery<span style="color: black;"> </span><span style="color: #480083;">alloc</span><span style="color: black;">] </span><span style="color: #480083;">init</span><span style="color: black;">];</span></div>
<div style="font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;">
</div>
<div style="color: #7a25ab; font-family: Menlo; font-size: 11px; line-height: normal;">
<span style="color: black;"> [</span><span style="color: #4b8087;">query</span><span style="color: black;"> </span><span style="color: #480083;">setSearchScopes</span><span style="color: black;">:[</span>NSArray<span style="color: black;"> </span><span style="color: #480083;">arrayWithObjects</span><span style="color: black;">:</span>NSMetadataQueryUbiquitousDataScope<span style="color: black;">, </span>NSMetadataQueryUbiquitousDocumentsScope<span style="color: black;">, </span><span style="color: #c301a4;">nil</span><span style="color: black;">]];</span></div>
<div style="font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;">
</div>
<div style="color: #480083; font-family: Menlo; font-size: 11px; line-height: normal;">
<span style="color: black;"> [</span><span style="color: #4b8087;">query</span><span style="color: black;"> </span>setPredicate<span style="color: black;">:[</span><span style="color: #7a25ab;">NSPredicate</span><span style="color: black;"> </span>predicateWithFormat<span style="color: black;">:</span><span style="color: #d73321;">@"kMDItemFSName LIKE '*.png'"</span><span style="color: black;">]];</span></div>
<div style="font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;">
</div>
<div style="color: #7a25ab; font-family: Menlo; font-size: 11px; line-height: normal;">
<span style="color: black;"> [[</span>NSNotificationCenter<span style="color: black;"> </span><span style="color: #480083;">defaultCenter</span><span style="color: black;">] </span><span style="color: #480083;">addObserver</span><span style="color: black;">:</span><span style="color: #c301a4;">self</span><span style="color: black;"> </span><span style="color: #480083;">selector</span><span style="color: black;">:</span><span style="color: #c301a4;">@selector</span><span style="color: black;">(queryHandler:)</span><span style="color: #480083;">name</span><span style="color: black;">:</span>NSMetadataQueryDidFinishGatheringNotification<span style="color: black;"> </span><span style="color: #480083;">object</span><span style="color: black;">:</span><span style="color: #4b8087;">query</span><span style="color: black;">];</span></div>
<div style="font-family: Menlo; font-size: 11px; line-height: normal; min-height: 13px;">
</div>
<div style="font-family: Menlo; font-size: 11px; line-height: normal;">
[<span style="color: #4b8087;">query</span> <span style="color: #480083;">startQuery</span>];</div>
</div>
<div style="direction: ltr; margin: 4.08pt 0px 6pt 0in; padding: 0px; text-indent: 0in; unicode-bidi: embed; word-break: normal;">
<span style="color: #444444;"> </span></div>
<div style="font-family: Menlo; font-size: 11px; line-height: normal;">
- (<span style="color: #c301a4;">void</span>)queryHandler: (<span style="color: #7a25ab;">NSNotification</span> *) inNotification{</div>
<div style="color: #d73321; font-family: Menlo; font-size: 11px; line-height: normal;">
<span style="color: black;"> </span><span style="color: #480083;">NSLog</span><span style="color: black;">(</span>@"The number of results: %i"<span style="color: black;">, (</span><span style="color: #c301a4;">int</span><span style="color: black;">)[</span><span style="color: #4b8087;">query</span><span style="color: black;"> </span><span style="color: #480083;">resultCount</span><span style="color: black;">]);</span></div>
<div style="direction: ltr; margin: 4.08pt 0px 6pt 0in; padding: 0px; text-indent: 0in; unicode-bidi: embed; word-break: normal;">
<span style="font-family: Menlo; font-size: 11px; line-height: normal; text-indent: -0.38in;">}</span><span style="color: #444444;"> </span></div>
<div style="direction: ltr; margin: 4.08pt 0px 6pt 0in; padding: 0px; text-indent: 0in; unicode-bidi: embed; word-break: normal;">
<br /></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-51050318362265011202013-04-02T23:52:00.003-07:002013-04-02T23:52:54.734-07:00iOS 6 SDK: Displaying App Store Products In-App<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
Have you ever had the need to send a customer from your iOS application to the App Store? Maybe you wanted her to rate your application in the App Store or you just wanted to promote one of your other apps. Prior to iOS 6, the only viable option was to send the customer to the App Store application. In iOS 6, however, Apple introduced the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code> class, which allows an application to show a product in the App Store without leaving the application. In this quick tip, I will show you how this works.</div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
<span id="more-15055" style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></span></div>
<hr style="background-color: #dfdfdf; border: none; clear: both; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; height: 1px; line-height: 21px; margin: 30px 0px; text-align: -webkit-auto; width: 680px;" />
<h4 style="text-align: left;">
Store Kit</h4>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
As its class prefix indicates, the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code> class is a member of the <strong style="border: 0px; color: black; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Store Kit</strong>framework. Using <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code> is incredibly easy. Before we take a look at an example application, it is useful to understand how everything fits together.</div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
The <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code> class is a subclass of <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">UIViewController</code>, which means that it is easy to use if you are familiar with view controllers. Whenever you want to show a customer a product in the App Store, you (1) instantiate an instance of the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code> class, (2) set its delegate, and (3) present the store product view controller to the customer. The operating system takes care of the rest. Keep in mind that an instance of the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code> class can only be presented modally.</div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
The <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewControllerDelegate</code> delegate protocol defines a single method,<code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">productViewControllerDidFinish:</code>. This method is called when the customer leaves the App Store, usually by tapping the cancel button in the top left of the view. By sending the delegate the message of<code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">productViewControllerDidFinish:</code>, the operating system gives control back to your application. Let me show you how to use the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code> class by creating a sample application.</div>
<hr style="background-color: #dfdfdf; border: none; clear: both; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; height: 1px; line-height: 21px; margin: 30px 0px; text-align: -webkit-auto; width: 680px;" />
<h4 style="text-align: left;">
Setting Up the Project</h4>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
The application that we are about to build is not very functional as it only has one button, which takes the user to the App Store and shows the user <a href="https://itunes.apple.com/us/app/drizzle/id594467299?mt=8" style="border: 0px; color: #dbb426; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Drizzle</a>, a simple weather application that I released a few weeks ago. However, it shows you how the different pieces fit together and how to use the<code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code> class in your projects.</div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
Create a new project in Xcode by selecting the <strong style="border: 0px; color: black; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Single View Application</strong> template from the list of templates (figure 1). Name your application <strong style="border: 0px; color: black; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">App Store</strong>, enter a company identifier, set <strong style="border: 0px; color: black; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">iPhone</strong> for the device family, and check <strong style="border: 0px; color: black; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Use Automatic Reference Counting</strong>. The rest of the checkboxes can be left unchecked for this project (figure 2). Tell Xcode where you want to save the project and hit the <strong style="border: 0px; color: black; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Create</strong> button.</div>
<div class="tutorial_image" style="background-color: #f4f4f4; border: 1px solid rgb(221, 221, 221); color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-style: italic; line-height: 21px; margin: 0px 0px 30px; outline: 0px; overflow: hidden; padding: 20px 20px 15px; text-align: center; vertical-align: baseline;">
<img alt="New in iOS 6: SKStoreProductViewController: Choosing a Project Template - Figure 1" original="http://cdn.tutsplus.com/mobile.tutsplus.com/authors/bart-jacobs/figure-20130221-01.png" src="http://cdn.tutsplus.com/mobile.tutsplus.com/authors/bart-jacobs/figure-20130221-01.png" style="border: 1px solid rgb(137, 137, 137); display: inline; font-family: inherit; font-style: inherit; margin: auto; max-width: 640px; outline: 0px; padding: 0px; vertical-align: baseline;" /></div>
<div class="tutorial_image" style="background-color: #f4f4f4; border: 1px solid rgb(221, 221, 221); color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-style: italic; line-height: 21px; margin: 0px 0px 30px; outline: 0px; overflow: hidden; padding: 20px 20px 15px; text-align: center; vertical-align: baseline;">
<img alt="New in iOS 6: SKStoreProductViewController: Configuring the New Project - Figure 2" original="http://cdn.tutsplus.com/mobile.tutsplus.com/authors/bart-jacobs/figure-20130221-02.png" src="http://cdn.tutsplus.com/mobile.tutsplus.com/authors/bart-jacobs/figure-20130221-02.png" style="border: 1px solid rgb(137, 137, 137); display: inline; font-family: inherit; font-style: inherit; margin: auto; max-width: 640px; outline: 0px; padding: 0px; vertical-align: baseline;" /></div>
<h4 style="text-align: left;">
Adding the Store Kit Framework</h4>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
Because the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code> class is part of the Store Kit framework, we need to link our project against the Store Kit framework. Select the project in the <strong style="border: 0px; color: black; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Project Navigator</strong> and choose the target in the list of targets. At the top, choose the <strong style="border: 0px; color: black; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Build Phases</strong> tab and open the <strong style="border: 0px; color: black; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Link Binary With Libraries</strong> drawer. Click the button with the plus sign and choose <strong style="border: 0px; color: black; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">StoreKit.framework</strong> form the list that appears (figure 3). You have now successfully linked your project against the Store Kit framework.</div>
<div class="tutorial_image" style="background-color: #f4f4f4; border: 1px solid rgb(221, 221, 221); color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-style: italic; line-height: 21px; margin: 0px 0px 30px; outline: 0px; overflow: hidden; padding: 20px 20px 15px; text-align: center; vertical-align: baseline;">
<img alt="New in iOS 6: SKStoreProductViewController: Linking the Project Against the Store Kit Framework - Figure 3" original="http://cdn.tutsplus.com/mobile.tutsplus.com/authors/bart-jacobs/figure-20130221-03.png" src="http://cdn.tutsplus.com/mobile.tutsplus.com/authors/bart-jacobs/figure-20130221-03.png" style="border: 1px solid rgb(137, 137, 137); display: inline; font-family: inherit; font-style: inherit; margin: auto; max-width: 640px; outline: 0px; padding: 0px; vertical-align: baseline;" /></div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
To use the Store Kit framework in the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">MTViewController</code> class, we need to import the framework’s header files. Open <strong style="border: 0px; color: black; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">MTViewController.h</strong> and add the following import statement at the top.</div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; outline: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_917222" style="background-color: white !important; border: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; margin: 1em 0px !important; outline: 0px; overflow: auto !important; padding: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-spacing: 0px; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 20px 0px; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 680px;"><tbody style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-image: none !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 4px; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
</td><td class="code" style="background-image: none !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 4px; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 648px;"><div class="container" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc preprocessor" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">#import <StoreKit/StoreKit.h></code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<hr style="background-color: #dfdfdf; border: none; clear: both; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; height: 1px; line-height: 21px; margin: 30px 0px; text-align: -webkit-auto; width: 680px;" />
<h4 style="text-align: left;">
<span style="line-height: 1.1em;">Using the</span><code style="border: 0px; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; font-weight: inherit; line-height: 1.1em; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code><span style="line-height: 1.1em;">Class</span> </h4>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
In the view controller’s <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">viewDidLoad</code> method, create a new button as shown in the snippet below. The button is of type <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">UIButtonTypeRoundedRect</code> and we position it at the center of the view controller’s view. We also give it a descriptive title and add a target-action pair to the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">UIControlEventTouchUpInside</code>event. This means that whenever the user taps the button, the view controller receives a message of<code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">openAppStore:</code>. This is the method where the magic happens.</div>
<div class="tutorial_image" style="background-color: #f4f4f4; border: 1px solid rgb(221, 221, 221); color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-style: italic; line-height: 21px; margin: 0px 0px 30px; outline: 0px; overflow: hidden; padding: 20px 20px 15px; text-align: center; vertical-align: baseline;">
<ins style="border: none; display: inline-table; font-family: inherit; font-style: inherit; height: 250px; margin: 0px; outline: 0px; padding: 0px; position: relative; vertical-align: baseline; visibility: visible; width: 300px;"><ins id="aswift_0_anchor" style="border: none; display: block; font-family: inherit; font-style: inherit; height: 250px; margin: 0px; outline: 0px; padding: 0px; position: relative; vertical-align: baseline; visibility: visible; width: 300px;"><iframe allowtransparency="true" frameborder="0" height="250" hspace="0" id="aswift_0" marginheight="0" marginwidth="0" name="aswift_0" scrolling="no" style="border-width: 0px; font-family: inherit; font-style: inherit; left: 0px; margin: 0px; outline: 0px; overflow: hidden; padding: 0px; position: absolute; top: 0px; vertical-align: baseline;" vspace="0" width="300"></iframe></ins></ins></div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; outline: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_177999" style="background-color: white !important; border: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; margin: 1em 0px !important; outline: 0px; overflow: auto !important; padding: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-spacing: 0px; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 20px 0px; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 908px;"><tbody style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-image: none !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 4px; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
<div class="line number3 index2 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
3</div>
<div class="line number4 index3 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
4</div>
<div class="line number5 index4 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
5</div>
<div class="line number6 index5 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
6</div>
<div class="line number7 index6 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
7</div>
<div class="line number8 index7 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
8</div>
<div class="line number9 index8 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
9</div>
<div class="line number10 index9 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
10</div>
<div class="line number11 index10 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
11</div>
</td><td class="code" style="background-image: none !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 4px; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 868px;"><div class="container" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">- (</code><code class="objc datatypes" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">void</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">)viewDidLoad {</code></div>
<div class="line number2 index1 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">super</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">viewDidLoad];</code></div>
<div class="line number3 index2 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc comment" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">// Initialize Button</code></div>
<div class="line number4 index3 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];</code></div>
<div class="line number5 index4 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[button setTitle:</code><code class="objc string" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@"Go to App Store"</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">forState:UIControlStateNormal];</code></div>
<div class="line number6 index5 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[button setFrame:CGRectMake(0.0, 0.0, 200.0, 44.0)];</code></div>
<div class="line number7 index6 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[button setCenter:</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.view.center];</code></div>
<div class="line number8 index7 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.view addSubview:button];</code></div>
<div class="line number9 index8 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc comment" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">// Add Target-Action Pair</code></div>
<div class="line number10 index9 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[button addTarget:</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">action:</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@selector</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(openAppStore:) forControlEvents:UIControlEventTouchUpInside];</code></div>
<div class="line number11 index10 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
In the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">openAppStore:</code> method, we initialize an instance of the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code> class, set the delegate to <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">self</code>, and send it a message of <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">loadProductWithParameters:completionBlock:</code>. The <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">loadProductWithParameters:completionBlock:</code> accepts two arguments, (1) a dictionary with a key specifying the application identifier of the application that we want to show to the user and (2) a completion block. The completion block is executed when the request to the App Store is finished. In the completion block, we verify if no error was thrown and present the store product view controller to the user. Keep in mind that even though the user doesn’t leave your application, the operating system does connect to the App Store under the hood. It is also important to note that the request to the App Store can take a non-trivial amount of time. In other words, it is good practice to show an activity indicator to the user as long as the request has not returned a response. The completion block will allow us to dismiss the activity indicator once the request has finished, successfully or unsuccessfully.</div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; outline: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_675857" style="background-color: white !important; border: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; margin: 1em 0px !important; outline: 0px; overflow: auto !important; padding: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-spacing: 0px; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 20px 0px; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 1412px;"><tbody style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-image: none !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 4px; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
<div class="line number3 index2 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
3</div>
<div class="line number4 index3 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
4</div>
<div class="line number5 index4 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
5</div>
<div class="line number6 index5 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
6</div>
<div class="line number7 index6 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
7</div>
<div class="line number8 index7 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
8</div>
<div class="line number9 index8 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
9</div>
<div class="line number10 index9 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
10</div>
<div class="line number11 index10 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
11</div>
<div class="line number12 index11 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
12</div>
<div class="line number13 index12 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
13</div>
<div class="line number14 index13 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
14</div>
</td><td class="code" style="background-image: none !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 4px; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 1372px;"><div class="container" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">- (</code><code class="objc datatypes" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">void</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">)openAppStore:(</code><code class="objc datatypes" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">id</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">)sender {</code></div>
<div class="line number2 index1 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc comment" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">// Initialize Product View Controller</code></div>
<div class="line number3 index2 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">SKStoreProductViewController *storeProductViewController = [[SKStoreProductViewController alloc] init];</code></div>
<div class="line number4 index3 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc comment" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">// Configure View Controller</code></div>
<div class="line number5 index4 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[storeProductViewController setDelegate:</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">];</code></div>
<div class="line number6 index5 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[storeProductViewController loadProductWithParameters:@{SKStoreProductParameterITunesItemIdentifier : </code><code class="objc string" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@"594467299"</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">} completionBlock:^(</code><code class="objc datatypes" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">BOOL</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">result, </code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">NSError</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">*error) {</code></div>
<div class="line number7 index6 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">if</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(error) {</code></div>
<div class="line number8 index7 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">NSLog</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(</code><code class="objc string" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: blue !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@"Error %@ with User Info %@."</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, error, [error userInfo]);</code></div>
<div class="line number9 index8 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">} </code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">else</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">{</code></div>
<div class="line number10 index9 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc comment" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">// Present Store Product View Controller</code></div>
<div class="line number11 index10 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">presentViewController:storeProductViewController animated:</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">YES</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">completion:</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">nil</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">];</code></div>
<div class="line number12 index11 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number13 index12 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}];</code></div>
<div class="line number14 index13 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div class="tip-shortcode" style="background-color: #efefef; background-image: url(http://mobile.tutsplus.com/wp-content/themes/tuts/images/global/tip-icon.png); background-position: 22px 18px; background-repeat: no-repeat no-repeat; border: 1px solid rgb(167, 167, 167); color: #383838; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18px; margin: 0px 0px 15px; min-height: 54px; outline: 0px; padding: 20px 25px 20px 100px; text-align: -webkit-auto; vertical-align: baseline;">
<div style="border: 0px; font-family: inherit; font-style: inherit; outline: 0px; padding: 0px 0px 15px; vertical-align: baseline;">
You can find the unique identifier of an application in iTunes Connect. Every application in the App Store is given a unique identifier or <strong style="border: 0px; color: black; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Apple ID</strong>. Note that you need to pass the Apple ID in the parameters dictionary as a string.</div>
</div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
Before building and running the application, we need to conform the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">MTViewController</code> class to the<code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewControllerDelegate</code> protocol by implementing the<code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">productViewControllerDidFinish:</code> method. We start by updating the view controller’s interface file by telling the compiler that the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">MTViewController</code> class conforms to the<code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewControllerDelegate</code> protocol (see below).</div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; outline: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_962470" style="background-color: white !important; border: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; margin: 1em 0px !important; outline: 0px; overflow: auto !important; padding: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-spacing: 0px; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 20px 0px; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 740px;"><tbody style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-image: none !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 4px; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
<div class="line number3 index2 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
3</div>
<div class="line number4 index3 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
4</div>
</td><td class="code" style="background-image: none !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 4px; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 708px;"><div class="container" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc preprocessor" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">#import <UIKit/UIKit.h></code></div>
<div class="line number2 index1 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc preprocessor" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">#import <StoreKit/StoreKit.h></code></div>
<div class="line number3 index2 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@interface</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">MTViewController : UIViewController <SKStoreProductViewControllerDelegate></code></div>
<div class="line number4 index3 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@end</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
In the view controller’s implementation file, implement the <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">productViewControllerDidFinish:</code> method as shown below. Remember that the store product view controller is presented modally when we invoke the<code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">loadProductWithParameters:completionBlock:</code> method. It is our responsibility to dismiss the store product view controller when the customer decides to leave the App Store.</div>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; outline: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_383516" style="background-color: white !important; border: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; margin: 1em 0px !important; outline: 0px; overflow: auto !important; padding: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-spacing: 0px; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 20px 0px; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 756px;"><tbody style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-image: none !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 4px; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
<div class="line number3 index2 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
3</div>
</td><td class="code" style="background-image: none !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 4px; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 724px;"><div class="container" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">- (</code><code class="objc datatypes" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">void</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">)productViewControllerDidFinish:(SKStoreProductViewController *)viewController {</code></div>
<div class="line number2 index1 alt1" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">dismissViewControllerAnimated:</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">YES</code> <code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">completion:</code><code class="objc keyword" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">nil</code><code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">];</code></div>
<div class="line number3 index2 alt2" style="background-color: white !important; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<hr style="background-color: #dfdfdf; border: none; clear: both; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; height: 1px; line-height: 21px; margin: 30px 0px; text-align: -webkit-auto; width: 680px;" />
<h4 style="text-align: left;">
Build and Run</h4>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
Build and run the application to try it out. Even though Apple advertises the<code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code> class as a way to show other apps to your users, it is also an ideal way to give users the chance to rate or review an app in the App Store without the hassle of leaving your application.</div>
<div class="tutorial_image" style="background-color: #f4f4f4; border: 1px solid rgb(221, 221, 221); color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-style: italic; line-height: 21px; margin: 0px 0px 30px; outline: 0px; overflow: hidden; padding: 20px 20px 15px; text-align: center; vertical-align: baseline;">
<img alt="New in iOS 6: SKStoreProductViewController: The Store Product View Controller in Action - Figure 4" original="http://cdn.tutsplus.com/mobile.tutsplus.com/authors/bart-jacobs/figure-20130221-04.png" src="http://cdn.tutsplus.com/mobile.tutsplus.com/authors/bart-jacobs/figure-20130221-04.png" style="border: 1px solid rgb(137, 137, 137); display: inline; font-family: inherit; font-style: inherit; margin: auto; max-width: 640px; outline: 0px; padding: 0px; vertical-align: baseline;" /></div>
<hr style="background-color: #dfdfdf; border: none; clear: both; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; height: 1px; line-height: 21px; margin: 30px 0px; text-align: -webkit-auto; width: 680px;" />
<h2 style="border: 0px; font-family: Helvetica, Arial; font-size: 36px; letter-spacing: -1px; line-height: 1.1em; margin: 0px; outline: 0px; padding: 0px 0px 20px; text-align: -webkit-auto; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
<br /></h2>
<div style="border: 0px; color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; outline: 0px; padding: 0px 0px 15px; text-align: -webkit-auto; vertical-align: baseline;">
The <code style="border: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SKStoreProductViewController</code> class is a welcome addition to the Store Kit framework and I have already taken advantage of this new addition in some of my applications. I hope that I have convinced you of its usefulness with this quick tip.</div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-65476122239654007372013-04-01T20:50:00.000-07:002013-04-01T20:50:45.590-07:00Implementation of HTTP Live Streaming in iOS<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<pre class="default prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="com" style="background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;">#import <MediaPlayer/MediaPlayer.h></span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="lit" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;">@interface</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">ViewController</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">()</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="lit" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;">@property</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">strong</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">,</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> nonatomic</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">MPMoviePlayerController</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">*</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">streamPlayer</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="lit" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;">@end</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="lit" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;">@implementation</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">ViewController</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="lit" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;">@synthesize</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> streamPlayer </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> _streamPlayer</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">void</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">viewDidLoad
</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">[</span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">super</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> viewDidLoad</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
NSURL </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">*</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">streamURL </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">[</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">NSURL </span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">URLWithString</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">:@</span><span class="str" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;">"http://www.thumbafon.com/code_examples/video/segment_example/prog_index.m3u8"</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
_streamPlayer </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">[[</span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">MPMoviePlayerController</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> alloc</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">]</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> initWithContentURL</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">:</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">streamURL</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;">// depending on your implementation your view may not have it's bounds set here</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;">// in that case consider calling the following 4 msgs later</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">[</span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">self</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">streamPlayer</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">view setFrame</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">:</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">self</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">view</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">bounds</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">self</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">streamPlayer</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">controlStyle </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-color: transparent; border: 0px; color: #2b91af; margin: 0px; padding: 0px; vertical-align: baseline;">MPMovieControlStyleEmbedded</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">[</span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">self</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">view addSubview</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">:</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">self</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">streamPlayer</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">view</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">[</span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">self</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">streamPlayer play</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="kwd" style="background-color: transparent; border: 0px; color: darkblue; margin: 0px; padding: 0px; vertical-align: baseline;">void</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">dealloc
</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;">// if non-ARC don't forget!</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;">// [_streamPlayer release];</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="background-color: transparent; border: 0px; color: grey; margin: 0px; padding: 0px; vertical-align: baseline;">// [super dealloc];</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="lit" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;">@end</span></code></pre>
<pre class="default prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="lit" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;">
</span></code></pre>
<pre class="default prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="lit" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="background-color: white; color: black; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; white-space: normal;">(Source: </span><a href="http://developer.apple.com/library/ios/#documentation/networkinginternet/conceptual/streamingmediaguide/DeployingHTTPLiveStreaming/DeployingHTTPLiveStreaming.html#//apple_ref/doc/uid/TP40008332-CH2-DontLinkElementID_29" style="background-color: white; border: 0px; color: #4a6b82; cursor: pointer; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline; white-space: normal;">Apple HTTP Live Streaming Overview</a><span style="background-color: white; color: black; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; white-space: normal;">)</span></span></code></pre>
<pre class="default prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="lit" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="background-color: white; color: black; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; white-space: normal;">
</span></span></code></pre>
<pre class="default prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="lit" style="background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;"><a href="http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPMoviePlayerController_Class/Reference/Reference.html" rel="nofollow" style="background-color: white; border: 0px; color: #4a6b82; cursor: pointer; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; margin: 0px; padding: 0px; vertical-align: baseline; white-space: normal;">http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPMoviePlayerController_Class/Reference/Reference.html</a></span></code></pre>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-61993728457339507842013-03-22T04:54:00.002-07:002013-03-22T04:54:55.154-07:00iOS interview questions and Answers<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">1-How would you create your own custom view?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
By Subclassing the UIView class.</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">2-Whats fast enumeration</strong>?</div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Fast enumeration is a language feature that allows you to enumerate over the contents of a collection. (Your code will also run faster because the internal implementation reduces<br />message send overhead and increases pipelining potential.)</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">3-Whats a struct?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
A struct is a special C data type that encapsulates other pieces of data into a single cohesive unit. Like an object, but built into C.</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">4-<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">What are mutable and immutable types in Objective C?</strong><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</strong></strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Mutable means you can change its contents later but when you mark any object immutable, it means once they are initialized, their values cannot be changed. For example, NSArray, NSString values cannot be changed after initialized.</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">5-Explain retain counts</strong>.</div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Retain counts are the way in which memory is managed in Objective-C. When you create an object, it has a retain count of 1. When you send an object a retain message, its retain count is incremented by 1. When you send an object a release message, its retain count is decremented by 1. When you send an object a autorelease message, its retain count is decremented by 1 at some stage in the future. If an objectʼs retain count is reduced to 0, it is deallocated.</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">6-Whats the difference between frame and bounds</strong>?</div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
The frame of a view is the rectangle, expressed as a location (x,y) and size (width,height) relative to the superview it is contained within. The bounds of a view is the rectangle, expressed as a location (x,y) and size (width,height) relative to its own coordinate system (0,0).</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">7-Is a delegate retained</strong>?</div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
No, the delegate is never retained! Ever!</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">8-Outline the class hierarchy for a UIButton until NSObject.</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
UIButton inherits from UIControl, UIControl inherits from UIView, UIView inherits from UIResponder, UIResponder inherits from the root class NSObject</div>
</blockquote>
<h3 style="background-color: white; border: 0px; clear: both; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 20px; font-weight: normal; margin: 0.425em 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">9- What is <code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-weight: normal; margin: 0px; padding: 0px; vertical-align: baseline;">dynamic</code>?</strong></h3>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
You use the <code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; line-height: normal; margin: 0px; padding: 0px; vertical-align: baseline;">@dynamic</code> keyword to tell the compiler that you will fulfill the API contract implied by a property either by providing method implementations directly or at runtime using other mechanisms such as dynamic loading of code or dynamic method resolution. It suppresses the warnings that the compiler would otherwise generate if it can’t find suitable implementations. You should use it only if you know that the methods will be available at runtime</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">10-If I call performSelector:withObject:afterDelay: – is the object retained?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Yes, the object is retained. It creates a timer that calls a selector on the current threads run loop. It may not be 100% precise time-wise as it attempts to dequeue the message from<br />the run loop and perform the selector.</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">11-Can you explain what happens when you call autorelease on an object?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
When you send an object a autorelease message, its retain count is decremented by 1 at some stage in the future. The object is added to an autorelease pool on the current thread. The main thread loop creates an autorelease pool at the beginning of the function, and release it at the end. This establishes a pool for the lifetime of the task. However, this also means that any autoreleased objects created during the lifetime of the task are not disposed of until the task completes. This may lead to the taskʼs memory footprint increasing unnecessarily. You can also consider creating pools with a narrower scope or use NSOperationQueue with itʼs own autorelease pool. (Also important – You only release or autorelease objects you own.)</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">12-Whats the NSCoder class used for?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
NSCoder is an abstractClass which represents a stream of data. They are used in Archiving and Unarchiving objects. NSCoder objects are usually used in a method that is being implemented so that the class conforms to the protocol. (which has something like encodeObject and decodeObject methods in them).</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">13-Whats an NSOperationQueue and how/would you use it?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
The NSOperationQueue class regulates the execution of a set of NSOperation objects. An operation queue is generally used to perform some asynchronous operations on a background thread so as not to block the main thread.</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">14-Explain the correct way to manage Outlets memory</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Create them as properties in the header that are retained. In the viewDidUnload set the outlets to nil(i.e self.outlet = nil). Finally in dealloc make sure to release the outlet.</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">15-Is the delegate for a CAAnimation retained?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Yes it is!! This is one of the rare exceptions to memory management rules.</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">16-What happens when the following code executes?</strong></div>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Ball *ball = [[[[Ball alloc] init] autorelease] autorelease];</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
It will crash because itʼs added twice to the autorelease pool and when it it dequeued the autorelease pool calls release more than once.</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">17-Explain the difference between NSOperationQueue concurrent and non-concurrent.</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
In the context of an NSOperation object, which runs in an NSOperationQueue, the terms concurrent and non-concurrent do not necessarily refer to the side-by-side execution of threads. Instead, a non-concurrent operation is one that executes using the environment that is provided for it while a concurrent operation is responsible for setting up its own execution environment.</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">18-Implement your own synthesized methods for the property NSString *title.</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Well you would want to implement the getter and setter for the title object. Something like this: view source print?</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
- (NSString*) title // Getter method</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
{</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
return title;</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
}</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
- (void) setTitle: (NSString*) newTitle //Setter method</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
{</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
if (newTitle != title)</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
{</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[title release];</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
title = [newTitle retain]; // Or copy, depending on your needs.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
}</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
}</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">19-Implement the following methods: retain, release, autorelease.</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
-(id)retain</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
{</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
NSIncrementExtraRefCount(self);</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
return self;</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
}</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
-(void)release</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
{</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
if(NSDecrementExtraRefCountWasZero(self))</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
{</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
NSDeallocateObject(self);</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
}</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
}</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
-(id)autorelease</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
{ // Add the object to the autorelease pool</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[NSAutoreleasePool addObject:self];</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
return self<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">20-<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">What are the App states. Explain them?</strong></strong></div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<ul style="background-color: transparent; border: 0px; line-height: 19px; list-style-image: initial; list-style-position: initial; margin: 0.4em 0px 1em; padding: 0px; vertical-align: baseline;">
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;"><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Not running State</strong>: The app has not been launched or was running but was terminated by the system.</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;"><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Inactive state:</strong> The app is running in the foreground but is currently not receiving events. (It may be executing other code though.) An app usually stays in this state only briefly as it transitions to a different state. The only time it stays inactive for any period of time is when the user locks the screen or the system prompts the user to respond to some event, such as an incoming phone call or SMS message.</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;"><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Active state</strong>: The app is running in the foreground and is receiving events. This is the normal mode for foreground apps.</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;"><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Background state</strong>: The app is in the background and executing code. Most apps enter this state briefly on their way to being suspended. However, an app that requests extra execution time may remain in this state for a period of time. In addition, an app being launched directly into the background enters this state instead of the inactive state. For information about how to execute code while in the background, see “Background Execution and Multitasking.”</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;"><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Suspended state:</strong>The app is in the background but is not executing code. The system moves apps to this state automatically and does not notify them before doing so. While suspended, an app remains in memory but does not execute any code. When a low-memory condition occurs, the system may purge suspended apps without notice to make more space for the foreground app.</li>
</ul>
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">21-What is Automatic Reference Counting (ARC) ?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
ARC is a compiler-level feature that simplifies the process of managing the lifetimes of Objective-C objects. Instead of you having to remember when to retain or release an object, ARC evaluates the lifetime requirements of your objects and automatically inserts the appropriate method calls at compile time.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">22-Multitasking support is available from which version?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
iOS 4 and above supports multi-tasking and allows apps to remain in the background until they are launched again or until they are terminated.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">23-How many bytes we can send to apple push notification server.</strong></div>
</div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
256bytes.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">24-What is the difference between retain & assign?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Assign</strong> creates a reference from one object to another without increasing the source’s retain count.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">if (_variable != object)</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">{</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">[_variable release];</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">_variable = nil;</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">_variable = object;</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">}</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Retain</strong> creates a reference from one object to another and increases the retain count of the source object.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">if (_variable != object)</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">{ [_variable release];</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">_variable = nil;</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">_variable = [object retain];</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">}</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">25-Why do we need to use @Synthesize?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
We can use generated code like nonatomic, atmoic, retain without writing any lines of code. We also have getter and setter methods. To use this, you have 2 other ways: @synthesize or @dynamic: @synthesize, compiler will generate the getter and setter automatically for you, @dynamic: you have to write them yourself.@property is really good for memory management, for example: retain.How can you do retain without @property?<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;"></code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">if (_variable != object)</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">{</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">[_variable release];</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">_variable = nil;</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">_variable = [object retain];</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">}</code></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
How can you use it with @property?<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">self.variable = object;</code>When we are calling the above line, we actually call the setter like [self setVariable:object] and then the generated setter will do its job</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">26-What is categories in iOS?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
A Category is a feature of the Objective-C language that enables you to add methods (interface and implementation) to a class without having to make a subclass. There is no runtime difference—within the scope of your program—between the original methods of the class and the methods added by the category. The methods in the category become part of the class type and are inherited by all the class’s subclasses.As with delegation, categories are not a strict adaptation of the Decorator pattern, fulfilling the intent but taking a different path to implementing that intent. The behavior added by categories is a compile-time artifact, and is not something dynamically acquired. Moreover, categories do not encapsulate an instance of the class being extended.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">27-What is Delegation in iOS?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Delegation is a design pattern in which one object sends messages to another object—specified as its delegate—to ask for input or to notify it that an event is occurring. Delegation is often used as an alternative to class inheritance to extend the functionality of reusable objects. For example, before a window changes size, it asks its delegate whether the new size is ok. The delegate replies to the window, telling it that the suggested size is acceptable or suggesting a better size. (For more details on window resizing, see the<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;"><a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/NSWindowDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/NSWindowDelegate/windowWillResize:toSize:" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #0071bb; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;" target="_self">windowWillResize:toSize:</a></code> message.)Delegate methods are typically grouped into a protocol. A protocol is basically just a list of methods. The delegate protocol specifies all the messages an object might send to its delegate. If a class conforms to (or <em style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">adopts</em>) a protocol, it guarantees that it implements the required methods of a protocol. (Protocols may also include optional methods).In this application, the application object tells its delegate that the main startup routines have finished by sending it the<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;"><a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/NSApplicationDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/NSApplicationDelegate/applicationDidFinishLaunching:" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #0071bb; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;" target="_self">applicationDidFinishLaunching:</a></code> message. The delegate is then able to perform additional tasks if it wants.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">28-How can we achieve singleton pattern in iOS?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
The Singleton design pattern ensures a class only has one instance, and provides a global point of access to it. The class keeps track of its sole instance and ensures that no other instance can be created. Singleton classes are appropriate for situations where it makes sense for a single object to provide access to a global resource.Several Cocoa framework classes are singletons. They include<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;"><a href="https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html#//apple_ref/occ/cl/NSFileManager" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #0071bb; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;" target="_self">NSFileManager</a></code>, <code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">NSWorkspace</code>, <code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">NSApplication</code>, and, in UIKit,<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;"><a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html#//apple_ref/occ/cl/UIApplication" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #0071bb; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;" target="_self">UIApplication</a></code>. A process is limited to one instance of these classes. When a client asks the class for an instance, it gets a shared instance, which is lazily created upon the first request.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">29-What is delegate pattern in iOS?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Delegation is a mechanism by which a host object embeds a weak reference (weak in the sense that it’s a simple pointer reference, unretained) to another object—its delegate—and periodically sends messages to the delegate when it requires its input for a task. The host object is generally an “off-the-shelf” framework object (such as an <code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">NSWindow</code> or <code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;"><a href="https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSXMLParser_Class/Reference/Reference.html#//apple_ref/occ/cl/NSXMLParser" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #0071bb; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;" target="_self">NSXMLParser</a></code>object) that is seeking to accomplish something, but can only do so in a generic fashion. The delegate, which is almost always an instance of a custom class, acts in coordination with the host object, supplying program-specific behavior at certain points in the task (see Figure 4-3). Thus delegation makes it possible to modify or extend the behavior of another object without the need for subclassing.Refer: delegate pattern</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">30-What are all the difference between categories and subclasses?Why should we go to subclasses?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Category is a feature of the Objective-C language that enables you to add methods (interface and implementation) to a class without having to make a subclass. There is no runtime difference—within the scope of your program—between the original methods of the class and the methods added by the category. The methods in the category become part of the class type and are inherited by all the class’s subclasses.As with delegation, categories are not a strict adaptation of the Decorator pattern, fulfilling the intent but taking a different path to implementing that intent. The behavior added by categories is a compile-time artifact, and is not something dynamically acquired. Moreover, categories do not encapsulate an instance of the class being extended.The Cocoa frameworks define numerous categories, most of them informal protocols . Often they use categories to group related methods. You may implement categories in your code to extend classes without subclassing or to group related methods. However, you should be aware of these caveats:</div>
<ul style="background-color: transparent; border: 0px; line-height: 19px; list-style-image: initial; list-style-position: initial; margin: 0.4em 0px 1em; padding: 0px; vertical-align: baseline;">
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;">You cannot add instance variables to the class.</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;">If you override existing methods of the class, your application may behave unpredictably.</li>
</ul>
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">31-What is notification in iOS?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
The notification mechanism of Cocoa implements one-to-many broadcast of messages based on the Observer pattern. Objects in a program add themselves or other objects to a list of observers of one or more notifications, each of which is identified by a global string (the notification name). The object that wants to notify other objects—the observed object—creates a notification object and posts it to a notification center. The notification center determines the observers of a particular notification and sends the notification to them via a message. The methods invoked by the notification message must conform to a certain single-parameter signature. The parameter of the method is the notification object, which contains the notification name, the observed object, and a dictionary containing any supplemental information.Posting a notification is a synchronous procedure. The posting object doesn’t regain control until the notification center has broadcast the notification to all observers. For asynchronous behavior, you can put the notification in a notification queue; control returns immediately to the posting object and the notification center broadcasts the notification when it reaches the top of the queue.Regular notifications—that is, those broadcast by the notification center—are intraprocess only. If you want to broadcast notifications to other processes, you can use the istributed notification center and its related API.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">32-What is the difference between delegates and notifications?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
We can use notifications for a variety of reasons. For example, you could broadcast a notification to change how user-interface elements display information based on a certain event elsewhere in the program. Or you could use notifications as a way to ensure that objects in a document save their state before the document window is closed. The general purpose of notifications is to inform other objects of program events so they can respond appropriately.But objects receiving notifications can react only after the event has occurred. This is a significant difference from delegation. The delegate is given a chance to reject or modify the operation proposed by the delegating object. Observing objects, on the other hand, cannot directly affect an impending operation.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">33-What is posing in iOS?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Objective-C permits a class to <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">entirely replace another class</strong> within an application. The replacing class is said to “pose as” the target class. All messages sent to the target class are then instead received by the posing class. There are some restrictions on which classes can pose:</div>
<ul style="background-color: transparent; border: 0px; line-height: 19px; list-style-image: initial; list-style-position: initial; margin: 0.4em 0px 1em; padding: 0px; vertical-align: baseline;">
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;">A class may only pose as one of its direct or indirect superclasses</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;">The posing class must not define any new instance variables which are absent from the target class (though it may define or override methods).</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;">No messages must have been sent to the target class prior to the posing.</li>
</ul>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Posing, similarly to categories, allows <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">globally augmenting existing classes</strong>. Posing permits two features absent from categories:</div>
<ul style="background-color: transparent; border: 0px; line-height: 19px; list-style-image: initial; list-style-position: initial; margin: 0.4em 0px 1em; padding: 0px; vertical-align: baseline;">
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;">A posing class can call overridden methods through super, thus incorporating the implementation of the target class.</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;">A posing class can override methods defined in categories.</li>
</ul>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">34-What is atomic and nonatomic? Which one is safer? Which one is default?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
You can use this attribute to specify that accessor methods are not atomic. (There is no keyword to denote atomic.)</div>
<dl style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0.3em 0px 0.8em; vertical-align: baseline;">
<dt style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-weight: bold; margin: 0px; padding: 0px; text-decoration: underline; vertical-align: baseline;"><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; font-weight: normal; margin: 0px; padding: 0px; vertical-align: baseline;">nonatomic</code></strong></dt>
<dd style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px 0px 1.7em; padding: 0px; vertical-align: baseline;">Specifies that accessors are nonatomic. <em style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">By default, accessors are atomic.</em></dd></dl>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Properties are atomic by default so that synthesized accessors provide robust access to properties in a multithreaded environment—that is, the value returned from the getter or set via the setter is always fully retrieved or set regardless of what other threads are executing concurrently.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
If you specify <code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">strong</code>, <code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">copy</code>, or <code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">retain</code> and do not specify<code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">nonatomic</code>, then in a reference-counted environment, a synthesized get accessor for an object property uses a lock and retains and autoreleases the returned value—the implementation will be similar to the following:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<table style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border-collapse: collapse; border-spacing: 0px; border: 0px; margin: 0.5em 0px 1em; padding: 0px; vertical-align: baseline;"><tbody style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td scope="row" style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;"><pre style="background-color: transparent; border: 1px solid rgb(221, 221, 221); font-family: 'Courier 10 Pitch', Courier, monospace; font-size: 12px; line-height: 1.7; margin-bottom: 1.7em; padding: 0.85em 1.7em; vertical-align: baseline;">[_internal lock]; // lock using an object-level lock</pre>
</td></tr>
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td scope="row" style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;"><pre style="background-color: transparent; border: 1px solid rgb(221, 221, 221); font-family: 'Courier 10 Pitch', Courier, monospace; font-size: 12px; line-height: 1.7; margin-bottom: 1.7em; padding: 0.85em 1.7em; vertical-align: baseline;">id result = [[value retain] autorelease];</pre>
</td></tr>
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td scope="row" style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;"><pre style="background-color: transparent; border: 1px solid rgb(221, 221, 221); font-family: 'Courier 10 Pitch', Courier, monospace; font-size: 12px; line-height: 1.7; margin-bottom: 1.7em; padding: 0.85em 1.7em; vertical-align: baseline;">[_internal unlock];</pre>
</td></tr>
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td scope="row" style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;"><pre style="background-color: transparent; border: 1px solid rgb(221, 221, 221); font-family: 'Courier 10 Pitch', Courier, monospace; font-size: 12px; line-height: 1.7; margin-bottom: 1.7em; padding: 0.85em 1.7em; vertical-align: baseline;">return result;</pre>
</td></tr>
</tbody></table>
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
If you specify <code style="background-color: transparent; border: 0px; font-family: Monaco, Consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace; font-size: 12px; font-style: normal; margin: 0px; padding: 0px; vertical-align: baseline;">nonatomic</code>, a synthesized accessor for an object property simply returns the value directly.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">35-<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Where can you test Apple iPhone apps if you don’t have the device?</strong></strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
iOS Simulator can be used to test mobile applications. Xcode tool that comes along with iOS SDK includes Xcode IDE as well as the iOS Simulator. Xcode also includes all required tools and frameworks for building iOS apps. However, it is strongly recommended to test the app on the real device before publishing it.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">36-Which JSON framework is supported by iOS?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
SBJson framework is supported by iOS. It is a JSON parser and generator for Objective-C. SBJson provides flexible APIs and additional control that makes JSON handling easier.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">37-What are the tools required to develop iOS applications?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
iOS development requires Intel-based Macintosh computer and iOS SDK.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">38- Name the framework that is used to construct application’s user interface for iOS.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
A. The UIKit framework is used to develop application’s user interface for iOS. UIKit framework provides event handling, drawing model, windows, views, and controls specifically designed for a touch screen interface.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">39-Name the application thread from where UIKit classes should be used?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
UIKit classes should be used only from an application’s main thread. Note: The derived classes of UIResponder and the classes which manipulate application’s user interface should be used from application’s main thread.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">40- Which API is used to write test scripts that help in exercising the application’s user interface elements?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
UI Automation API is used to automate test procedures. Tests scripts are written in JavaScript to the UI Automation API. This in turn simulates user interaction with the application and returns log information to the host computer.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">41-Why an app on iOS device behaves differently when running in foreground than in background?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
An application behaves differently when running in foreground than in background because of the limitation of resources on iOS devices.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">42- How can an operating system improve battery life while running an app?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
An app is notified whenever the operating system moves the apps between foreground and background. The operating system improves battery life while it bounds what your app can do in the background. This also improves the user experience with foreground app.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">43-Which framework delivers event to custom object when app is in foreground?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
The UIKit infrastructure takes care of delivering events to custom objects. As an app developer, you have to override methods in the appropriate objects to process those events.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">44-When an app is said to be in not running state?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
An app is said to be in ‘not running’ state when:<br />- it is not launched.<br />- it gets terminated by the system during running.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">45-Assume that your app is running in the foreground but is currently not receiving events. In which sate it would be in?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
An app will be in InActive state if it is running in the foreground but is currently not receiving events. An app stays in InActive state only briefly as it transitions to a different state.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">46- Give example scenarios when an application goes into InActive state?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
An app can get into InActive state when the user locks the screen or the system prompts the user to respond to some event e.g. SMS message, incoming call etc.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">47-When an app is said to be in active state?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
An app is said to be in active state when it is running in foreground and is receiving events.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">48-Name the app sate which it reaches briefly on its way to being suspended</strong></div>
</div>
</div>
</div>
</div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
An app enters background state briefly on its way to being suspended.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">49- Assume that an app is not in foreground but is still executing code. In which state will it be in?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Background state.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">50-An app is loaded into memory but is not executing any code. In which state will it be in?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
An app is said to be in suspended state when it is still in memory but is not executing any code.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">51-Assume that system is running low on memory. What can system do for suspended apps?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
In case system is running low on memory, the system may purge suspended apps without notice.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">52- How can you respond to state transitions on your app?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
On state transitions can be responded to state changes in an appropriate way by calling corresponding methods on app’s delegate object.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<span style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; text-decoration: underline; vertical-align: baseline;">For example: </span>applicationDidBecomeActive method can be used to prepare to run as the foreground app.<br />applicationDidEnterBackground method can be used to execute some code when app is running in the background and may be suspended at any time.<br />applicationWillEnterForeground method can be used to execute some code when your app is moving out of the background<br />applicationWillTerminate method is called when your app is being terminated.</div>
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">53-List down app’s state transitions when it gets launched.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Before the launch of an app, it is said to be in not running state.<br />When an app is launched, it moves to the active or background state, after transitioning briefly through the inactive state.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">54-Who calls the main function of you app during the app launch cycle?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
During app launching, the system creates a main thread for the app and calls the app’s main function on that main thread. The Xcode project’s default main function hands over control to the UIKit framework, which takes care of initializing the app before it is run.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">55-What is the use of controller object UIApplication?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Controller object UIApplication is used without subclassing to manage the application event loop.<br />It coordinates other high-level app behaviors.<br />It works along with the app delegate object which contains app-level logic.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">56-Which object is create by UIApplicationMain function at app launch time?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
The app delegate object is created by UIApplicationMain function at app launch time. The app delegate object’s main job is to handle state transitions within the app.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">57- How is the app delegate is declared by Xcode project templates?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
App delegate is declared as a subclass of UIResponder by Xcode project templates.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">58-What happens if IApplication object does not handle an event?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
In such case the event will be dispatched to your app delegate for processing.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">59- Which app specific objects store the app’s content?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Data model objects are app specific objects and store app’s content. Apps can also use document objects to manage some or all of their data model objects.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">60-Are document objects required for an application? What does they offer?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Document objects are not required but are very useful in grouping data that belongs in a single file or file package.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">61- Which object manage the presentation of app’s content on the screen?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
View controller objects takes care of the presentation of app’s content on the screen. A view controller is used to manage a single view along with the collection of subviews. It makes its views visible by installing them in the app’s window.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">62- Which is the super class of all view controller objects?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
UIViewController class. The functionality for loading views, presenting them, rotating them in response to device rotations, and several other standard system behaviors are provided by UIViewController class.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">63-What is the purpose of UIWindow object?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
The presentation of one or more views on a screen is coordinated by UIWindow object.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">64-How do you change the content of your app in order to change the views displayed in the corresponding window?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
To change the content of your app, you use a view controller to change the views displayed in the corresponding window. Remember, window itself is never replaced.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">65-Define view object.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Views along with controls are used to provide visual representation of the app content. View is an object that draws content in a designated rectangular area and it responds to events within that area.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">66-<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Apart from incorporating views and controls, what else an app can incorporate?</strong></strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Apart from incorporating views and controls, an app can also incorporate Core Animation layers into its view and control hierarchies.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">67- What are layer objects and what do they represent?</strong></div>
</div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Layer objects are data objects which represent visual content. Layer objects are used by views to render their content. Custom layer objects can also be added to the interface to implement complex animations and other types of sophisticated visual effects.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<h3 style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; font-size: 20px; font-weight: normal; margin: 0.425em 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">68-What is App Bundle?</strong></h3>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
When you build your iOS app, Xcode packages it as a bundle. A<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">bundle</strong> is a directory in the file system that groups related resources together in one place. An iOS app bundle contains the app executable file and supporting resource files such as app icons, image files, and localized content.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">69-Define property?</strong></div>
</div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
It is used to access instance variables outside of class.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">70-Why synthesized is used?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
After declaring property we will have to tell compiler instantly by using synthesize directive. This tells the compiler to generate setter and getter methods.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">71-What is retaining?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
It is reference count for an object.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">72- What is webservice?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
To get data in form of xml ,by using this we can get data from a server.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">73-What is parsing?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
To get data from web service we use parsing.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">74-which xml parser we use on iphone?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
“NSXML” Parser.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">75-Which type of parse does iphone support?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
“SAX” parser.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">76-.Name those classes used to establish connection b/w application to webserver?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
(a)NSURL (b)NSURL REQUEST (c)NSURL CONNECTION.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">77-Tell the difference between DOM and SAX Parser?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
(a)Dom is “documents based parser”.<br />b)SAX is a event driven parser</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">78-Name three method of NSXML parser.</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
(1)did start element (2)did end element (3)found character.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">79-Tell methods used in NSURLConnection</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
(1)Connection did receive Response<br />(2)Connection did recevice Datat<br />(3)Connection fail with error<br />(4)Connection did finish loading.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">80-.What is json-parser?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
JSON(Java script object notation)is a parser used to get data from web Server.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">81-.By default which things are in the application?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
iPhone applications by default have 3 things<br />1.main: entry point of application.<br />2.Appdelegate: perform basic application and functionality.<br />3.Window: provide uiinterface.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">82-Tell me about tab bar controller?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
It is used to display the data on the view.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">83-Which are the protocols used in table view?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Table view contain two delegate protocols<br />(1) Uitable view data source<br />(2).Uitable view delegate.<br />ui view table view data source three method namely<br />(1)No of sections.<br />(2)No of rows in sections.<br />(3)Cell for row index path row.<br />In ui table view delegate contain<br />(1)Did select row at index path row</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">84-Name data base used in iphone?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
(1)Sql lite (2)Plist 3)Xml (4)Core Data</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">85-Tell four frameworks used in iphone?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
(1)Ui kit framework<br />(2)Map kit framework<br />(3)ADI kit framework<br />(4)Core data framework<br />(5)core foundation framework</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">86-Tell me about single inheritance in objective-c?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Objective c subclass can derived from a single parent class.It is called “single inheritance”.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">87-Tell me about the MVC architecture?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
M-model, V-view, C-controller</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Main advantage of MVC architecture is to provide “reusability and security” by separating the layer by using MVC architecture.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Model:</b> it is a class model is interact with database.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Controller:</b> controller is used for by getting the data from model and controls the views.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Display the information in views. : View</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">88-What is the instance methods?</strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Instance methods are essentially code routines that perform tasks so instances of clases we create methods to get and set the instance variables and to display the current values of these variables.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Declaration of instance method :</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
– (void)click me: (id)sender;</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Void is return type which does not giving any thing here.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Click me is method name.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Id is data type which returns any type of object.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">89-What is the class method?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Class methods work at the class level and are common to all instance of a class these methods are specific to the class overall as opposed to working on different instance data encapsulated in each class instance.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@interface class name :ns object</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
{</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
}</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
+(class name *)new alloc:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
-(int)total open</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">90-What is data encapsulation?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Data is contained within objects and is not accessible by any other than via methods defined on the class is called data encapsulation.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">91-What is accessor methods?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Accessor methods are methods belonging to a class that allow to get and set the values of instance valuables contained within the class.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">92-What is synthesized accessor methods?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Objective-c provides a mechanism that automates the creation of accessor methods that are called synthesized accessor methods that are implemented through use of the @property and @synthesized.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">93-How to access the encapsulated data in objective-c?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
(a)Data encapsulation encourages the use of methods to +get and set the values of instance variables in a class.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
(b)But the developer to want to directly access an instance variable without having to go through an accessor method.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
(c) In objective-c syntax for an instance variable is as follow [class instance variable name]</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">94-What is dot notation?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Dot notation features introduced into version 2.0 of objective-c. Dot notation involves accessing an instance variable by specifying a class “instance” followed by a “dot” followed in turn by the name of instance variable or property to be accessed.</div>
</blockquote>
</div>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">95-Difference between shallow copy and deep copy?</strong></div>
<blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Shallow copy is also known as address copy. In this process you only copy address not actual data while in deep copy you copy data.<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Suppose there are two objects A and B. A is pointing to a different array while B is pointing to different array. Now what I will do is following to do shallow copy.
Char *A = {‘a’,’b’,’c’};
Char *B = {‘x’,’y’,’z’};
B = A;
Now B is pointing is at same location where A pointer is pointing.Both A and B in this case sharing same data. if change is made both will get altered value of data.Advantage is that coping process is very fast and is independent of size of array.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
while in deep copy data is also copied. This process is slow but Both A and B have their own copies and changes made to any copy, other will copy will not be affected.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</div>
</blockquote>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">96-Difference between categories and extensions?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Class extensions are similar to categories. The main difference is that with an extension, the compiler will expect you to implement the methods within your main @implementation, whereas with a category you have a separate @implementation block. So you should pretty much only use an extension at the top of your main .m file (the only place you should care about ivars, incidentally) — it’s meant to be just that, an extension.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">97-What are KVO and KVC?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">KVC:</strong><b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </b>Normally instance variables are accessed through properties or accessors but KVC gives another way to access variables in form of strings. In this way your class acts like a dictionary and your property name for example “age” becomes key and value that property holds becomes value for that key. For example, you have employee class with name property.<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
You access property like</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
NSString age = emp.age;</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
setting property value.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
emp.age = @”20″;</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Now how KVC works is like this</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[emp valueForKey:@"age"];</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[emp setValue:@"25" forKey:@"age"];</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">KVO :</strong><b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </b>The mechanism through which objects are notified when there is change in any of property is called KVO.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
For example, person object is interested in getting notification when accountBalance property is changed in BankAccount object.To achieve this, Person Object must register as an observer of the BankAccount’s accountBalance property by sending an addObserver:forKeyPath:options:context: message.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">98-Can we use two tableview controllers on one view controller?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Yes, we can use two tableviews on the same view controllers and you can differentiate between two by assigning them tags…or you can also check them by comparing their memory addresses.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">99-Swap the two variable values without taking third variable?</strong><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
int x=10;
int y=5;
x=x+y;
NSLog(@”x==> %d”,x);<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
y=x-y;
NSLog(@”Y Value==> %d”,y);</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
x=x-y;
NSLog(@”x Value==> %d”,x);</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">100-<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">What is push notification?</strong></strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Imagine, you are looking for a job. You go to software company daily and ask sir “is there any job for me” and they keep on saying no. Your time and money is wasted on each trip.(Pull Request mechanism)</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
So, one day owner says, if there is any suitable job for you, I will let you know. In this mechanism, your time and money is not wasted. (Push Mechanism)</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">How it works?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
This service is provided by Apple in which rather than pinging server after specific interval for data which is also called pull mechanism, server will send notification to your device that there is new piece of information for you. Request is initiated by server not the device or client.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Flow of push notification</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Your web server sends message (device token + payload) to Apple push notification service (APNS) , then APNS routes this message to device whose device token specified in notification.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">101-What is polymorphism?</strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
This is very famous question and every interviewer asks this. Few people say polymorphism means multiple forms and they start giving example of draw function which is right to some extent but interviewer is looking for more detailed answer.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Ability of base class pointer to call function from derived class at runtime is called polymorphism.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
For example, there is super class human and there are two subclasses software engineer and hardware engineer. Now super class human can hold reference to any of subclass because software engineer is kind of human. Suppose there is speak function in super class and every subclass has also speak function. So at runtime, super class reference is pointing to whatever subclass, speak function will be called of that class. I hope I am able to make you understand.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">101-What is responder chain?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Suppose you have a hierarchy of views such like there is superview A which have subview B and B has a subview C. Now you touch on inner most view C. The system will send touch event to subview C for handling this event. If C View does not want to handle this event, this event will be passed to its superview B (next responder). If B also does not want to handle this touch event it will pass on to superview A. All the view which can respond to touch events are called responder chain. A view can also pass its events to uiviewcontroller. If view controller also does not want to respond to touch event, it is passed to application object which discards this event.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">102-Can we use one tableview with two different datasources? How you will achieve this?</strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Yes. We can conditionally bind tableviews with two different data sources.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">103-What is a protocol?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
A protocol is a language feature in objective C which provides multiple inheritance in a single inheritance language. Objective C supports two types of protocols:</div>
<ul style="background-color: transparent; border: 0px; line-height: 19px; list-style-image: initial; list-style-position: initial; margin: 0.4em 0px 1em; padding: 0px; vertical-align: baseline;">
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;">Ad hoc protocols called informal protocol</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;">Compiler protocols called formal protocols</li>
</ul>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
You must create your own autorelease pool as soon as the thread begins executing; otherwise, your application will leak objects</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">104-Three occasions when you might use your own autorelease pools:</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<ol style="background-color: transparent; border: 0px; line-height: 19px; list-style-image: initial; list-style-position: initial; margin: 0.4em 0px 1em; padding: 0px; vertical-align: baseline;">
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;">If you are writing a program that is not based on a UI framework, such as a command-line tool.</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;">If you write a loop that creates many temporary objects.You may create an autorelease pool inside the loop to dispose of those objects before the next iteration. Using an autorelease pool in the loop helps to reduce the maximum memory footprint of the application.</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;">If you spawn a secondary thread.</li>
</ol>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">105- InApp purchase product type</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<ol style="background-color: transparent; border: 0px; line-height: 19px; list-style-image: initial; list-style-position: initial; margin: 0.4em 0px 1em; padding: 0px; vertical-align: baseline;">
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;"><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Consumable</strong> products must be purchased each time the user needs that item. For example, one-time services are commonly implemented as consumable products.</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;"><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Non-consumable</strong> products are purchased only once by a particular user. Once a non-consumable product is purchased, it is provided to all devices associated with that user’s iTunes account. Store Kit provides built-in support to restore non-consumable products on multiple devices.</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;"><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Auto-renewable subscriptions </strong>are delivered to all of a user’s devices in the same way as non-consumable products. However, auto-renewable subscriptions differ in other ways. When you create an auto-renewable subscription in iTunes Connect, you choose the duration of the subscription. The App Store automatically renews the subscription each time its term expires. If the user chooses to not allow the subscription to be renewed, the user’s access to the subscription is revoked after the subscription expires. Your application is responsible for validating whether a subscription is currently active and can also receive an updated receipt for the most recent transaction.</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;"><strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Free subscriptions</strong> are a way for you to put free subscription content in Newsstand. Once a user signs up for a free subscription, the content is available on all devices associated with the user’s Apple ID. Free subscriptions do not expire and can only be offered in Newsstand-enabled apps</li>
</ol>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">106-the advantages and disadvantages about synchronous versus asynchronous connections.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
That’s it, pretty fast and easy, but there are a lot of caveats :</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
• The most important problem is that the thread which called this method will be blocked until the connection finish or timeout, so we surely don’t want to start the connection on the main thread to avoid freezing the UI. That means we need to create a new thread to handle the connection, and all programmers know that threading is hard.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
• Cancellation, it’s not possible to cancel a synchronous connection, which is bad because users like to have the choice to cancel an operation if they think it takes too much time to execute.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
• Authentication, there is no way to deal with authentication challenges.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
• It’s impossible to parse data on the fly.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
So let’s put it up straight, avoid using synchronous<em style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">NSURLConnection</em>, there is absolutely no benefit of using it.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
It’s clear that <strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">asynchronous connections</strong> give us more control :</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
• You don’t have to create a new thread for the connection because your main thread will not be blocked.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
• You can easily cancel the connection just by calling the <em style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">cancel</em>method.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
• If you need authentication just implement the required delegate methods.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
• Parsing data on the fly is easy.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
So clearly we have a lot of more control with this, and the code is really not difficult.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Even better, we don’t have to handle the creation of a new thread, which is a good thing, because you know, threading is hard.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Well, if you read me until here, you should be convinced to use asynchronous connections, and forget about synchronous ones. They clearly give us more control and possibilities and, in some case can spare us to create new thread.</div>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
So I encourage you to move away from synchronous connections, just think of them as evil.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">107-What is the navigation controller?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
Navigation controller contains the stack of controllers every navigation controller<br />must be having root view controller by default these controllers contain 2 method<br />(a) push view (b) pop view<br />By default navigation controller contain “table view”.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">108- What is the split view controller?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
This control is used for ipad application and it contain proper controllers by default<br />split view controller contain root view controller and detail view controller.</div>
</blockquote>
</div>
</div>
</div>
</div>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">109-Cocoa.</strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Cocoa is an application environment for both the Mac OS X operating system and iOS. It consists of a suite of object-oriented software libraries, a runtime system, and an integrated development environment. Carbon is an alternative environment in Mac OS X, but it is a compatibility framework with procedural programmatic interfaces intended to support existing Mac OS X code bases.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">110- Frameworks that make Cocoa.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Appkit (Application Kit)</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Foundation</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">111- Objective-C.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Objective-C is a very dynamic language. Its dynamism frees a program from compile-time and link-time constraints and shifts much of the responsibility for symbol resolution to runtime, when the user is in control. Objective-C is more dynamic than other programming languages because its dynamism springs from three sources:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Dynamic typing—determining the class of an object at runtime</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Dynamic binding—determining the method to invoke at runtime</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Dynamic loading—adding new modules to a program at runtime</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">112- Objective-C vs C/C++.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· The Objective-C class allows a method and a variable with the exact same name. In C++, they must be different.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Objective-C does not have a constructor or destructor. Instead it has init and dealloc methods, which must be called explicitly.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Objective-C uses + and – to differentiate between factory and instance methods, C++ uses static to specify a factory method.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Multiple inheritance is not allowed in Obj-C, however we can use protocol to some extent.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Obj-C has runtime binding leading to dynamic linking.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Obj-C has got categories.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Objective-C has a work-around for method overloading, but none for operator overloading.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Objective-C also does not allow stack based objects. Each object must be a pointer to a block of memory.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· In Objective-C the message overloading is faked by naming the parameters. C++ actually does the same thing but the compiler does the name mangling for us. In Objective-C, we have to mangle the names manually.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· One of C++’s advantages and disadvantages is automatic type coercion.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Another feature C++ has that is missing in Objective-C is references. Because pointers can be used wherever a reference is used, there isn’t much need for references in general.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Templates are another feature that C++ has that Objective-C doesn’t. Templates are needed because C++ has strong typing and static binding that prevent generic classes, such as List and Array.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">113-Appilcation Kit/App kit.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
The Application Kit is a framework containing all the objects you need to implement your graphical, event-driven user interface: windows, panels, buttons, menus, scrollers, and text fields. The Application Kit handles all the details for you as it efficiently draws on the screen, communicates with hardware devices and screen buffers, clears areas of the screen before drawing, and clips views.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
You also have the choice at which level you use the Application Kit:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Use Interface Builder to create connections from user interface objects to your application objects.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Control the user interface programmatically, which requires more familiarity with AppKit classes and protocols.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Implement your own objects by subclassing NSView or other classes.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">114-Foundation Kit.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
The Foundation framework defines a base layer of Objective-C classes. In addition to providing a set of useful primitive object classes, it introduces several paradigms that define functionality not covered by the Objective-C language. The Foundation framework is designed with these goals in mind:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Provide a small set of basic utility classes.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Make software development easier by introducing consistent conventions for things such as deallocation.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Support Unicode strings, object persistence, and object distribution.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Provide a level of OS independence, to enhance portability.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">115-Dynamic and Static Typing.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Static typed languages are those in which type checking is done at compile-time, whereas dynamic typed languages are those in which type checking is done at run-time.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Objective-C is a dynamically-typed language, meaning that you don’t have to tell the compiler what type of object you’re working with at compile time. Declaring a type for a varible is merely a promise which can be broken at runtime if the code leaves room for such a thing. You can declare your variables as type id, which is suitable for any Objective-C object.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">116-Selectors</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
In Objective-C, selector has two meanings. It can be used to refer simply to the name of a method when it’s used in a source-code message to an object. It also, though, refers to the unique identifier that replaces the name when the source code is compiled. Compiled selectors are of type SEL. All methods with the same name have the same selector. You can use a selector to invoke a method on an object—this provides the basis for the implementation of the target-action design pattern in Cocoa.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[friend performSelector:@selector(gossipAbout:) withObject:aNeighbor];</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
is equivalent to:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[friend gossipAbout:aNeighbor];</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">117-Class Introspection</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Determine whether an objective-C object is an instance of a class</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[obj isMemberOfClass:someClass];</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Determine whether an objective-C object is an instance of a class or its descendants</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[obj isKindOfClass:someClass];</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· The version of a class</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[MyString version]</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Find the class of an Objective-C object</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Class c = [obj1 class]; Class c = [NSString class];</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Verify 2 Objective-C objects are of the same class</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[obj1 class] == [obj2 class]</div>
</blockquote>
</div>
<div style="background-color: white; border: 0px; color: #4e4e4e; font-family: 'Myriad Pro', 'Trebuchet MS', Helvetica, Arial, sans-serif; font-size: 13px; margin: 0px; padding: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">118- Proxy</strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
As long as there aren’t any extra instance variables, any subclass can proxy itself as its superclass with a single call. Each class that inherits from the superclass, no matter where it comes from, will now inherit from the proxied subclass. Calling a method in the superclass will actually call the method in the subclass. For libraries where many objects inherit from a base class, proxying the superclass can be all that is needed.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">119- Why category is better than inheritance?</strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
If category is used, you can use same class, no need to remember a new class-name. Category created on a base class is available on sub classes.<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">120-Formal Protocols</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Formal Protocols allow us to define the interface for a set of methods, but implementation is not done. Formal Protocols are useful when you are using DistributedObjects, because they allow you to define a protocol for communication between objects, so that the DO system doesn’t have to constantly check whether or not a certain method is implemented by the distant object.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">121- Formal vs informal protocol.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
In addition to formal protocols, you can also define an informal protocol by grouping the methods in a category declaration:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@interface NSObject (MyProtocol)</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
//someMethod();</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@end</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Informal protocols are typically declared as categories of the NSObject class, because that broadly associates the method names with any class that inherits from NSObject. Because all classes inherit from the root class, the methods aren’t restricted to any part of the inheritance hierarchy. (It is also possible to declare an informal protocol as a category of another class to limit it to a certain branch of the inheritance hierarchy, but there is little reason to do so.)</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
When used to declare a protocol, a category interface doesn’t have a corresponding implementation. Instead, classes that implement the protocol declare the methods again in their own interface files and define them along with other methods in their implementation files.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
An informal protocol bends the rules of category declarations to list a group of methods but not associate them with any particular class or implementation.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Being informal, protocols declared in categories don’t receive much language support. There’s no type checking at compile time nor a check at runtime to see whether an object conforms to the protocol. To get these benefits, you must use a formal protocol. An informal protocol may be useful when all the methods are optional, such as for a delegate, but (in Mac OS X v10.5 and later) it is typically better to use a formal protocol with optional methods.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">122- Optional vs required</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Protocol methods can be marked as optional using the @optional keyword. Corresponding to the @optional modal keyword, there is a @required keyword to formally denote the semantics of the default behavior. You can use @optional and @required to partition your protocol into sections as you see fit. If you do not specify any keyword, the default is @required.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@protocol MyProtocol</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@optional</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
-(void) optionalMethod;</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@required</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
-(void) requiredMethod;</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@end</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">123- Memory Management</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
If you alloc, retain, or copy/mutablecopy it, it’s your job to release it. Otherwise it isn’t.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">124-Copy vs assign vs retain</strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Assign is for primitive values like BOOL, NSInteger or double. For objects use retain or copy, depending on if you want to keep a reference to the original object or make a copy of it.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· <b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">assign</b>: In your setter method for the property, there is a simple assignment of your instance variable to the new value, eg:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
(void)setString:(NSString*)newString{
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
string = newString;</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
}</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
This can cause problems since Objective-C objects use reference counting, and therefore by not retaining the object, there is a chance that the string could be deallocated whilst you are still using it.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· <b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">retain</b>: this <i style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">retains</i> the new value in your setter method. For example:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
This is safer, since you explicitly state that you want to maintain a reference of the object, and you must release it before it will be deallocated.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
(void)setString:(NSString*)newString{
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[newString retain];
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[string release];
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
string = newString;
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
}</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· <b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">copy</b>: this makes a copy of the string in your setter method:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
This is often used with strings, since making a copy of the original object ensures that it is not changed whilst you are using it.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
(void)setString:(NSString*)newString{
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
if(string!=newString){
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
[string release];
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
string = [newString copy];
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
}</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
}</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">125- alloc vs new</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
“alloc” creates a new memory location but doesn’t initializes it as compared to “new”.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">126- release vs pool drain</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
“release” frees a memory. “drain” releases the NSAutoreleasePool itself.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">127- NSAutoReleasePool : release vs drain</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Strictly speaking, from the big picture perspective drain is not equivalent to release:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
In a reference-counted environment, drain does perform the same operations as release, so the two are in that sense equivalent. To emphasise, this means you do not leak a pool if you use drain rather than release.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
In a garbage-collected environment, release is a no-op. Thus it has no effect. drain, on the other hand, contains a hint to the collector that it should “collect if needed”. Thus in a garbage-collected environment, using drain helps the system balance collection sweeps.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">128-autorelease vs release</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Autorelase: By sending an object an autorelease message, it is added to the local AutoReleasePool, and you no longer have to worry about it, because when the AutoReleasePool is destroyed (as happens in the course of event processing by the system) the object will receive a release message, its RetainCount will be decremented, and the GarbageCollection system will destroy the object if the RetainCount is zero.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Release: retain count is decremented at this point.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">129- Autorelease Pool</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Autorelease pools provide a mechanism whereby you can send an object a “deferred” release message. This is useful in situations where you want to relinquish ownership of an object, but want to avoid the possibility of it being deallocated immediately (such as when you return an object from a method). Typically, you don’t need to create your own autorelease pools, but there are some situations in which either you must or it is beneficial to do so.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">130- How autorelease pool is managed.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Every time -autorelease is sent to an object, it is added to the inner-most autorelease pool. When the pool is drained, it simply sends -release to all the objects in the pool.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Autorelease pools are simply a convenience that allows you to defer sending -release until “later”. That “later” can happen in several places, but the most common in Cocoa GUI apps is at the end of the current run loop cycle.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">131-Memory Leak</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
If RetainingAndReleasing are not properly used then RetainCount for AnObject doesn’t reach 0. It doesn’t crash the application.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">132- Event Loop</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
In a Cocoa application, user activities result in events. These might be mouse clicks or drags, typing on the keyboard, choosing a menu item, and so on. Other events can be generated automatically, for example a timer firing periodically, or something coming in over the network. For each event, Cocoa expects there to be an object or group of objects ready to handle that event appropriately. The event loop is where such events are detected and routed off to the appropriate place. Whenever Cocoa is not doing anything else, it is sitting in the event loop waiting for an event to arrive. (In fact, Cocoa doesn’t poll for events as suggested, but instead its main thread goes to sleep. When an event arrives, the OS wakes up the thread and event processing resumes. This is much more efficient than polling and allows other applications to run more smoothly).</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Each event is handled as an individual thing, then the event loop gets the next event, and so on. If an event causes an update to be required, this is checked at the end of the event and if needed, and window refreshes are carried out.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">133-Differnce between boxName and self.boxName.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
boxName: Accessing directly.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
self. boxName: Accessing boxName through accessors. If property/synthesize is not there it will throw error.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">134-What it does “@synthesize boxDescription=boxName;” ?</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Here you can use boxName or self.boxName. We cant use boxDescription.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">135-Collection</strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
In Cocoa and Cocoa Touch, a collection is a Foundation framework class used for storing and managing groups of objects. Its primary role is to store objects in the form of either an array, a dictionary, or a set.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">136-Threads and how to use</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Use this class when you want to have an Objective-C method run in its own thread of execution. Threads are especially useful when you need to perform a lengthy task, but don’t want it to block the execution of the rest of the application. In particular, you can use threads to avoid blocking the main thread of the application, which handles user interface and event-related actions. Threads can also be used to divide a large job into several smaller jobs, which can lead to performance increases on multi-core computers.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Two ways to create threads…</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· detachNewThreadSelector:toTarget:withObject:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Create instances of NSThread and start them at a later time using the “start” method.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
NSThread is not as capable as Java’s Thread class, it lacks</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Built-in communication system.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· An equivalent of “join()”</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">137-Threadsafe</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
When it comes to threaded applications, nothing causes more fear or confusion than the issue of handling signals. Signals are a low-level BSD mechanism that can be used to deliver information to a process or manipulate it in some way. Some programs use signals to detect certain events, such as the death of a child process. The system uses signals to terminate runaway processes and communicate other types of information.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
The problem with signals is not what they do, but their behavior when your application has multiple threads. In a single-threaded application, all signal handlers run on the main thread. In a multithreaded application, signals that are not tied to a specific hardware error (such as an illegal instruction) are delivered to whichever thread happens to be running at the time. If multiple threads are running simultaneously, the signal is delivered to whichever one the system happens to pick. In other words, signals can be delivered to any thread of your application.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
The first rule for implementing signal handlers in applications is to avoid assumptions about which thread is handling the signal. If a specific thread wants to handle a given signal, you need to work out some way of notifying that thread when the signal arrives. You cannot just assume that installation of a signal handler from that thread will result in the signal being delivered to the same thread.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">138-Notification and Observers</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
A notification is a message sent to one or more observing objects to inform them of an event in a program. The notification mechanism of Cocoa follows a <b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">broadcast</b> model. It is a way for an object that initiates or handles a program event to communicate with any number of objects that want to know about that event. These recipients of the notification, known as observers, can adjust their own appearance, behavior, and state in response to the event. The object sending (or posting) the notification doesn’t have to know what those observers are. Notification is thus a powerful mechanism for attaining coordination and cohesion in a program. It reduces the need for strong dependencies between objects in a program (such dependencies would reduce the reusability of those objects). Many classes of the Foundation, AppKit, and other Objective-C frameworks define notifications that your program can register to observe.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
The centerpiece of the notification mechanism is a per-process singleton object known as the notification center (<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">NSNotificationCenter</b>). When an object posts a notification, it goes to the notification center, which acts as a kind of clearing house and broadcast center for notifications. Objects that need to know about an event elsewhere in the application register with the notification center to let it know they want to be notified when that event happens. Although the notification center delivers a notification to its observers synchronously, you can post notifications asynchronously using a notification queue (NSNotificationQueue).</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">139-Delegate vs Notification</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· The concept of notification differs from delegation in that it allows a message to be sent to more than one object. It is more like a broadcast rather than a straight communication between two objects. It removes dependencies between the sending and receiving object(s) by using a notification center to manage the sending and receiving of notifications. The sender does not need to know if there are any receivers registered with the notification center. There can be one, many or even no receivers of the notification registered with the notification center. Simply, Delegate is 1-to-1 object and Notification can be *-to-* objects.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· The other difference between notifications and delegates is that there is no possibility for the receiver of a notification to return a value to the sender.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· Typical uses of notifications might be to allow different objects with an application to be informed of an event such as a file download completing or a user changing an application preference. The receiver of the notification might then perform additional actions such as processing the downloaded file or updating the display.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">140-Plist</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Property lists organize data into named values and lists of values using several object types. These types give you the means to produce data that is meaningfully structured, transportable, storable, and accessible, but still as efficient as possible. Property lists are frequently used by applications running on both Mac OS X and iOS. The property-list programming interfaces for Cocoa and Core Foundation allow you to convert hierarchically structured combinations of these basic types of objects to and from standard XML. You can save the XML data to disk and later use it to reconstruct the original objects.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
The user defaults system, which you programmatically access through the NSUserDefaults class, uses property lists to store objects representing user preferences. This limitation would seem to exclude many kinds of objects, such as NSColor and NSFont objects, from the user default system. But if objects conform to the NSCoding protocol they can be archived to NSData objects, which are property list–compatible objects</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">141-Helper Objects</strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Helper Objects are used throughout Cocoa and CocoaTouch, and usually take the form of a delegate or dataSource. They are commonly used to add functionality to an existing class without having to subclass it.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
</div>
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">142-Cluster Class</strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Class clusters are a design pattern that the Foundation framework makes extensive use of. Class clusters group a number of private concrete subclasses under a public abstract superclass. The grouping of classes in this way simplifies the publicly visible architecture of an object-oriented framework without reducing its functional richness.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">143-Differentiate Foundation vs Core Foundation</strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
CoreFoundation is a general-purpose C framework whereas Foundation is a general-purpose Objective-C framework. Both provide collection classes, run loops, etc, and many of the Foundation classes are wrappers around the CF equivalents. CF is mostly open-source , and Foundation is closed-source.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Core Foundation</b> is the C-level API, which provides CFString, CFDictionary and the like.<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Foundation</b> is Objective-C, which provides NSString, NSDictionary, etc. CoreFoundation is written in C while Foundation is written in Objective-C. Foundation has <i style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">a lot</i> more classes CoreFoundation is the common base of Foundation and Carbon.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">144-Difference between coreData and Database</strong></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<table border="0" cellpadding="0" cellspacing="0" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border-collapse: collapse; border-spacing: 0px; border: 0px; margin: 0.5em 0px 1em; padding: 0px; vertical-align: baseline;"><tbody style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="325"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 68px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Database</b></div>
</blockquote>
</td><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="342"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 72px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Core Data</b></div>
</blockquote>
</td></tr>
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="325"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 68px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Primary function is storing and fetching data</div>
</blockquote>
</td><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="342"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 72px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Primary function is graph management (although reading and writing to disk is an important supporting feature)</div>
</blockquote>
</td></tr>
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="325"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 68px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Operates on data stored on disk (or minimally and incrementally loaded)</div>
</blockquote>
</td><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="342"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 72px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Operates on objects stored in memory (although they can be lazily loaded from disk)</div>
</blockquote>
</td></tr>
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="325"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 68px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Stores “dumb” data</div>
</blockquote>
</td><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="342"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 72px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Works with fully-fledged objects that self-manage a lot of their behavior and can be subclassed and customized for further behaviors</div>
</blockquote>
</td></tr>
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="325"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 68px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Can be transactional, thread-safe, multi-user</div>
</blockquote>
</td><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="342"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 72px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Non-transactional, single threaded, single user (unless you create an entire abstraction around Core Data which provides these things)</div>
</blockquote>
</td></tr>
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="325"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 68px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Can drop tables and edit data without loading into memory</div>
</blockquote>
</td><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="342"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 72px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Only operates in memory</div>
</blockquote>
</td></tr>
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="325"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 68px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Perpetually saved to disk (and often crash resilient)</div>
</blockquote>
</td><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="342"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 72px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Requires a save process</div>
</blockquote>
</td></tr>
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="325"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 68px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Can be slow to create millions of new rows</div>
</blockquote>
</td><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="342"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 72px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Can create millions of new objects in-memory very quickly (although saving these objects will be slow)</div>
</blockquote>
</td></tr>
<tr style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="325"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 68px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Offers data constraints like “unique” keys</div>
</blockquote>
</td><td style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border-right-color: rgb(255, 255, 255); border-right-style: solid; border-width: 0px 1px 0px 0px; margin: 0px; padding: 0.4em 0.8em; text-align: left; vertical-align: baseline;" width="342"><blockquote style="background-color: white; background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 72px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Leaves data constraints to the business logic side of the program</div>
</blockquote>
</td></tr>
</tbody></table>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">145- Core data vs sqlite.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Core data is an object graph management framework. It manages a potentially very large graph of object instances, allowing an app to work with a graph that would not entirely fit into memory by faulting objects in and out of memory as necessary. Core Data also manages constraints on properties and relationships and maintains reference integrity (e.g. keeping forward and backwards links consistent when objects are added/removed to/from a relationship). Core Data is thus an ideal framework for building the “model” component of an MVC architecture.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
To implement its graph management, Core Data <i style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">happens</i> to use sqlite as a disk store. It<i style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">could</i> have been implemented using a different relational database or even a non-relational database such as CouchDB. As others have pointed out, Core Data can also use XML or a binary format or a user-written atomic format as a backend (though these options require that the entire object graph fit into memory).</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">146-Retain cycle or Retain loop.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
When object A retains object B, and object B retains A. Then Retain cycle happens. To overcome this use “close” method.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Objective-C’s garbage collector (when enabled) can also delete retain-loop groups but this is not relevant on the iPhone, where Objective-C garbage collection is not supported.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">147-What is unnamed category.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
A named category — <b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">@interface Foo(FooCategory)</b> — is generally used to:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
i. Extend an existing class by adding functionality.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
ii. Declare a set of methods that might or might not be implemented by a delegate.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Unnamed Categories has fallen out of favor now that @protocol has been extended to support @optional methods.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
A class extension — <b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">@interface Foo()</b> — is designed to allow you to declare additional private API — SPI or System Programming Interface — that is used to implement the class innards. This typically appears at the top of the .m file. Any methods / properties declared in the class extension must be implemented in the @implementation, just like the methods/properties found in the public @interface.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Class extensions can also be used to redeclare a publicly readonly @property as readwrite prior to @synthesize’ing the accessors.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Example:</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Foo.h</b></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@interface Foo:NSObject</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@property(readonly, copy) NSString *bar;</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
-(void) publicSaucing;</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@end</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Foo.m</b></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@interface Foo()</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@property(readwrite, copy) NSString *bar;</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
– (void) superSecretInternalSaucing;</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@end</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@implementation Foo</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@synthesize bar;</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
…. must implement the two methods or compiler will warn ….</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@end</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">148-Copy vs mutableCopy.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
copy always creates an immutable copy.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
mutableCopy always creates a mutable copy.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">149- Strong vs Weak</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
The strong and weak are new ARC types replacing retain and assign respectively.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Delegates and outlets should be weak.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
A <b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">strong reference</b> is a reference to an object that stops it from being deallocated. In other words it creates a owner relationship.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
A <b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">weak reference</b> is a reference to an object that does not stop it from being deallocated. In other words, it does not create an owner relationship.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">150-__strong, __weak, __unsafe_unretained, __autoreleasing.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Generally speaking, these extra qualifiers don’t need to be used very often. You might first encounter these qualifiers and others when using the migration tool. For new projects however, you generally you won’t need them and will mostly use strong/weak with your declared properties.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">__strong</b> – is the default so you don’t need to type it. This means any object created using alloc/init is retained for the lifetime of its current scope. The “current scope” usually means the braces in which the variable is declared</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">__weak</b> – means the object can be destroyed at anytime. This is only useful if the object is somehow strongly referenced somewhere else. When destroyed, a variable with __weak is set to nil.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">__unsafe_unretained</b> – is just like __weak but the pointer is not set to nil when the object is deallocated. Instead the pointer is left dangling.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<b style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">__autoreleasing</b>, not to be confused with calling autorelease on an object before returning it from a method, this is used for passing objects by reference, for example when passing NSError objects by reference such as [myObject performOperationWithError:&tmp];</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">151-Types of NSTableView</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Cell based and View based. In view based we can put multiple objects.</div>
</blockquote>
<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">152-Abstract class in cocoa.</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Cocoa doesn’t provide anything called abstract. We can create a class abstract which gets check only at runtime, compile time this is not checked.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@interface AbstractClass : NSObject</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@end</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@implementation AbstractClass</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
+ (id)alloc{</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
if (self == [AbstractClass class]) {</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
NSLog(@”Abstract Class cant be used”);</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
}</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
return [super alloc];</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
@end</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">153- Difference between HTTP and HTTPS.</strong><br /><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· HTTP stands for <a href="http://www.blogger.com/blogger.g?blogID=2378569646178591916" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #0071bb; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;">HyperText</a> Transfer <a href="http://www.blogger.com/blogger.g?blogID=2378569646178591916" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #0071bb; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;">Protocol</a>, whereas, HTTPS is HyperText Transfer Protocol <a href="http://www.blogger.com/blogger.g?blogID=2378569646178591916" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #0071bb; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;">Secure</a>.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· HTTP transmits everything as plan text, while HTTPS provides encrypted communication, so that only the recipient can decrypt and read the information. Basically, HTTPS is a combination of HTTP and<a href="http://www.blogger.com/blogger.g?blogID=2378569646178591916" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #0071bb; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;">SSL</a> (Secure Sockets Layer). This SSL is that protocol which encrypts the data.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· HTTP is fast and cheap, where HTTPS is slow and expensive.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
As, HTTPS is safe it’s widely used during payment transactions or any sensitive transactions over the internet. On the other hand, HTTP is used most of the sites over the net, even this blogspot sites also use HTTP.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· HTTP URLs starts with “http:// “ and use <a href="http://www.blogger.com/blogger.g?blogID=2378569646178591916" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #0071bb; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;">port</a> 80 by default, while HTTPS URLs stars with “https:// “ and use port 443.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
· HTTP is unsafe from attacks like <a href="http://en.support.wordpress.com/affiliate-links/" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; color: #0071bb; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;">man-in-the-middle</a> and eavesdropping, but HTTPS is secure from these sorts of attacks.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">154-GCD</strong></div>
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Grand Central Dispatch is not just a new abstraction around what we’ve already been using, it’s an entire new underlying mechanism that makes multithreading easier and makes it easy to be as concurrent as your code can be without worrying about the variables like how much work your CPU cores are doing, how many CPU cores you have and how much threads you should spawn in response. You just use the Grand Central Dispatch API’s and it handles the work of doing the appropriate amount of work. This is also not just in Cocoa, anything running on Mac OS X 10.6 Snow Leopard can take advantage of Grand Central Dispatch ( libdispatch ) because it’s included in libSystem.dylib and all you need to do is include #import <dispatch/dispatch.h> in your app and you’ll be able to take advantage of Grand Central Dispatch.</div>
</blockquote>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">155-How you attain the backward compatibility?</strong><ol style="background-color: transparent; border: 0px; line-height: 19px; list-style-image: initial; list-style-position: initial; margin: 0.4em 0px 1em; padding: 0px; vertical-align: baseline;">
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;"><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 143px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
Set the Base SDK to Current version of Mac (ex. 10.7)<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
</li>
<li style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; list-style-position: outside; margin: 0px 0px 0px 2.5em; padding: 0px; vertical-align: baseline;"><blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 143px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
Set the Deployment SDK to older version (ex.1.4)<div style="background-color: transparent; border: 0px; font-size: 14px; line-height: 21px; margin-bottom: 1em; margin-top: 1em; padding: 0px; vertical-align: baseline;">
</div>
</blockquote>
</li>
</ol>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<strong style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">156-Call Back.</strong></div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<blockquote style="background-image: url(http://s2.wp.com/wp-content/themes/pub/mystique/images/blockquote.png); background-position: 4px 0%; background-repeat: no-repeat no-repeat; border: 1px dotted rgb(221, 221, 221); color: #474747; font-style: italic; margin: 1em 151px 1em 0px; min-height: 40px; padding: 0.6em 1em 0.6em 2.4em; quotes: none; vertical-align: baseline;">
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
Synchronous operations are ones that happen in step with your calling code. Most of Cocoa works this way: you send a message to an object, say to format a string, etc, and by the time that line of code is “done”, the operation is complete.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
But in the real world, some operations take longer than “instantaneous” (some intensive graphics work, but mainly high or variably latency things like disk I/O or worse, network connectivity). These operations are unpredictable, and if the code were to block until finish, it might block indefinitely or forever, and that’s no good.</div>
<div style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
So the way we handle this is to set up “callbacks”– you say “go off and do this operation, and when you’re done, call this other function”. Then inside that “callback” function, you start the second operation that depends on the first. In this way, you’re not spinning in circles waiting, you just get called “asynchronously” when each task is done.</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-29587339016874787002013-03-20T00:09:00.001-07:002013-03-20T00:09:35.171-07:00Object oriented programming(oops)concept in Objective-C<div dir="ltr" style="text-align: left;" trbidi="on">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="margin: 0.5px 0.5px 0.5px 0.5px; padding: 0.0px 40.0px 0.0px 0.0px; width: 709.0px;" valign="middle">
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; text-align: center;">
<a href="http://ajitsingh686.blogspot.com/2012/06/object-oriented-programmingoopsconcept.html">Object oriented programming(oops)concept in Objective-C</a></div>
</td>
</tr>
</tbody>
</table>
<br />
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px; text-align: center;">
<span style="text-decoration: underline;">Introduction</span></div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px; text-align: center;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Objective-C is implemented as set of extensions to the C language.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>It's designed to give C a full capability for object-oriented programming, and to do so in a simple and straightforward way.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Its additions to C are few and are mostly based on Smalltalk, one of the first object-oriented programming languages.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Objective C is simply a super set of c.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Syntax of all non object oriented operations are similar as C.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Objective-C is the primary language used for Apple's <a href="http://en.wikipedia.org/wiki/Cocoa_(API)"><span style="color: #009eb8; font: 14.0px 'Helvetica Neue Light';">Cocoa</span></a><span style="color: #082528;"> <a href="http://en.wikipedia.org/wiki/API"><span style="color: #009eb8; font: 14.0px 'Helvetica Neue Light';">API</span></a>, </span>and it was originally the main language on <a href="http://en.wikipedia.org/wiki/NeXT"><span style="color: #009eb8; font: 14.0px 'Helvetica Neue Light';">NeXT</span></a>'s<a href="http://en.wikipedia.org/wiki/NEXTSTEP"><span style="color: #009eb8; font: 14.0px 'Helvetica Neue Light';">NeXTSTEP</span></a> operating system.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Rest syntax is taken from smalltalk.</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Everything happens at run time(Every error is just a warning).</div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="text-decoration: underline;">Data & Operation</span></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Programming languages have traditionally divided the world into two parts—data and operations .</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Object-oriented programming groups operations and data into modular units called objects and lets you combine objects into structured .</div>
<div style="color: #0dd0d9; font: 14.0px 'Wingdings 2'; margin: 0.0px 0.0px 0.0px 0.0px;">
</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Every object has both state (data) and behavior (operations on data).</div>
<div style="color: #0dd0d9; font: 14.0px 'Wingdings 2'; margin: 0.0px 0.0px 0.0px 0.0px;">
</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span> such as an ordinary bottle combine state (how full the bottle is, whether or not it’s open, howwarm its contents are) with behavior (the ability to dispense its contents at various flow rates).</div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="text-decoration: underline;">ID</span></div>
<div style="color: #333233; font: 14.0px 'Arial Unicode MS'; margin: 0.0px 0.0px 15.0px 0.0px; text-indent: -28.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>id is a data type used by</div>
<div style="color: #333233; font: 14.0px 'Arial Unicode MS'; margin: 0.0px 0.0px 15.0px 0.0px; text-indent: -28.0px;">
Objective-C to define a pointer of an </div>
<div style="color: #333233; font: 14.0px 'Arial Unicode MS'; margin: 0.0px 0.0px 15.0px 0.0px; text-indent: -28.0px;">
object .</div>
<div style="color: #333233; font: 14.0px 'Arial Unicode MS'; margin: 0.0px 0.0px 15.0px 0.0px; text-indent: -28.0px;">
<br />
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Any type of object, as long as it is an object, we can use the id dat a type.</div>
<div style="color: #333233; font: 14.0px 'Arial Unicode MS'; margin: 0.0px 0.0px 15.0px 0.0px; text-indent: -28.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>For example, we can define an</div>
<div style="color: #333233; font: 14.0px 'Arial Unicode MS'; margin: 0.0px 0.0px 15.0px 0.0px; text-indent: -28.0px;">
<br />
object by:</div>
<div style="color: #333233; font: 14.0px 'Arial Unicode MS'; margin: 0.0px 0.0px 15.0px 0.0px; text-indent: -28.0px;">
<br />
id anObject;</div>
<div style="color: #333233; font: 14.0px 'Arial Unicode MS'; margin: 0.0px 0.0px 15.0px 0.0px; text-indent: -28.0px;">
<br />
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>nil is the reserved word for null</div>
<div style="color: #333233; font: 14.0px 'Arial Unicode MS'; margin: 0.0px 0.0px 15.0px 0.0px; text-indent: -28.0px;">
object</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
ex:</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
int main (int argc, char *argv[])</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
id dataValue;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
Fraction *f1 = [[Fraction alloc] init];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
Complex *c1 = [[Complex alloc] init];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[f1 setTo: 2 over: 5];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[c1 setReal: 10.0 andImaginary: 2.5];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
// first dataValue gets a fraction</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
dataValue = f1;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[dataValue print];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
// now dataValue gets a complex number</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
dataValue = c1;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[dataValue print];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[c1 release];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[f1 release];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[pool drain];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
return 0;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 16.0px;">
<br /></div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="text-decoration: underline;"><b>Defining a Class</b></span></div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>In Objective-C, classes are defined in two parts:</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Helvetica Neue Light';">1.</span>An interface that declares the methods and properties of the class and names its superclass</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Helvetica Neue Light';">2.</span>An implementation that actually defines the class (contains the code that implements its methods)</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>The declaration of a class interface begins with the compiler directive @interface and ends with the directive @end.</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">v</span> @interface ClassName : ItsSuperclass</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
// Method and property declarations.</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@end</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 16.0px;">
<br /></div>
<div style="color: #073663; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #9fc5e8;"><b> </b></span><b>Inheritance</b></div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Objective-C enables programmer to inherit common methods and properties from other class, known as inheritance.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span> Class from methods and properties are inherited known as Base Class and class that inherits known as Derived .</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span> Every inheritance hierarchy begins with a root class that has no superclass.</div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
ex:</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>#import <Foundation/Foundation.h<span style="color: #7f7f7f;">></span></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
// ClassA declaration and definition</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@interface ClassA: NSObject</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
int x;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
-(void) initVar;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@end</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@implementation ClassA</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
-(void) initVar</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
x = 100;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@end</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
// Class B declaration and definition</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@interface ClassB : ClassA</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
-(void) printVar;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@end</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@implementation ClassB</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
-(void) printVar</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
NSLog (@”x = %i”, x);}</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@end</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
int main (int argc, char *argv[])</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
ClassB *b = [[ClassB alloc] init];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[b initVar]; // will use inherited method</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[b printVar]; // reveal value of x;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[b release];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[pool drain];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
return 0;</div>
<div style="color: #03617b; font: 14.0px 'Franklin Gothic Medium'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="font: 14.0px Times; text-decoration: underline;">Polymorphism</span></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 16.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>polymorphism in the context of <a href="http://en.wikipedia.org/wiki/Object-oriented_programming"><span style="color: #009eb8; font: 14.0px 'Helvetica Neue Light';">object-oriented programming</span></a>, is the ability to create a variable, a function, or an object that has more than one form.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>The purpose of polymorphism is to implement a style of programming called <i>message-passing</i> in the program.</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 16.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>The ability of objects to respond differently to the same message or function call.</div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
ex:</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
// Shared Method Names: Polymorphism</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
#import “Fraction.h”</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
#import “Complex.h”</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
int main (int argc, char *argv[])</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
Fraction *f1 = [[Fraction alloc] init];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
Fraction *f2 = [[Fraction alloc] init];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
Fraction *fracResult;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
Complex *c1 = [[Complex alloc] init];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
Complex *c2 = [[Complex alloc] init];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
Complex *compResult;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[f1 setTo: 1 over: 10];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[f2 setTo: 2 over: 15];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[c1 setReal: 18.0 andImaginary: 2.5];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[c2 setReal: -5.0 andImaginary: 3.2];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
// add and print 2 complex numbers</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[c1 print]; NSLog (@” +”); [c2 print];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
NSLog (@”---------”);</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
compResult = [c1 add: c2];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[compResult print];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
NSLog (@”\n”);</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[c1 release];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[c2 release];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[compResult release];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
// add and print 2 fractions</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[f1 print]; NSLog (@” +”); [f2 print];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
NSLog (@”----”);</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
fracResult = [f1 add: f2];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[fracResult print];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[f1 release];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[f2 release];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[fracResult release];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[pool drain];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
return 0;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<i>both the Fraction and Complex classes contain add: and print methods.</i></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<i>So when executing the message expressions</i></div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="text-decoration: underline;">Abstraction</span></div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Abstraction is "To represent the essential feature without representing the back ground details.“</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Abstraction is the process of hiding the working style of an object, and showing the information of an object in understandable manner.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Abstraction is the process of hiding the working style of an object, and showing the information of an object in understandable manner.</div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
Method Overriding</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Method overriding, in <a href="http://en.wikipedia.org/wiki/Object_oriented_programming"><span style="color: #009eb8; font: 14.0px 'Helvetica Neue Light';">object oriented programming</span></a>, is a language feature that allows a <a href="http://en.wikipedia.org/wiki/Subclass_(computer_science)"><span style="color: #009eb8; font: 14.0px 'Helvetica Neue Light';">subclass</span></a> or child class to provide a specific implementation of a <a href="http://en.wikipedia.org/wiki/Method_(computer_science)"><span style="color: #009eb8; font: 14.0px 'Helvetica Neue Light';">method</span></a> that is already provided by one of its <a href="http://en.wikipedia.org/wiki/Superclass_(computer_science)"><span style="color: #009eb8; font: 14.0px 'Helvetica Neue Light';">superclasses</span></a> or parent classes.</div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
ex:</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
// Overriding Methods</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
#import <Foundation/Foundation.h></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
// ClassA declaration and definition</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@interface ClassA: NSObject</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
int x;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
-(void) initVar;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@end</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@implementation ClassA</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
-(void) initVar</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
x = 100;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@end</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
// ClassB declaration and definition</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@interface ClassB: ClassA</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
-(void) initVar;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
-(void) printVar;<span style="font: 14.0px 'Helvetica Neue Light';"> </span></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
NSLog (@”x = %i”, x);}</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@end</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@implementation ClassB</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
-(void) initVar // added method</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
x = 200;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
-(void) printVar</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
NSLog (@”x = %i”, x);</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
@end</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
int main (int argc, char *argv[])</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
ClassB *b = [[ClassB alloc] init];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[b initVar]; // uses overriding method in B</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[b printVar]; // reveal value of x;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[b release];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
[pool drain];</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
return 0;</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
Object-Oriented Relations</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #079ca3; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
Composition:</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span><span style="font: 14.0px Times;"> </span>it gives us a ‘part-of’ relationship.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Member Object can’t survive or exist outside the enclosing or containing class.</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 16.0px;">
<br /></div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
Aggregation<span style="font: 14.0px 'Franklin Gothic Medium';">:</span></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>it gives a ‘has-a’ relationship.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span> member Object can’t survives or exist without the enclosing class.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span> it doesnot imply ownerShip,object can exist independently of each other.</div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
Association:</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>It’s also a relation in which there is no OwnerShip or Container.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>Association is a relationship between two objects.association defines multiplicity between objects.</div>
<div style="color: #03617b; font: 14.0px Times; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="text-decoration: underline;">Conclusion</span></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>An object-oriented approach to application development makes programs more intuitive to design, faster to develop, more amenable to modification, and easier to understand.</div>
<div style="color: #333233; font: 14.0px 'Helvetica Neue Light'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 17.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #0dd0d9; font: 14.0px 'Lucida Grande';">q</span>The Objective-C language is a programming language designed to enable sophisticated object-oriented programming. Objective-C is defined as a small but powerful set of extensions to the standard ANSI C language. Its additions to C are mostly based on Smalltalk, one of the first object-oriented programming languages</div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 16.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 16.0px;">
<br /></div>
<div style="color: #333233; font: 14.0px 'Franklin Gothic Book'; margin: 0.0px 0.0px 0.0px 0.0px;">
........<span style="color: #cb200a;">Thank you</span>...........</div>
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-88796683077841415802013-03-19T23:45:00.001-07:002013-03-19T23:46:29.573-07:00Basic Concept of Objective C and Iphone sdk<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="Apple-style-span" style="color: #333333; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 14px; line-height: 19px;"></span><br />
<h3 class="post-title entry-title" itemprop="name" style="font: normal normal normal 30px/normal Georgia, Utopia, 'Palatino Linotype', Palatino, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; position: relative;">
Basic Concept of Objective C and Iphone sdk</h3>
<div class="post-header" style="color: #997755; line-height: 1.6; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px;">
<div class="post-header-line-1">
</div>
</div>
<div class="post-body entry-content" id="post-body-76235596183621158" itemprop="articleBody" style="font-size: 14px; line-height: 1.5; position: relative; width: 558px;">
<div dir="ltr" style="text-align: left;" trbidi="on">
<b><br /></b>
<b><span style="font-size: small;">Objective C Concepts with iPhone</span></b><br />
<b><br /></b>
<b><br /></b>
<b><span style="font-family: inherit;">Little about objective C:</span></b><br />
<b><span style="font-family: inherit;"><br /></span></b>
<span style="font-family: inherit;"><span style="background-color: white; line-height: 19px; text-align: -webkit-auto;"><b>Objective-C</b> was created primarily by </span><b>Brad Cox</b><span style="background-color: white; line-height: 19px; text-align: -webkit-auto;"><b> </b>and <b>Tom Love </b>in the early 1980s at their company </span><b>Stepstone<span style="background-color: white; line-height: 19px; text-align: -webkit-auto;">. </span></b></span><br />
<span style="background-color: white; line-height: 19px; text-align: -webkit-auto;"><span style="font-family: inherit;">Its implementation of an object-oriented extension to the <b>C</b> language. </span></span><br />
<span style="font-family: inherit;"><span style="background-color: white; line-height: 19px; text-align: -webkit-auto;"><b>Objective-C </b>derives its object syntax from </span><b>Smalltalk<span style="background-color: white; line-height: 19px; text-align: -webkit-auto;">.</span></b></span><br />
<b><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKfwMuqySMDsepM2qgiFJGLswV-PqNIfiPCBYOuollrvvyihE9knOAP0ThWkx3VCWqR0Tolsbf5gol9at-OCNNiUKkGM509TiHVQ8pkSIXm_I-83pUzSPuMPY6C82Ch8NNfoTVvAx2SuPw/s1600/Screen+Shot+2012-04-07+at+11.54.04+AM.png" style="color: #cc0033; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" height="201" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKfwMuqySMDsepM2qgiFJGLswV-PqNIfiPCBYOuollrvvyihE9knOAP0ThWkx3VCWqR0Tolsbf5gol9at-OCNNiUKkGM509TiHVQ8pkSIXm_I-83pUzSPuMPY6C82Ch8NNfoTVvAx2SuPw/s400/Screen+Shot+2012-04-07+at+11.54.04+AM.png" style="-webkit-box-shadow: rgba(0, 0, 0, 0.496094) 1px 1px 5px; background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; box-shadow: rgba(0, 0, 0, 0.496094) 1px 1px 5px; padding-bottom: 8px; padding-left: 8px; padding-right: 8px; padding-top: 8px; position: relative;" width="400" /></a></div>
<b><br /></b>
<b><br /></b>
<b>What is Class?</b><br />
<b>Ans.</b> <span style="font-family: MyriadSet; font-size: xx-small;"> </span><span style="font-family: inherit;">In Objective-C, we define objects by defining their class. The class definition is a prototype for a kind of object; it declare the instance variable that become part of every member of the class, and it defines a set of methods that can be use by all objects in a class.</span><br />
<b><br /></b>
<b>What is Object?</b><br />
<b>Ans. </b>As the name implies that object orient programme based around object. The object associate data with particular operation that that affect or use data.<br />
<br />
<b>What is </b><span style="font-family: inherit;"><b>difference between function calls and messages?</b></span><br />
<span style="font-family: MyriadSet; font-size: 10pt;"> </span><span style="font-family: MyriadSet;"><b>Ans. </b>A function and its argument are joined together at compile time, but a message and a receiving object are united until the programme is running and message is sent.</span><br />
<div>
<span style="font-family: MyriadSet;"><br /></span></div>
<div>
<span style="font-family: MyriadSet;"><b>What is polymorphism?</b></span></div>
<div>
<span style="font-family: MyriadSet;"><b>Ans. </b>It mean having multiple form.<b> </b></span></div>
<div>
<ul style="line-height: 1.4; list-style-image: initial; list-style-position: initial; list-style-type: disc; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.5em; padding-bottom: 0px; padding-left: 2.5em; padding-right: 2.5em; padding-top: 0px; text-align: left;">
<li style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-color: initial; border-top-style: none; border-top-width: initial; border-width: initial; margin-bottom: 0.25em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 0px;">Polymorphism is the ability to process objects differently depending on their data types.</li>
<li style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-color: rgb(119, 119, 119); border-top-style: none; border-top-width: 1px; border-width: initial; margin-bottom: 0.25em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 0px;">Polymorphism is the ability to redefine methods for derived classes.</li>
</ul>
<div>
There is two types of polymorphism in OOPS:</div>
</div>
<div>
</div>
<div>
<ol style="text-align: left;">
<li style="margin-bottom: 0.25em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 0px;">Compile time</li>
<li style="margin-bottom: 0.25em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 0px;">Run Time.</li>
</ol>
<b>Compile Time</b>: Method overloading, means two same name methods with different argument.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVCgaSEvKfzs4zblEyhJ5srVwz_b7K3KRJurWes4l8IgcYxaSTxFf9hKwdtf0cxuCKujdgH6xujKiMCMHJiZJUQQjEk-QcNgeG3msI7xA3sk1IFzp-5gTggkVaRPmvM3OBf3Hrmu71tPoC/s1600/mehod-overloading-compile-time-polymorphism.png" style="color: #cc0033; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" height="182" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVCgaSEvKfzs4zblEyhJ5srVwz_b7K3KRJurWes4l8IgcYxaSTxFf9hKwdtf0cxuCKujdgH6xujKiMCMHJiZJUQQjEk-QcNgeG3msI7xA3sk1IFzp-5gTggkVaRPmvM3OBf3Hrmu71tPoC/s400/mehod-overloading-compile-time-polymorphism.png" style="-webkit-box-shadow: rgba(0, 0, 0, 0.496094) 1px 1px 5px; background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; box-shadow: rgba(0, 0, 0, 0.496094) 1px 1px 5px; padding-bottom: 8px; padding-left: 8px; padding-right: 8px; padding-top: 8px; position: relative;" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div>
</div>
<div>
<div>
</div>
<b>Run Time: </b>Method overriding, means same name, same signature but different implementation.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMgr1SdbAXBDXv6waqRLWh3tUSQoXNvs-5Y6Hvh3vP-8gozB3G2qxpa6hRyQ_chFOa8Mbp1n1Uow3VHqCykaU6OGnUZWT0OklUCtzGk7jzPbPyjEsOPU30F_-yN2Ynzp2eFtQOiy1tLkVZ/s1600/method-overriding-rin-time-polymorphism.png" style="color: #cc0033; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" height="211" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMgr1SdbAXBDXv6waqRLWh3tUSQoXNvs-5Y6Hvh3vP-8gozB3G2qxpa6hRyQ_chFOa8Mbp1n1Uow3VHqCykaU6OGnUZWT0OklUCtzGk7jzPbPyjEsOPU30F_-yN2Ynzp2eFtQOiy1tLkVZ/s400/method-overriding-rin-time-polymorphism.png" style="-webkit-box-shadow: rgba(0, 0, 0, 0.496094) 1px 1px 5px; background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; box-shadow: rgba(0, 0, 0, 0.496094) 1px 1px 5px; padding-bottom: 8px; padding-left: 8px; padding-right: 8px; padding-top: 8px; position: relative;" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<b>What is Inheritance?</b></div>
<div class="separator" style="clear: both; text-align: left;">
<b>Ans. </b>Inheritance is a way to reuse of existing code or code of existing objects.</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<b>What is NSObject Class?</b></div>
<div class="separator" style="clear: both; text-align: left;">
<b>Ans. </b>NSObjects is root class, that doesn't have any superclass. Its define basic framework of Objective-C and its Objects interaction.</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<b>What is Abstract Class?</b></div>
<div class="separator" style="clear: both; text-align: left;">
<b>Ans. </b>Abstract class is a incomplete class, but contains the useful code that reduce the burden of its subclass.</div>
<div>
<br />
<b>What is Interface and its implementation?</b><br />
<b>Ans. </b><br />
<div class="column">
<ul style="line-height: 1.4; list-style-image: initial; list-style-position: initial; list-style-type: square; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.5em; padding-bottom: 0px; padding-left: 2.5em; padding-right: 2.5em; padding-top: 0px;">
<li style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-color: initial; border-top-style: none; border-top-width: initial; border-width: initial; margin-bottom: 0.25em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 0px;"><span style="font-family: inherit;">An <span style="font-weight: 700;">interface </span>that declares the methods and instance variables of the class and names its superclass </span></li>
<li style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-color: rgb(119, 119, 119); border-top-style: none; border-top-width: 1px; border-width: initial; margin-bottom: 0.25em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-indent: 0px;"><span style="font-family: inherit;">An <span style="font-weight: 700;">implementation </span>that actually defines the class (contains the code that implements its methods)</span><br /><div style="font-family: ZapfDingbats; font-size: 7pt;">
<span style="font-family: MyriadSet; font-size: 10pt;"><br /></span></div>
<div style="font-family: ZapfDingbats; font-size: 7pt;">
<span style="font-family: MyriadSet; font-size: 10pt;"><br /></span></div>
<span style="font-family: MyriadSet;">A typical interface and its implementation:</span><br /><span style="font-family: MyriadSet;">_____________________________________</span><br /><span style="font-family: MyriadSet;">@interface rectangle: Superclass{</span><br /><span style="font-family: MyriadSet;"><br /></span><br /><span style="font-family: MyriadSet;">instance variables declaration only....</span><br /><span style="font-family: MyriadSet;">.........</span><br /><span style="font-family: MyriadSet;">.......</span><br /><span style="font-family: MyriadSet;">........</span><br /><br /><div style="font-family: ZapfDingbats; font-size: 7pt;">
<span style="font-family: MyriadSet; font-size: 10pt;"> }</span></div>
<div style="font-family: ZapfDingbats;">
<span style="font-family: MyriadSet;">method declaration only</span></div>
<div style="font-family: ZapfDingbats; font-size: 7pt;">
<span style="font-family: MyriadSet; font-size: 10pt;"><br /></span></div>
<span style="font-family: MyriadSet;">@end</span><br /><span style="font-family: MyriadSet;"><br /></span><br /><span style="font-family: MyriadSet;">______________________________________</span><br /><span style="font-family: MyriadSet;">#import "rectangle.h"</span><br /><span style="font-family: MyriadSet;"><br /></span><br /><span style="font-family: MyriadSet;">@implementation rectangle</span><br /><span style="font-family: MyriadSet;">@synthesize the variable for getter-setter methods</span><br /><span style="font-family: MyriadSet;"><br /></span><br /><span style="font-family: MyriadSet;">method definitions</span><br /><span style="font-family: MyriadSet;"><br /></span><br /><span style="font-family: MyriadSet;">@end</span><br /><span style="font-family: MyriadSet;">_______________________________________</span></li>
</ul>
<div>
<span style="font-family: MyriadSet;"><br /></span></div>
<div>
<b><span style="font-family: inherit;">Scope of instance variable in objective c</span></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieuZ7C8UQZHztQWIG1Z3DKCR0iJNOq-s4Z0vJmQFGcsKo9QqwQHHke-WKc4r0lrO1FEyoeFCLNWaN2H-iCAr_lc65o0XFI3Fu7lcrtJ9qIE2XdcsKBVZ9u8G_4wYwV3-5U-JoOwO-EwFEA/s1600/scope-of-instance-variable-in-objective-c.png" style="color: #cc0033; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" height="288" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieuZ7C8UQZHztQWIG1Z3DKCR0iJNOq-s4Z0vJmQFGcsKo9QqwQHHke-WKc4r0lrO1FEyoeFCLNWaN2H-iCAr_lc65o0XFI3Fu7lcrtJ9qIE2XdcsKBVZ9u8G_4wYwV3-5U-JoOwO-EwFEA/s320/scope-of-instance-variable-in-objective-c.png" style="-webkit-box-shadow: rgba(0, 0, 0, 0.496094) 1px 1px 5px; background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; box-shadow: rgba(0, 0, 0, 0.496094) 1px 1px 5px; padding-bottom: 8px; padding-left: 8px; padding-right: 8px; padding-top: 8px; position: relative;" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit; font-size: small;"><b>Some important delegates in iPhone Xcode:</b></span></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: inherit; font-size: small;"><b style="background-color: cyan;">UITableViewDelegate:</b></span></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">NSInteger</span>)numberOfSectionsInTableView:(<span class="s1">UITableView</span> *)tableView ;</span></b></div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></div>
<div class="p1">
</div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">NSInteger</span>)tableView:(<span class="s1">UITableView</span> *)tableView numberOfRowsInSection:(<span class="s1">NSInteger</span>)section;</span></b></div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></div>
<div class="p1">
</div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">-(<span class="s1">UITableViewCell</span> *)tableView:(<span class="s1">UITableView</span> *)tableView cellForRowAtIndexPath:(<span class="s1">NSIndexPath</span> *)indexPath ;</span></b></div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></div>
<div class="p1">
</div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">void</span>)tableView:(<span class="s2">UITableView</span> *)tableView didSelectRowAtIndexPath:(<span class="s2">NSIndexPath</span> *)indexPath;</span></b></div>
<div class="p1">
<b style="background-color: cyan;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></div>
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both;">
<span style="font-family: inherit; font-size: small;"><b style="background-color: yellow;">CLLocationManage Delegate:</b></span></div>
<div>
<span style="font-family: inherit;"><b><br /></b></span></div>
<div>
<b><span style="background-color: #f3f3f3; font-family: 'Courier New', Courier, monospace;"><br /></span></b></div>
<div>
<div class="p1">
<b><span style="background-color: #f3f3f3; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">void</span>)locationManager:(<span class="s2">CLLocationManager</span> *)manager didUpdateToLocation:(<span class="s2">CLLocation</span> *)newLocation fromLocation:(<span class="s2">CLLocation</span> *)oldLocation;</span></b></div>
</div>
<br />
<div class="separator" style="clear: both; text-align: left;">
</div>
<div>
<div class="p1">
<b><span style="background-color: yellow; font-family: inherit; font-size: small;">MKMapView Delegate</span></b></div>
<div class="p1">
<span style="background-color: #eeeeee;"><br /></span></div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">MKAnnotationView</span> *)mapView:(<span class="s1">MKMapView</span> *)theMapView viewForAnnotation:(<span class="s2">id</span> <<span class="s1">MKAnnotation</span>>)annotation;</span></b></div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">-(<span class="s1">void</span>)mapView:(<span class="s2">MKMapView</span> *)mapView annotationView:(<span class="s2">MKPinAnnotationView</span>*)view calloutAccessoryControlTapped:(<span class="s2">UIControl</span> *)control ; </span></b></div>
<div class="p1">
<span style="font-family: 'Courier New', Courier, monospace;"><b style="background-color: #eeeeee;"><br /></b></span></div>
<div class="p1">
<span style="font-family: 'Courier New', Courier, monospace;"><b style="background-color: #eeeeee;"><br /></b></span></div>
<div class="p1">
</div>
<div class="p1">
<span style="font-family: inherit; font-size: small;"><b style="background-color: cyan;">UIWebView Delegate</b></span></div>
<div class="p1">
<span style="font-family: inherit;"><b style="background-color: cyan;"><br /></b></span></div>
<div class="p1">
</div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">BOOL</span>)webView:(<span class="s2">UIWebView</span> *)webView shouldStartLoadWithRequest:(<span class="s2">NSURLRequest</span> *)request navigationType:(<span class="s2">UIWebViewNavigationType</span>)navigationType;</span></b></div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></div>
<div class="p1">
</div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">void</span>)webViewDidStartLoad:(<span class="s2">UIWebView</span> *)webView;</span></b></div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></div>
<div class="p1">
</div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">void</span>)webViewDidFinishLoad:(<span class="s2">UIWebView</span> *)webView;</span></b></div>
<div class="p1">
<span style="font-family: 'Courier New', Courier, monospace;"><b style="background-color: #f3f3f3;"><br /></b></span></div>
<div class="p1">
<span style="font-family: 'Courier New', Courier, monospace;"><b style="background-color: #f3f3f3;"><br /></b></span></div>
<div class="p1">
</div>
<div class="p1">
<span style="font-family: inherit; font-size: small;"><b style="background-color: yellow;">UISearchBar Delegate</b></span></div>
<div class="p1">
</div>
<div class="p1">
</div>
<div class="p1">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">void</span>)searchBarTextDidBeginEditing:(<span class="s2">UISearchBar</span> *)searchB ;</span></b></span></div>
<div class="p1">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></span></div>
<div class="p2">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">void</span>)searchBar:(<span class="s2">UISearchBar</span> *)searchB textDidChange:(<span class="s2">NSString</span> *)searchText ;</span></b></span></div>
<div class="p1">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></span></div>
<div class="p2">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">void</span>)searchBarSearchButtonClicked:(<span class="s2">UISearchBar</span> *)searchB ;</span></b></span></div>
<div class="p2">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></span></div>
<div class="p2">
</div>
<div class="p1">
<b style="background-color: #f3f3f3;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">void</span>)searchBarCancelButtonClicked:(<span class="s2">UISearchBar</span> *)searchB;</span></b></div>
<div class="p1">
<span style="font-family: 'Courier New', Courier, monospace;"><b style="background-color: #f3f3f3;"><br /></b></span></div>
<div class="p1">
<span style="font-family: 'Courier New', Courier, monospace;"><b style="background-color: #f3f3f3;"><br /></b></span></div>
<div class="p1">
<span style="font-family: 'Courier New', Courier, monospace;"><b style="background-color: #f3f3f3;"><br /></b></span></div>
<div class="p1">
</div>
<div class="p1">
<span style="font-family: inherit; font-size: small;"><b style="background-color: cyan;">UIActionSheet Delegate and UIAlertView Delegate</b></span></div>
<div class="p1">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></span></div>
<div class="p1">
</div>
<div class="p1">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span class="s1">void</span>)alertView:(<span class="s2">UIAlertView</span> *)alertView clickedButtonAtIndex:(<span class="s2">NSInteger</span>)buttonIndex;</span></b></span></div>
<div class="p2">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></span></div>
<div class="p5">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">-(<span class="s1">void</span>)actionSheet:(<span class="s2">UIActionSheet</span> *)actionSheet clickedButtonAtIndex:(<span class="s2">NSInteger</span>)buttonIndex ;</span></b></span></div>
<div class="p5">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></span></div>
<div class="p5">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></span></div>
<div class="p5">
<span style="background-color: #f3f3f3;"><b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></b></span></div>
<div class="p5">
</div>
<div class="p1">
<span style="background-color: yellow;"><span style="font-family: inherit; font-size: small;"><b>MFMailComposeViewControllerDelegate with code:</b></span></span></div>
<div class="p1">
<span style="background-color: yellow;"><span style="font-family: inherit;"><b><br /></b></span></span></div>
<div class="p1">
</div>
<div class="p1">
/<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;">/ Displays an email composition interface inside the application. Populates all the Mail fields. </b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;">-(<span class="s1">void</span>)displayMailComposerSheet </b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;">{</b></span></div>
<div class="p4">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"></span> MFMailComposeViewController<span class="s2"> *picker = [[[</span>MFMailComposeViewController<span class="s2"></span><span class="s3">alloc</span><span class="s2">] </span><span class="s3">init</span><span class="s2">] </span><span class="s3">autorelease</span><span class="s2">]; </span></b></span></div>
<div class="p4">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span> picker.</span>mailComposeDelegate<span class="s2"> = </span><span class="s1">self</span><span class="s2">;</span></b></span></div>
<div class="p1">
<span class="Apple-tab-span" style="background-color: #eeeeee;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b></b></span></span></div>
<div class="p4">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"></span><span class="s1"> if</span><span class="s2">([</span>MFMailComposeViewController<span class="s2"> </span><span class="s3">canSendMail</span><span class="s2">])</span></b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span> {</b></span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></b></span></div>
<div class="p5">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> [picker </span><span class="s3">setSubject</span><span class="s2">:</span>@"Near2Me iPhone App Feedback"<span class="s2">];<span class="Apple-tab-span"></span></span></b></span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s4"> NSString</span> *emailBody =<span class="s5">@""</span>;</b></span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></b></span></div>
<div class="p6">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> [picker </span>setToRecipients<span class="s2">:[</span><span class="s4">NSArray</span><span class="s2"></span>arrayWithObjects<span class="s2">:</span><span class="s5">@"xyz444&6@gmail.com"</span><span class="s2">,</span><span class="s1">nil</span><span class="s2">]];</span></b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> [picker <span class="s3">setMessageBody</span>:emailBody <span class="s3">isHTML</span>:<span class="s1">NO</span>];</b></span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></b></span></div>
<div class="p6">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> [</span><span class="s1">self</span><span class="s2">.</span><span class="s6">homeView</span><span class="s2"> </span>presentModalViewController<span class="s2">:picker </span>animated<span class="s2">:</span><span class="s1">YES</span><span class="s2">];</span></b></span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></b></span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span> }</b></span></div>
<div class="p1">
<span class="Apple-tab-span" style="background-color: #eeeeee;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b></b></span></span></div>
<div class="p1">
<span class="Apple-tab-span" style="background-color: #eeeeee;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b></b></span></span></div>
<div class="p1">
<span class="Apple-tab-span" style="background-color: #eeeeee;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b></b></span></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;">}</b></span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><br /></b></span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><br /></b></span></div>
<div class="p2">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;">// Dismisses the email composition interface when users tap Cancel or Send. Proceeds to update the message field with the result of the operation.</b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;">- (<span class="s1">void</span>)mailComposeController:(<span class="s4">MFMailComposeViewController</span>*)controller didFinishWithResult:(<span class="s4">MFMailComposeResult</span>)result error:(<span class="s4">NSError</span>*)error </b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;">{<span class="Apple-tab-span"></span></b></span></div>
<div class="p1">
<span class="Apple-tab-span" style="background-color: #eeeeee;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b></b></span></span></div>
<div class="p2">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"></span>// Notifies users about errors associated with the interface</b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="s1">switch</span> (result)</b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span> {</b></span></div>
<div class="p6">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span><span class="s1"> case</span><span class="s2"> </span>MFMailComposeResultCancelled<span class="s2">:</span></b></span></div>
<div class="p5">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span><span class="s3"> NSLog</span><span class="s2">(</span>@"Result: canceled"<span class="s2">);</span></b></span></div>
<div class="p7">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span> break<span class="s2">;</span></b></span></div>
<div class="p6">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span><span class="s1"> case</span><span class="s2"> </span>MFMailComposeResultSaved<span class="s2">:</span></b></span></div>
<div class="p5">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span><span class="s3"> NSLog</span><span class="s2">(</span>@"Result: Saved"<span class="s2">);</span></b></span></div>
<div class="p7">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span> break<span class="s2">;</span></b></span></div>
<div class="p6">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span><span class="s1"> case</span><span class="s2"> </span>MFMailComposeResultSent<span class="s2">:</span></b></span></div>
<div class="p6">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span><span class="s1"> if</span><span class="s2"> (</span>MFMailComposeResultSent<span class="s2">)</span></b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> {</b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><br /></b></span></div>
<div class="p4">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span> UIAlertView<span class="s2"> *alert = [[</span>UIAlertView<span class="s2"> </span><span class="s3">alloc</span><span class="s2">]</span><span class="s3">initWithTitle</span><span class="s2">:</span><span class="s5">@"Near2Me Team"</span></b></span></div>
<div class="p5">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> </span><span class="s3">message</span><span class="s2">:</span>@"Thanks for your feedback. We always try to make application more simpler and accurate."</b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> <span class="s3">delegate</span>:<span class="s1">nil</span> </b></span></div>
<div class="p6">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span> cancelButtonTitle<span class="s2">:</span><span class="s5">@"OK"</span><span class="s2"> </span></b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="s3"> otherButtonTitles</span>:<span class="s1">nil</span>];</b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> [alert <span class="s3">show</span>];</b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> [alert <span class="s3">release</span>];</b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span> }</b></span></div>
<div class="p5">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span><span class="s3"> NSLog</span><span class="s2">(</span>@"Result: Sent"<span class="s2">);</span></b></span></div>
<div class="p7">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span> break<span class="s2">;</span></b></span></div>
<div class="p6">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span><span class="s1"> case</span><span class="s2"> </span>MFMailComposeResultFailed<span class="s2">:</span></b></span></div>
<div class="p5">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span><span class="s3"> NSLog</span><span class="s2">(</span>@"Result: failed"<span class="s2">);</span></b></span></div>
<div class="p7">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span> break<span class="s2">;</span></b></span></div>
<div class="p7">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span> default<span class="s2">:</span></b></span></div>
<div class="p5">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span><span class="s3"> NSLog</span><span class="s2">(</span>@"Result: not Send"<span class="s2">);</span></b></span></div>
<div class="p7">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span><span class="Apple-tab-span"></span></span> break<span class="s2">;</span></b></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="Apple-tab-span"></span> }</b></span></div>
<div class="p1">
<span class="Apple-tab-span" style="background-color: #eeeeee;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b></b></span></span></div>
<div class="p1">
<span class="Apple-tab-span" style="background-color: #eeeeee;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b></b></span></span></div>
<div class="p1">
<span class="Apple-tab-span" style="background-color: #eeeeee;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b></b></span></span></div>
<div class="p1">
<span class="Apple-tab-span" style="background-color: #eeeeee;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b></b></span></span></div>
<div class="p6">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"><span class="Apple-tab-span"></span>[</span><span class="s1">self</span><span class="s2">.</span><span class="s6">homeView</span><span class="s2"> </span>dismissModalViewControllerAnimated<span class="s2">:</span><span class="s1">YES</span><span class="s2">];</span></b></span></div>
<div class="p2">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;"><span class="s2"></span>//[appDeleg.window addSubview:appDeleg.viewMenuTab];</b></span></div>
<div class="p1">
<span class="Apple-tab-span" style="background-color: #eeeeee;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b></b></span></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><b style="background-color: #eeeeee;">}</b></span></div>
<br />
<div class="p1">
<span style="background-color: yellow;"><span style="font-family: inherit;"><b><br /></b></span></span></div>
<br />
<br />
<br />
<br />
<br />
<span style="color: #f3f3f3; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: small;"><b style="background-color: #351c75;">UINavigationController</b></span><br />
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">homeView = [[HomeViewController alloc]initWithNibName:</span><span class="s1" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">@"HomeViewController"</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">bundle:[NSBundle mainBundle]];</span><br />
<br />
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">navigation = [[UINavigationController alloc]initWithRootViewController:homeView];</span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">[</span><span class="s2" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">self</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">.window setBackgroundColor:BGCOLOR];</span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">[self.window addSubview:navigation.view];</span></div>
<br />
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span>
<b><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">// hiding - show </span><span class="s3" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">navigationController</span><span class="s1" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"> </span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">setToolbar</span></b><br />
<br />
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span class="s1"> [</span><span class="s2">self</span><span class="s1">.</span><span class="s3">navigationController</span><span class="s1"> </span>setToolbarHidden<span class="s1">:</span><span class="s2">YES</span><span class="s1"> </span>animated<span class="s1">:</span><span class="s2">NO</span><span class="s1">];</span></span></div>
<br />
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span>
<br />
<div class="p1">
<span style="color: white; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: small;"><b style="background-color: blue;">UITabBarController</b></span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: small;"><b><br /></b></span></div>
<br />
<br />
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span class="s1"> </span><span class="s2">self</span><span class="s1">.</span><span class="s3">window</span><span class="s1"> = [[[</span><span class="s4">UIWindow</span><span class="s1"> </span>alloc<span class="s1">] </span>initWithFrame<span class="s1">:[[</span><span class="s4">UIScreen</span><span class="s1"> </span>mainScreen<span class="s1">] </span>bounds<span class="s1">]]</span>autorelease<span class="s1">];</span></span></div>
<div class="p2">
<span class="s4" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">UIViewController</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"> *viewController1 = [[[</span><span class="s3" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">FirstViewController</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"> </span><span class="s5" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">alloc</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">]</span><span class="s5" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">initWithNibName</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">:</span><span class="s6" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">@"FirstViewController"</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"> </span><span class="s5" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">bundle</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">:</span><span class="s2" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">nil</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">] </span><span class="s5" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">autorelease</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">];</span></div>
<div class="p2">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span class="s4">UIViewController</span> *viewController2 = [[[<span class="s3">SecondViewController</span> <span class="s5">alloc</span>]<span class="s5">initWithNibName</span>:<span class="s6">@"SecondViewController"</span> <span class="s5">bundle</span>:<span class="s2">nil</span>] <span class="s5">autorelease</span>];</span></div>
<div class="p3">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="p3">
<span class="s3" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">tabBarController</span><span class="s1" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"> = [[[</span><span class="s4" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">UITabBarController</span><span class="s1" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"> </span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">alloc</span><span class="s1" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">] </span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">init</span><span class="s1" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">] </span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">autorelease</span><span class="s1" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">];</span></div>
<div class="p1">
<span class="s3" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">tabBarController</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">.</span><span class="s4" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">viewControllers</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"> = [</span><span class="s4" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">NSArray</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"> </span><span class="s5" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">arrayWithObjects</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">:viewController1, viewController2, </span><span class="s2" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">nil</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">];</span></div>
<div class="p1">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="p4">
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span class="s2">self</span><span class="s1">.</span>window<span class="s1">.</span><span class="s4">rootViewController</span><span class="s1"> = </span><span class="s2">self</span><span class="s1">.</span>tabBarController<span class="s1">;</span></span></div>
<br />
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><br /></span>
<br />
<pre class="objc" style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; line-height: 1.333; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; width: auto;"><span style="color: #110000;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: small;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><b>NSXMLParser</b></span></span></span></pre>
<br />
<br />
<pre class="objc" style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; line-height: 1.333; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; width: auto;"><span style="background-color: white; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 20px; font-weight: bold; line-height: 24px; white-space: normal;">Parsing the start of an element</span><span style="color: #110000;"><span style="font-size: 12px;">
</span><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-</span> <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">void</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span>parser<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSXMLParser</span> <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span>parser didStartElement<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSString</span> <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span>elementName
namespaceURI<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSString</span> <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span>namespaceURI qualifiedName<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSString</span> <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span>qualifiedName
attributes<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSDictionary</span> <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span>attributeDict </span></span><span style="color: #002200; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">;</span></pre>
<br />
<br />
<span style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 20px; line-height: 24px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Parsing an element’s value</span></span><br />
<br />
<pre class="objc" style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; color: #110000; line-height: 1.333; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; width: auto;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-</span> <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">void</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span>parser<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSXMLParser</span> <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span>parser foundCharacters<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSString</span> <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">string;</span></span></pre>
<pre class="objc" style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; color: #110000; font-size: 12px; line-height: 1.333; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; width: auto;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span></pre>
<pre class="objc" style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; line-height: 1.333; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; width: auto;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 24px; margin-bottom: 1em; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; white-space: normal;">
<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Parsing the end of an element</span></span><span style="background-color: transparent; color: #11740a; font-size: 12px; font-style: italic; line-height: 1.333;">//XMLParser.m</span></div>
<div class="wp_syntax" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 1px; border-color: initial; border-left-color: silver; border-left-width: 1px; border-right-color: silver; border-right-width: 1px; border-style: initial; border-top-color: silver; border-top-style: solid; border-top-width: 1px; line-height: 24px; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; white-space: normal; width: 595px;">
<div class="code" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 4px; padding-right: 4px; padding-top: 2px; vertical-align: top;">
<pre class="objc" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; float: none; line-height: 1.333; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline; width: auto;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-</span><span style="color: #110000;"> </span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">void</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span><span style="color: #110000;">parser</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSXMLParser</span><span style="color: #110000;"> </span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span><span style="color: #110000;">parser didEndElement</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSString</span><span style="color: #110000;"> </span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span><span style="color: #110000;">elementName
namespaceURI</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSString</span><span style="color: #110000;"> </span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span><span style="color: #110000;">namespaceURI qualifiedName</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSString</span><span style="color: #110000;"> </span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span><span style="color: #110000;">qName </span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">{</span></span></pre>
</div>
</div>
</span></pre>
<br />
<br />
<br />
<br />
<br />
<br />
<pre class="objc" style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; color: #110000; line-height: 1.333; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; width: auto;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: small;"><b>UIPickerView Delegates</b></span></span></pre>
<br />
<br />
<pre class="objc" style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; color: #110000; line-height: 1.333; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; width: auto;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-</span> <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span>NSInteger<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span>pickerView<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span>UIPickerView <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span>thePickerView <b>numberOfRowsInComponent</b><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span>NSInteger<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span>component <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">{</span>
<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">return</span> <span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span>arrayColors count<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">]</span>;
<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">}</span></span></pre>
<pre class="objc" style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; color: #110000; line-height: 1.333; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; width: auto;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">
</span></span></pre>
<pre class="objc" style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; color: #110000; line-height: 1.333; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; width: auto;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSString</span> *)pickerView:(UIPickerView *)thePickerView <b>titleForRow</b>:(NSInteger)row forComponent:(NSInteger)component {
<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">return</span> [arrayColors objectAtIndex:row];
}</span></span></pre>
<pre class="objc" style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; color: #110000; line-height: 1.333; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; width: auto;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">
</span></span></pre>
<pre class="objc" style="background-attachment: initial; background-clip: initial; background-color: #f9f9f9; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: none; color: #110000; line-height: 1.333; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline; width: auto;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">- (<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">void</span>)pickerView:(UIPickerView *)thePickerView <b>didSelectRow</b>:(NSInteger)row inComponent:(NSInteger)component {
NSLog(<span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">@</span><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">"Selected Color: %@. Index of selected color: %i"</span>, [arrayColors objectAtIndex:row], row);
}</span></span></pre>
</div>
</div>
</div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-42517790158486057792013-03-18T02:01:00.001-07:002013-03-18T02:01:24.161-07:00Send data to server in iOS sdk<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #7a25ab;">NSString</span> *myRequestString = [[<span style="color: #7a25ab;">NSString</span> <span style="color: #480083;">alloc</span>] <span style="color: #480083;">initWithFormat</span>:<span style="color: #d73321;">@"name=%@&pwd=%@&mail=%@"</span>, userName, password, mail];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #7a25ab;">NSData</span> *myRequestData = [ <span style="color: #7a25ab;">NSData</span> <span style="color: #480083;">dataWithBytes</span>: [ myRequestString <span style="color: #480083;">UTF8String</span> ] <span style="color: #480083;">length</span>: [ myRequestString <span style="color: #480083;">length</span> ] ];</div>
<div style="color: #d73321; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span><span style="color: #7a25ab;">NSMutableURLRequest</span><span style="color: black;"> *request = [ [ </span><span style="color: #7a25ab;">NSMutableURLRequest</span><span style="color: black;"> </span><span style="color: #480083;">alloc</span><span style="color: black;"> ] </span><span style="color: #480083;">initWithURL</span><span style="color: black;">: [ </span><span style="color: #7a25ab;">NSURL</span><span style="color: black;"> </span><span style="color: #480083;">URLWithString</span><span style="color: black;">:</span>@"http://url.com/iphone/iphone.php/?"<span style="color: black;">]];</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
[request <span style="color: #480083;">setHTTPMethod</span>: <span style="color: #d73321;">@"POST"</span>];</div>
<div style="color: #d73321; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> [request </span><span style="color: #480083;">setValue</span><span style="color: black;">:</span>@"application/x-www-form-urlencoded"<span style="color: black;"> </span><span style="color: #480083;">forHTTPHeaderField</span><span style="color: black;">:</span>@"content-type"<span style="color: black;">];</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
[request <span style="color: #480083;">setHTTPBody</span>: myRequestData];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #7a25ab;">NSURLResponse</span> *response;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #7a25ab;">NSError</span> *err;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #7a25ab;">NSData</span> *returnData = [<span style="color: #7a25ab;">NSURLConnection</span> <span style="color: #480083;">sendSynchronousRequest</span>: request <span style="color: #480083;">returningResponse</span>:&response <span style="color: #480083;">error</span>:&err];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #7a25ab;">NSString</span> *content = [<span style="color: #7a25ab;">NSString</span> <span style="color: #480083;">stringWithUTF8String</span>:[returnData <span style="color: #480083;">bytes</span>]];</div>
<div style="color: #d73321; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span><span style="color: #480083;">NSLog</span><span style="color: black;">(</span>@"responseData: %@"<span style="color: black;">, content);</span></div>
<div style="color: #d73321; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><br /></span></div>
<div style="color: #d73321; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"></span></div>
<div style="color: #480083; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #7a25ab;">NSString</span><span style="color: black;">* responseString = [[</span><span style="color: #7a25ab;">NSString</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithData<span style="color: black;">:</span><span style="color: #4b8087;">returnData</span><span style="color: black;"> </span>encoding<span style="color: black;">:</span>NSNonLossyASCIIStringEncoding<span style="color: black;">];</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #c301a4;">if</span> ([<span style="color: #4b8087;">content</span> <span style="color: #480083;">isEqualToString</span>:responseString])</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<br />
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-33934781458743110822013-02-18T19:52:00.005-08:002013-02-18T19:56:15.628-08:00JSON with NSURLConnection<div dir="ltr" style="text-align: left;" trbidi="on">
<h4 style="text-align: left;">
Header File</h4>
<br />
<br />
<div style="color: #c301a4; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
@property<span style="color: black;"> (</span>retain<span style="color: black;">, </span>nonatomic<span style="color: black;">) </span><span style="color: #7a25ab;">NSMutableData</span><span style="color: black;">* responseData;</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
-(<span style="color: #c301a4;">IBAction</span>)loadData;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<h4 style="text-align: left;">
<b>Implementation File</b></h4>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br />
<div style="color: #7a4b2a; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
</div>
<div style="color: #d73321; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #7a4b2a;">#import </span>"ViewController.h"</div>
<br />
<div style="color: #7a4b2a; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
#import <span style="color: #d73321;">"JSON.h"</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="color: #d73321; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #7a4b2a;">#define kLatestKivaLoansURL @</span>"http://api.kivaws.org/v1/loans/search.json?status=fundraising"</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #c301a4;">@implementation</span> ViewController</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #c301a4;">@synthesize</span> responseData;</div>
<div>
<br /></div>
<br />
<br />
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
-(<span style="color: #c301a4;">void</span>)loadData</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #7a25ab; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #c301a4;">self</span><span style="color: black;">.</span><span style="color: #4b8087;">responseData</span><span style="color: black;"> = [</span>NSMutableData<span style="color: black;"> </span><span style="color: #480083;">data</span><span style="color: black;">];</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #7a25ab; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>NSURLRequest<span style="color: black;"> *request = [</span>NSURLRequest<span style="color: black;"> </span><span style="color: #480083;">requestWithURL</span><span style="color: black;">:[</span>NSURL<span style="color: black;"> </span><span style="color: #480083;">URLWithString</span><span style="color: black;">:</span><span style="color: #7a4b2a;">kLatestKivaLoansURL</span><span style="color: black;">]];</span></div>
<div style="color: #480083; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> [[</span><span style="color: #7a25ab;">NSURLConnection</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithRequest<span style="color: black;">:request </span>delegate<span style="color: black;">:</span><span style="color: #c301a4;">self</span><span style="color: black;">];</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
- (<span style="color: #c301a4;">void</span>)connection:(<span style="color: #7a25ab;">NSURLConnection</span> *)connection didReceiveResponse:(<span style="color: #7a25ab;">NSURLResponse</span> *)response {</div>
<div style="color: #4b8087; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> [</span>responseData<span style="color: black;"> </span><span style="color: #480083;">setLength</span><span style="color: black;">:</span><span style="color: #4900da;">0</span><span style="color: black;">];</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
- (<span style="color: #c301a4;">void</span>)connection:(<span style="color: #7a25ab;">NSURLConnection</span> *)connection didReceiveData:(<span style="color: #7a25ab;">NSData</span> *)data {</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
[<span style="color: #4b8087;">responseData</span> <span style="color: #480083;">appendData</span>:data];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
- (<span style="color: #c301a4;">void</span>)connection:(<span style="color: #7a25ab;">NSURLConnection</span> *)connection didFailWithError:(<span style="color: #7a25ab;">NSError</span> *)error {</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>[connection <span style="color: #480083;">release</span>];</div>
<div style="color: #4b8087; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #c301a4;">self</span><span style="color: black;">.</span>responseData<span style="color: black;"> = </span><span style="color: #c301a4;">nil</span><span style="color: black;">;</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="color: #7a4b2a; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
#pragma mark -</div>
<div style="color: #7a4b2a; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
#pragma mark Process loan data</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
- (<span style="color: #c301a4;">void</span>)connectionDidFinishLoading:(<span style="color: #7a25ab;">NSURLConnection</span> *)connection {</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
[connection <span style="color: #480083;">release</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #480083; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span><span style="color: #7a25ab;">NSString</span><span style="color: black;"> *responseString = [[</span><span style="color: #7a25ab;">NSString</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithData<span style="color: black;">:</span><span style="color: #4b8087;">responseData</span><span style="color: black;"> </span>encoding<span style="color: black;">:</span>NSUTF8StringEncoding<span style="color: black;">];</span></div>
<div style="color: #4b8087; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #c301a4;">self</span><span style="color: black;">.</span>responseData<span style="color: black;"> = </span><span style="color: #c301a4;">nil</span><span style="color: black;">;</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7a25ab;">NSArray</span>* latestLoans = [(<span style="color: #7a25ab;">NSDictionary</span>*)[responseString <span style="color: #2e585d;">JSONValue</span>] <span style="color: #480083;">objectForKey</span>:<span style="color: #d73321;">@"loans"</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>[responseString <span style="color: #480083;">release</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008800; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>//choose a random loan</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7a25ab;">NSDictionary</span>* loan = [latestLoans <span style="color: #480083;">objectAtIndex</span>:<span style="color: #4900da;">0</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008800; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>//fetch the data</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7a25ab;">NSNumber</span>* fundedAmount = [loan <span style="color: #480083;">objectForKey</span>:<span style="color: #d73321;">@"funded_amount"</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7a25ab;">NSNumber</span>* loanAmount = [loan <span style="color: #480083;">objectForKey</span>:<span style="color: #d73321;">@"loan_amount"</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #c301a4;">float</span> outstandingAmount = [loanAmount <span style="color: #480083;">floatValue</span>] - [fundedAmount <span style="color: #480083;">floatValue</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7a25ab;">NSString</span>* name = [loan <span style="color: #480083;">objectForKey</span>:<span style="color: #d73321;">@"name"</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7a25ab;">NSString</span>* country = [(<span style="color: #7a25ab;">NSDictionary</span>*)[loan <span style="color: #480083;">objectForKey</span>:<span style="color: #d73321;">@"location"</span>] <span style="color: #480083;">objectForKey</span>:<span style="color: #d73321;">@"country"</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008800; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>//set the text to the label</div>
<div style="color: #d73321; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #4b8087;">label</span><span style="color: black;">.</span><span style="color: #7a25ab;">text</span><span style="color: black;"> = [</span><span style="color: #7a25ab;">NSString</span><span style="color: black;"> </span><span style="color: #480083;">stringWithFormat</span><span style="color: black;">:</span>@"Latest loan: %@ from %@ needs another $%.2f, please help"<span style="color: black;">,</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span> name,country,outstandingAmount</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span> ];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div>
<br /></div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-91622664057820155992013-01-29T20:19:00.000-08:002013-01-29T20:19:18.589-08:00Download on image from another thread(GCD)<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #7a25ab;">dispatch_queue_t</span> downloadQueue = <span style="color: #480083;">dispatch_queue_create</span>(<span style="color: #d73321;">"image"</span>, <span style="color: #c301a4;">NULL</span>);</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #480083;">dispatch_async</span>(downloadQueue, ^{</div>
<div style="color: #d73321; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span><span style="color: #7a25ab;">NSData</span><span style="color: black;"> *imageData = [</span><span style="color: #7a25ab;">NSData</span><span style="color: black;"> </span><span style="color: #480083;">dataWithContentsOfURL</span><span style="color: black;">:[</span><span style="color: #7a25ab;">NSURL</span><span style="color: black;"> </span><span style="color: #480083;">URLWithString</span><span style="color: black;">:</span>@"http://blogs-images.forbes.com/jasonevangelho/files/2013/01/iphone5.jpeg"<span style="color: black;">]];</span></div>
<div style="color: #7a4b2a; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span><span style="color: #480083;">dispatch_async</span><span style="color: black;">(</span>dispatch_get_main_queue<span style="color: black;">(), ^{</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #7a25ab;">UIImage</span> *image = [<span style="color: #7a25ab;">UIImage</span> <span style="color: #480083;">imageWithData</span>:imageData];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #4b8087;">imageView</span>.<span style="color: #7a25ab;">image</span> = image;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #4b8087;">imageView</span>.<span style="color: #7a25ab;">frame</span> = <span style="color: #480083;">CGRectMake</span>(<span style="color: #4900da;">0</span>, <span style="color: #4900da;">0</span>, image.<span style="color: #7a25ab;">size</span>.<span style="color: #7a25ab;">width</span>, image.<span style="color: #7a25ab;">size</span>.<span style="color: #7a25ab;">height</span>);</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #4b8087;">scrollView</span>.<span style="color: #7a25ab;">contentSize</span> = image.<span style="color: #7a25ab;">size</span>;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
});</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
});</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #480083;">dispatch_release</span>(downloadQueue);</div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-34868416999273087992013-01-28T23:11:00.002-08:002013-02-18T19:55:00.665-08:00Downloading a file from url and saving to resources on iPhone<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px;"></span><br />
<pre class="lang-c prettyprint prettyprinted" style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;"><code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">void</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">viewDidLoad
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">{</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">super viewDidLoad</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span></code><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; white-space: normal;"><pre class="lang-c prettyprint prettyprinted" style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;"><code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> self.fileData </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSMutableData</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> data</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">];</span></code></pre>
</span><code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSString</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">file </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSString</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> stringWithFormat</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:@</span><span class="str" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">"http://en.wikipedia.org/wiki/Text_file"</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
NSURL </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">fileURL </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSURL </span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">URLWithString</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">file</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSURLRequest</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">req </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSURLRequest</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> requestWithURL</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">fileURL</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSURLConnection</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">conn </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSURLConnection</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> connectionWithRequest</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">req delegate</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">self</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">}</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">void</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">connection</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:(</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSURLConnection</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*)</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">connection didReceiveResponse</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:(</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSURLResponse</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*)</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">response
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">{</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">self</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">fileData setLength</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span class="lit" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">0</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
self</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">totalFileSize </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSNumber</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> numberWithLongLong</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:[</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">response expectedContentLength</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">]];</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">}</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">void</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">connection</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:(</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSURLConnection</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*)</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">connection didReceiveData</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:(</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSData</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*)</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">data
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">{</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">self</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">fileData appendData</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">data</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">];</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">}</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">void</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">connectionDidFinishLoading</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:(</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSURLConnection</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*)</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">connection
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">{</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSArray</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">dirArray </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSSearchPathForDirectoriesInDomains</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSDocumentDirectory</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">,</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSUserDomainMask</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">,</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> YES</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">);</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSLog</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(@</span><span class="str" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">"%@"</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">,</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">dirArray objectAtIndex</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span class="lit" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">0</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">]);</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSString</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">*</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">path </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSString</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> stringWithFormat</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:@</span><span class="str" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">"%@/blah.text"</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">,</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">dirArray objectAtIndex</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span class="lit" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">0</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">]];</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">if</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">([</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">self</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">.</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">fileData writeToFile</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">path options</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSAtomicWrite</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> error</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">:</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">nil</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">]</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">==</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> NO</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">{</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSLog</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(@</span><span class="str" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">"writeToFile error"</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">);</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">}</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">else</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> </span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">{</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSLog</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(@</span><span class="str" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">"Written!"</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">);</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">}</span><span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
</span><span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">}</span></code></pre>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-48723669350646320012012-12-19T20:36:00.001-08:002012-12-19T20:36:15.134-08:00iOS SDK: Custom Delegates<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="Apple-style-span" style="color: #575757; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px;"></span><br />
<h2 style="text-align: left;">
iOS SDK: Custom Delegates</h2>
<div>
<br /></div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Delegates are a useful tool in communicating between objects. In this tutorial we will create and implement a custom delegate to allow three <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">UISliders</code> to adjust the background color of a <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">ViewController</code>.<br /><span id="more-10848" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"></span></div>
<hr style="background-attachment: initial; background-clip: initial; background-color: #dfdfdf; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #575757; display: block; font-size: 14px; height: 1px; margin-bottom: 30px; margin-left: 0px; margin-right: 0px; margin-top: 30px; width: 680px;" />
<h3 style="color: #575757; font-size: 14px; text-align: left;">
About Delegates</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Messages in Objective-C are a one-way street. A parent class can send a message to its child, but the child cannot, on its own, send a message to its parent. However, with the help of a delegate, two-way communication can be achieved. <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">UIScrollView</code> and <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">UITableView</code> use delegates routinely to communicate between the model, view, and controller. There are many reasons why the delegate pattern is useful. A delegate might be used to make an object reusable, to provide a flexible way to send messages, or to implement customization.</div>
<h3 style="text-align: left;">
<span class="Apple-style-span" style="color: #575757; font-size: 14px;"><span class="Apple-style-span" style="font-weight: normal;">Step 1 : </span>Create a New Project</span></h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Launch Xcode and click File > New > Project. Select an iOS Single View Application and click "Next." Name your product "Delegates" and enter a name for your Company Identifier, such as "com.companyName.delegates." Choose the iPhone device family and click "Next." Choose a location to store your project and click "Create."</div>
<div class="tutorial_image" style="background-color: #f4f4f4; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; color: #575757; font-family: inherit; font-size: 11px; font-style: italic; font-weight: inherit; margin-bottom: 30px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 15px; padding-left: 20px; padding-right: 20px; padding-top: 20px; text-align: center; vertical-align: baseline;">
<img alt="Delegates - project setup" original="https://d339vfjsz5zott.cloudfront.net/iOS-SDK_Delegates/Delegate_01.jpg" src="https://d339vfjsz5zott.cloudfront.net/iOS-SDK_Delegates/Delegate_01.jpg" style="background-color: #f4f4f4; border-bottom-color: rgb(137, 137, 137); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-left-color: rgb(137, 137, 137); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(137, 137, 137); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(137, 137, 137); border-top-style: solid; border-top-width: 1px; display: inline; font-family: inherit; font-size: 11px; font-style: inherit; font-weight: inherit; margin-bottom: auto; margin-left: auto; margin-right: auto; margin-top: auto; max-width: 640px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;" /></div>
<h3 style="text-align: left;">
<br /></h3>
<h3 style="text-align: left;">
Subclassing UISlider</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Click File > New > File and choose a Cocoa Touch Objective-C class. Name your class "MTSlider" and choose <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">UISlider</code> from the "Subclass of" drop down menu. Click "Next," then click "Create."</div>
<div class="tutorial_image" style="background-color: #f4f4f4; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; color: #575757; font-family: inherit; font-size: 11px; font-style: italic; font-weight: inherit; margin-bottom: 30px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 15px; padding-left: 20px; padding-right: 20px; padding-top: 20px; text-align: center; vertical-align: baseline;">
<img alt="Delegates - sublassing UISlider" original="https://d339vfjsz5zott.cloudfront.net/iOS-SDK_Delegates/Delegate_02.jpg" src="https://d339vfjsz5zott.cloudfront.net/iOS-SDK_Delegates/Delegate_02.jpg" style="background-color: #f4f4f4; border-bottom-color: rgb(137, 137, 137); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-left-color: rgb(137, 137, 137); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(137, 137, 137); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(137, 137, 137); border-top-style: solid; border-top-width: 1px; display: inline; font-family: inherit; font-size: 11px; font-style: inherit; font-weight: inherit; margin-bottom: auto; margin-left: auto; margin-right: auto; margin-top: auto; max-width: 640px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;" /></div>
<hr style="background-attachment: initial; background-clip: initial; background-color: #dfdfdf; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #575757; display: block; font-size: 14px; height: 1px; margin-bottom: 30px; margin-left: 0px; margin-right: 0px; margin-top: 30px; width: 680px;" />
<h3 style="text-align: left;">
<span style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #5f5f5f; font-family: inherit; font-size: 30px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Step</span>Adding the Delegate Protocol Methods</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
First we need to declare the methods for the delegate. Click on "MTSlider.h." Type the following code above the interface.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_727575" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 680px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
3</div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
4</div>
<div class="line number5 index4 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
5</div>
<div class="line number6 index5 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
6</div>
<div class="line number7 index6 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
7</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 648px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@class</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">MTSlider;</code></div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@protocol</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">MTSliderDelegate <</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">NSObject</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">></code></div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@optional</code></div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">- (</code><code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">void</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">)MTSliderDidChange:(MTSlider *)MTSlider withValue:(CGFloat)value;</code></div>
<div class="line number5 index4 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@required</code></div>
<div class="line number6 index5 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">- (CGFloat)startPositionForMTSlider:(MTSlider *)MTSlider;</code></div>
<div class="line number7 index6 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@end</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<h3 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #373737; font-family: Helvetica, Arial; font-size: 30px; font-style: inherit; font-weight: normal; letter-spacing: -0.02em; line-height: 1.1em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 20px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
Compiler Directive</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Notice the line <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">@class MTSlider</code>. By placing this code above everything else, the compiler is informed that at some point down the line, <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSlider</code> will be declared. Without this compiler directive, the compiler will give you a warning because it is expecting to find the interface for <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSlider</code> right away.</div>
<h3 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #373737; font-family: Helvetica, Arial; font-size: 30px; font-style: inherit; font-weight: normal; letter-spacing: -0.02em; line-height: 1.1em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 20px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
Declaring the Delegate Methods</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
The delegate's methods are declared starting with <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">@protocol</code>. The protocol <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSliderDelegate</code> conforms to the <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSObject</code> protocol for a specific reason. The <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">NSObject</code> protocol contains a method,<code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">respondsToSelector:</code>, that can be used to ensure the delegate object actually implements an optional method before the method is called. Calling a method that isn't implemented by the delegate object will cause an application to crash.</div>
<h3 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #373737; font-family: Helvetica, Arial; font-size: 30px; font-style: inherit; font-weight: normal; letter-spacing: -0.02em; line-height: 1.1em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 20px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
Optional Method</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Plainly speaking, an optional method is a method that does not have to be implemented by the delegate object; in this case the delegate object will be the <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">ViewController</code>, however it could be any object. The optional method <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSliderDidChange:withValue:</code> is messaged in the delegate object when the slider's value changes.</div>
<h3 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #373737; font-family: Helvetica, Arial; font-size: 30px; font-style: inherit; font-weight: normal; letter-spacing: -0.02em; line-height: 1.1em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 20px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
Required Method</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
On the other hand, a required method is a method that must be implemented by the delegate object or else you will get a compiler warning. The required method <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">startPositionForMTSlider:</code> asks the delegate object where the sliders should start and gets its starting position value in return from the delegate.</div>
<h3 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #373737; font-family: Helvetica, Arial; font-size: 30px; font-style: inherit; font-weight: normal; letter-spacing: -0.02em; line-height: 1.1em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 20px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
Creating an Instance Variable for the Delegate</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Still in "MTSlider.h," type the following code directly below <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">@interface</code> to declare an instance variable, or ivar, for the delegate.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_253540" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 680px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 648px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">id</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><MTSliderDelegate> sliderDelegate;</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
If you <strong style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">are using ARC,</strong> type the following code instead:</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_145836" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 680px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 648px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">__weak </code><code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">id</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><MTSliderDelegate> sliderDelegate;</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
The ivar is of type <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">id</code> so it is flexible and can accept any object type. The next part, <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSliderDelegate</code>says that whatever object ends up being assigned to <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">sliderDelegate</code> will contain the protocol methods of<code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSliderDelegate</code> as part of its own implementation.</div>
<h3 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #373737; font-family: Helvetica, Arial; font-size: 30px; font-style: inherit; font-weight: normal; letter-spacing: -0.02em; line-height: 1.1em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 20px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
Creating the Setters and Getters</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Finish by synthesizing the setter and getter methods. Type the following code just below the instance variable closing brace.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_820113" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 680px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 648px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@property</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">nonatomic</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, assign) </code><code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">id</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><MTSliderDelegate> sliderDelegate;</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
If you <strong style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">are using ARC,</strong> type the following code instead:</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_63440" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 680px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 648px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@property</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">nonatomic</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">, weak) </code><code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">id</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><MTSliderDelegate> sliderDelegate;</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Click on "MTSlider.m" and type the following code just below <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">@implementation</code> to complete the property.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_755255" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 680px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 648px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@synthesize</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">sliderDelegate;</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<hr style="background-attachment: initial; background-clip: initial; background-color: #dfdfdf; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #575757; display: block; font-size: 14px; height: 1px; margin-bottom: 30px; margin-left: 0px; margin-right: 0px; margin-top: 30px; width: 680px;" />
<h2 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Helvetica, Arial; font-size: 36px; font-style: inherit; font-weight: bold; letter-spacing: -1px; line-height: 1.1em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 20px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
<span style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #5f5f5f; font-family: inherit; font-size: 30px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Step 4:</span> Conforming to the Delegate Protocol Methods</h2>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Click on the "ViewController.h" file. Type the following code to conform to the <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSliderDelegate</code> protocol and import "MTSlider.h."</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_336357" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 680px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 648px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc preprocessor" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: gray !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">#import "MTSlider.h"</code></div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@interface</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">ViewController : UIViewController <MTSliderDelegate></code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<h3 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #373737; font-family: Helvetica, Arial; font-size: 30px; font-style: inherit; font-weight: normal; letter-spacing: -0.02em; line-height: 1.1em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 20px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
Implementing the Delegate Protocol Methods</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Click on the "ViewController.m" file and type the following code to implement the <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSliderDelegate</code>protocol methods.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_772867" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 680px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
3</div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
4</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 648px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">- (CGFloat)startPositionForMTSlider:(MTSlider *)MTSlider{</code></div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">- (</code><code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">void</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">)MTSliderDidChange:(MTSlider *)MTSlider withValue:(CGFloat)value{</code></div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<hr style="background-attachment: initial; background-clip: initial; background-color: #dfdfdf; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #575757; display: block; font-size: 14px; height: 1px; margin-bottom: 30px; margin-left: 0px; margin-right: 0px; margin-top: 30px; width: 680px;" />
<h2 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Helvetica, Arial; font-size: 36px; font-style: inherit; font-weight: bold; letter-spacing: -1px; line-height: 1.1em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 20px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
<span style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #5f5f5f; font-family: inherit; font-size: 30px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">Step 5:</span> Setting the Delegate</h2>
<h3 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #373737; font-family: Helvetica, Arial; font-size: 30px; font-style: inherit; font-weight: normal; letter-spacing: -0.02em; line-height: 1.1em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 20px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
Custom Initializer</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Creating a custom initializer is key to getting the starting position for the sliders. In "MTSlider.h," add the following code to declare the new initializer.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_635340" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 724px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 692px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">- (</code><code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">id</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">)initWithFrame:(CGRect)frame andDelegate:(</code><code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">id</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><MTSliderDelegate>)delegateObject;</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Click on "MTSlider.m" and look for the<code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"> initWithFrame:</code> method. Delete the existing method and replace it with the following code.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc " id="highlighter_305285" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 724px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
3</div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
4</div>
<div class="line number5 index4 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
5</div>
<div class="line number6 index5 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
6</div>
<div class="line number7 index6 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
7</div>
<div class="line number8 index7 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
8</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 692px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">- (</code><code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">id</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">)initWithFrame:(CGRect)frame andDelegate:(</code><code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">id</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><MTSliderDelegate>)delegateObject{</code></div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">= [</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">super</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">initWithFrame:frame];</code></div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">if</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">) {</code></div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.sliderDelegate = delegateObject;</code></div>
<div class="line number5 index4 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.value = [sliderDelegate startPositionForMTSlider:</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">];</code></div>
<div class="line number6 index5 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number7 index6 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">return</code> <code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">;</code></div>
<div class="line number8 index7 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Setting the delegate during initialization allows the delegate method to be called immediately. The method<code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">startPositionForMTSlider:</code> gets the starting location for the sliders. Because it is called in the initializer, the sliders' positions are set before they are drawn on the screen.</div>
<h3 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #373737; font-family: Helvetica, Arial; font-size: 30px; font-style: inherit; font-weight: normal; letter-spacing: -0.02em; line-height: 1.1em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 20px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
Overriding <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 30px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">UISlider</code> Method</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
The <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">UISlider</code> method <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">setValue:animated:</code> is called automatically each time a slider peg is moved. Still in the "MTSlider.m" file, add the following method.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_105742" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 940px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
3</div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
4</div>
<div class="line number5 index4 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
5</div>
<div class="line number6 index5 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
6</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 908px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">- (</code><code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">void</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">)setValue:(</code><code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">float</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">)value animated:(</code><code class="objc datatypes" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">BOOL</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">)animated{</code></div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">super</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">setValue:value animated:animated];</code></div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">if</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(sliderDelegate != </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">nil</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">&& [sliderDelegate respondsToSelector:</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">@selector</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(MTSliderDidChange:withValue:)]){</code></div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[[</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">sliderDelegate] MTSliderDidChange:</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">withValue:value];</code></div>
<div class="line number5 index4 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number6 index5 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
By overriding <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">setValue:animated:</code> each time a slider peg moves, a message is sent to the delegate object. Notice the call to super, <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">super setValue:animated:</code>. It is important that we don't accidentally mess up something the method is doing behind the scenes when overriding an existing method.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
The delegate method <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSliderDidChange:withValue:</code> is the optional protocol method declared earlier. The delegate object is messaged each time the slider changes. Remember, calling a method that hasn't been implemented will cause the application to crash. Calling <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">respondsToSelector:</code> on the delegate object verifies it is okay to go ahead and message the optional delegate method.</div>
<hr style="background-attachment: initial; background-clip: initial; background-color: #dfdfdf; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #575757; display: block; font-size: 14px; height: 1px; margin-bottom: 30px; margin-left: 0px; margin-right: 0px; margin-top: 30px; width: 680px;" />
<h3 style="text-align: left;">
Setting the Background Color and Instantiating the Sliders</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Click on the "ViewController.m" file and type the following code inside <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">viewDidLoad</code> to set the view's background color with four color components and instantiate the red, green, and blue <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSlider</code> objects. If you <strong style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">are using ARC,</strong> be sure to remove the lines <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[redSlider release];</code>, <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[greenSlider release];</code>, and <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">[blueSlider release];</code> as these calls are not necessary.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_9318" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 1132px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
3</div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
4</div>
<div class="line number5 index4 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
5</div>
<div class="line number6 index5 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
6</div>
<div class="line number7 index6 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
7</div>
<div class="line number8 index7 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
8</div>
<div class="line number9 index8 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
9</div>
<div class="line number10 index9 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
10</div>
<div class="line number11 index10 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
11</div>
<div class="line number12 index11 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
12</div>
<div class="line number13 index12 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
13</div>
<div class="line number14 index13 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
14</div>
<div class="line number15 index14 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
15</div>
<div class="line number16 index15 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
16</div>
<div class="line number17 index16 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
17</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 1092px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGFloat sliderColorPosition = 0.3f;</code></div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.view.backgroundColor = [UIColor colorWithRed:sliderColorPosition green:sliderColorPosition blue:sliderColorPosition alpha:1.0f];</code></div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGRect redSliderFrame = CGRectMake(20.0f, 20.0f, 280.0f, 28.0f);</code></div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">MTSlider *redSlider = [[MTSlider alloc] initWithFrame:redSliderFrame andDelegate:</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">];</code></div>
<div class="line number5 index4 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">redSlider.tag = 1;</code></div>
<div class="line number6 index5 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.view addSubview:redSlider];</code></div>
<div class="line number7 index6 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[redSlider release];</code></div>
<div class="line number8 index7 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGRect greenSliderFrame = CGRectMake(20.0f, 70.0f, 280.0f, 28.0f);</code></div>
<div class="line number9 index8 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">MTSlider *greenSlider = [[MTSlider alloc] initWithFrame:greenSliderFrame andDelegate:</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">];</code></div>
<div class="line number10 index9 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">greenSlider.tag = 2;</code></div>
<div class="line number11 index10 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.view addSubview:greenSlider];</code></div>
<div class="line number12 index11 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[greenSlider release];</code></div>
<div class="line number13 index12 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGRect blueSliderFrame = CGRectMake(20.0f, 120.0f, 280.0f, 28.0f);</code></div>
<div class="line number14 index13 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">MTSlider *blueSlider = [[MTSlider alloc] initWithFrame:blueSliderFrame andDelegate:</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">];</code></div>
<div class="line number15 index14 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">blueSlider.tag = 3;</code></div>
<div class="line number16 index15 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[</code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.view addSubview:blueSlider];</code></div>
<div class="line number17 index16 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">[blueSlider release];</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
By using the custom <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSlider</code> initializer, <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">initWithFrame:andDelegate:</code>, the delegate is set and the<code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">ViewController</code> object becomes the delegate object of each slider. Normally you might expect to see a delegate set using the following code: <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">redSlider.sliderDelegate=self;</code>. However, in this case, the delegate assignment is passed in during the initialization.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Notice each slider's tag property has been set. Initially, the background color of the <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">ViewController</code> is set to dark gray. As each slider is adjusted, the background color will change accordingly because the tag identifies which slider is active.</div>
<hr style="background-attachment: initial; background-clip: initial; background-color: #dfdfdf; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #575757; display: block; font-size: 14px; height: 1px; margin-bottom: 30px; margin-left: 0px; margin-right: 0px; margin-top: 30px; width: 680px;" />
<h3 style="text-align: left;">
Changing the Background Color</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Find the implementation of <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">startPositionForMTSlider:</code>, and type the following code inside the braces to set the initial value of the sliders to 0.3.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc" id="highlighter_744800" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 680px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 648px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGFloat sliderStartPosition = 0.3f;</code></div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">return</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">sliderStartPosition;</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<h3 style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #373737; font-family: Helvetica, Arial; font-size: 30px; font-style: inherit; font-weight: normal; letter-spacing: -0.02em; line-height: 1.1em; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 20px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline;">
Adjusting the Background Color</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Find the implementation of <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSliderDidChange:withValue:</code>, and add the following code to adjust the background color.</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter objc " id="highlighter_45077" style="background-color: white !important; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: inherit; font-size: 1em !important; font-style: inherit; font-weight: inherit; margin-bottom: 1em !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1em !important; outline-color: initial; outline-style: initial; outline-width: 0px; overflow-x: auto !important; overflow-y: auto !important; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative !important; vertical-align: baseline; width: 680px;">
<table border="0" cellpadding="0" cellspacing="0" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-collapse: separate; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(204, 204, 204); border-right-style: solid; border-right-width: 1px; border-style: initial !important; border-style: initial; border-top-color: rgb(204, 204, 204); border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-style: solid; border-top-width: 1px; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 20px; margin-left: 0px; margin-right: 0px; margin-top: 20px; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 932px;"><tbody style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(175, 175, 175) !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
2</div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
3</div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
4</div>
<div class="line number5 index4 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
5</div>
<div class="line number6 index5 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
6</div>
<div class="line number7 index6 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
7</div>
<div class="line number8 index7 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
8</div>
<div class="line number9 index8 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
9</div>
<div class="line number10 index9 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
10</div>
<div class="line number11 index10 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
11</div>
<div class="line number12 index11 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
12</div>
<div class="line number13 index12 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
13</div>
<div class="line number14 index13 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
14</div>
<div class="line number15 index14 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
15</div>
<div class="line number16 index15 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
16</div>
<div class="line number17 index16 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
17</div>
<div class="line number18 index17 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
18</div>
<div class="line number19 index18 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
19</div>
<div class="line number20 index19 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
20</div>
<div class="line number21 index20 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-color: rgb(108, 226, 108) !important; border-right-style: solid !important; border-right-width: 3px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 0.5em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
21</div>
</td><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-color: rgb(204, 204, 204); border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial !important; border-color: initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 892px;"><div class="container" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">if</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(MTSlider.tag == 1) { </code><code class="objc comment" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">//Red Slider</code></div>
<div class="line number2 index1 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGColorRef bgColor = </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.view.backgroundColor.CGColor;</code></div>
<div class="line number3 index2 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">const</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGFloat *colorsPointer = CGColorGetComponents(bgColor);</code></div>
<div class="line number4 index3 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGFloat currentGreen = colorsPointer[1];</code></div>
<div class="line number5 index4 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGFloat currentBlue = colorsPointer[2];</code></div>
<div class="line number6 index5 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.view.backgroundColor = [UIColor colorWithRed:value green:currentGreen blue:currentBlue alpha:1.0f];</code></div>
<div class="line number7 index6 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number8 index7 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">if</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(MTSlider.tag == 2) { </code><code class="objc comment" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">//Green Slider</code></div>
<div class="line number9 index8 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGColorRef bgColor = </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.view.backgroundColor.CGColor;</code></div>
<div class="line number10 index9 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">const</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGFloat *colorsPointer = CGColorGetComponents(bgColor);</code></div>
<div class="line number11 index10 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGFloat currentRed = colorsPointer[0];</code></div>
<div class="line number12 index11 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGFloat currentBlue = colorsPointer[2];</code></div>
<div class="line number13 index12 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.view.backgroundColor = [UIColor colorWithRed:currentRed green:value blue:currentBlue alpha:1.0f];</code></div>
<div class="line number14 index13 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
<div class="line number15 index14 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">if</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">(MTSlider.tag == 3) { </code><code class="objc comment" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">//Blue Slider</code></div>
<div class="line number16 index15 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGColorRef bgColor = </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.view.backgroundColor.CGColor;</code></div>
<div class="line number17 index16 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">const</code> <code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGFloat *colorsPointer = CGColorGetComponents(bgColor);</code></div>
<div class="line number18 index17 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGFloat currentRed = colorsPointer[0];</code></div>
<div class="line number19 index18 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">CGFloat currentGreen = colorsPointer[1];</code></div>
<div class="line number20 index19 alt1" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc spaces" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"> </code><code class="objc keyword" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">self</code><code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">.view.backgroundColor = [UIColor colorWithRed:currentRed green:currentGreen blue:value alpha:1.0f];</code></div>
<div class="line number21 index20 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-color: white !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 1em !important; padding-right: 1em !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="objc plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-width: 0px !important; border-color: initial !important; border-color: initial; border-left-width: 0px !important; border-right-width: 0px !important; border-style: initial !important; border-style: initial; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-top-width: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; font-style: normal !important; font-weight: normal !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; outline-color: initial !important; outline-style: initial !important; outline-width: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">}</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Each time the slider changes, a message is sent to the delegate method. The message contains the current <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">MTSlider</code> and its value. The current slider's tag property is accessed to determine which slider sent the message, and the background color is updated accordingly.</div>
<hr style="background-attachment: initial; background-clip: initial; background-color: #dfdfdf; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #575757; display: block; font-size: 14px; height: 1px; margin-bottom: 30px; margin-left: 0px; margin-right: 0px; margin-top: 30px; width: 680px;" />
<h3 style="text-align: left;">
Testing the Delegate</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
Click Product > Run, or click the "Run" arrow in the upper left corner, to view the sliders in action. Adjust the sliders to see how the child elements are able to control the parent element's background color.</div>
<hr style="background-attachment: initial; background-clip: initial; background-color: #dfdfdf; background-image: initial; background-origin: initial; border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; clear: both; color: #575757; display: block; font-size: 14px; height: 1px; margin-bottom: 30px; margin-left: 0px; margin-right: 0px; margin-top: 30px; width: 680px;" />
<h3 style="text-align: left;">
Conclusion</h3>
<div style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #575757; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">
There are many other ways to control the background color of a <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">UIViewController</code>, including targets or notifications. Apple designed <code style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-family: Courier, 'Courier New', 'Lucida Console', Monaco; font-size: 14px; font-style: inherit; font-weight: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">UISlider</code> to use a target pattern to pass data. However, if you want to add more functionality, the best way to communcate from a child to its parent is by creating a custom delegate.</div>
</span></div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-70752326991150676272012-12-18T04:20:00.000-08:002012-12-18T04:20:19.862-08:00Encrypt a String in iOS SDK<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="Apple-style-span" style="color: #3b3b3b; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13px;"></span><br />
<div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
Apple Keychain Services offer a secure means to store sensitive information. Through the keychain, all the hardwork is managed for you to store and retrieve content. As powerful as the keychain services are, I was recently tinkering with some code to see if I could obfuscate content within an application.</div>
<div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
I had a few strings defined as constants and I was interested to see if there was a painless way to store the values as obfuscated strings, and when running the application, un-obfuscate the strings and use the same within the application.<br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /><span id="more-6829" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"></span></div>
<h5 style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; line-height: 27px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
Using Exclusive-Or (XOR) to Obfuscate an NSString</h5>
<div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
The basic concept is that for each character in a string, I XOR the value against a key value, replacing the original character with the new XOR’d character. This will create a string that is unrecognizable from the original. To get the original string back, perform the same XOR operation with the same key. The obfuscate method is shown below.</div>
<div class="wp_syntax" style="background-color: #f9f9f9; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; color: #110000; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 610px;">
<table style="border-bottom-style: none !important; border-collapse: collapse !important; border-color: initial !important; border-left-style: none !important; border-right-style: none !important; border-top-style: none !important; border-width: initial !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; width: 630px;"><tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-style: none !important; border-color: initial !important; border-left-style: none !important; border-right-style: none !important; border-top-style: none !important; border-width: initial !important; line-height: normal !important; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; text-align: left !important; vertical-align: top !important; white-space: normal !important;"><pre class="objc" style="-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; background-attachment: initial !important; background-clip: initial !important; background-color: transparent !important; background-image: initial !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; clear: none !important; float: none !important; font-family: monospace; font-size: 12px !important; line-height: 16px !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; white-space: pre !important; width: auto !important;"><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">-</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">(</span><span style="color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">NSString</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">)</span>obfuscate<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">:</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">(</span><span style="color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">NSString</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">)</span><span style="color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">string</span> withKey<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">:</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">(</span><span style="color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">NSString</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">)</span>key
<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">{</span>
<span style="color: #11740a; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">// Create data object from the string</span>
<span style="color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">NSData</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span>data <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">=</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[</span><span style="color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">string</span> dataUsingEncoding<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">:</span>NSUTF8StringEncoding<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">]</span>;
<span style="color: #11740a; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">// Get pointer to data to obfuscate</span>
<span style="color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">char</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span>dataPtr <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">=</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">(</span><span style="color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">char</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">)</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[</span>data bytes<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">]</span>;
<span style="color: #11740a; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">// Get pointer to key data</span>
<span style="color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">char</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span>keyData <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">=</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">(</span><span style="color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">char</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">)</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[</span>key dataUsingEncoding<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">:</span>NSUTF8StringEncoding<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">]</span> bytes<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">]</span>;
<span style="color: #11740a; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">// Points to each char in sequence in the key</span>
<span style="color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">char</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span>keyPtr <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">=</span> keyData;
<span style="color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">int</span> keyIndex <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">=</span> <span style="color: #2400d9; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">0</span>;
<span style="color: #11740a; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">// For each character in data, xor with current value in key</span>
<span style="color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">for</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">(</span><span style="color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">int</span> x <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">=</span> <span style="color: #2400d9; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">0</span>; x < <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[</span>data length<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">]</span>; x<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">++</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">)</span>
<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">{</span>
<span style="color: #11740a; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">// Replace current character in data with </span>
<span style="color: #11740a; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">// current character xor'd with current key value.</span>
<span style="color: #11740a; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">// Bump each pointer to the next character</span>
<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span>dataPtr <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">=</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span>dataPtr<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">++</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">^</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span>keyPtr<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">++</span>;
<span style="color: #11740a; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">// If at end of key data, reset count and </span>
<span style="color: #11740a; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">// set key pointer back to start of key value</span>
<span style="color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">if</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">(</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">++</span>keyIndex <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">==</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[</span>key length<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">]</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">)</span>
keyIndex <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">=</span> <span style="color: #2400d9; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">0</span>, keyPtr <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">=</span> keyData;
<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">}</span>
<span style="color: #a61390; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">return</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[</span><span style="color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">NSString</span> alloc<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">]</span> initWithData<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">:</span>data encoding<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">:</span>NSUTF8StringEncoding<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">]</span> autorelease<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">]</span>;
<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">}</span></pre>
</td></tr>
</tbody></table>
</div>
<h5 style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; line-height: 27px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
Test Obfuscation</h5>
<div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
Pass in the string to obfuscate as well as a key which will provide the characters to use in the XOR process. To un-obfuscate a string, call the method with the obfuscated string and the same key.</div>
<div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
Below is a short test of the obfuscation:</div>
<div class="wp_syntax" style="background-color: #f9f9f9; border-bottom-color: silver; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: silver; border-left-style: solid; border-left-width: 1px; border-right-color: silver; border-right-style: solid; border-right-width: 1px; border-top-color: silver; border-top-style: solid; border-top-width: 1px; color: #110000; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: hidden; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: 610px;">
<table style="border-bottom-style: none !important; border-collapse: collapse !important; border-color: initial !important; border-left-style: none !important; border-right-style: none !important; border-top-style: none !important; border-width: initial !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; width: 610px;"><tbody style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<tr style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><td class="code" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-style: none !important; border-color: initial !important; border-left-style: none !important; border-right-style: none !important; border-top-style: none !important; border-width: initial !important; line-height: normal !important; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; text-align: left !important; vertical-align: top !important; white-space: normal !important;"><pre class="objc" style="-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; background-attachment: initial !important; background-clip: initial !important; background-color: transparent !important; background-image: initial !important; background-origin: initial !important; background-position: initial initial !important; background-repeat: initial initial !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; clear: none !important; float: none !important; font-family: monospace; font-size: 12px !important; line-height: 16px !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; overflow-x: visible !important; overflow-y: visible !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; white-space: pre !important; width: auto !important;"><span style="color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">NSString</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span>str <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">=</span> <span style="color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">@</span><span style="color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"iPhoneDeveloperTips"</span>;
NSLog<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">(</span><span style="color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">@</span><span style="color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"Input string:%@"</span>, str<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">)</span>;
<span style="color: #11740a; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">// Obfuscate string</span>
<span style="color: #400080; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">NSString</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">*</span>obfuscatedStr <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">=</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[</span>self obfuscate<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">:</span>str withKey<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">:</span><span style="color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">@</span><span style="color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"+@$"</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">]</span>;
NSLog<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">(</span><span style="color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">@</span><span style="color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"Obfuscated string:%@"</span>, obfuscatedStr<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">)</span>;
<span style="color: #11740a; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">// Run obfuscate again to get the original string</span>
str <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">=</span> <span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">[</span>self obfuscate<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">:</span>obfuscatedStr withKey<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">:</span><span style="color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">@</span><span style="color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"+@$"</span><span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">]</span>;
NSLog<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">(</span><span style="color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">@</span><span style="color: #bf1d1a; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">"Final string:%@"</span>, str<span style="color: #002200; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">)</span>;</pre>
</td></tr>
</tbody></table>
</div>
<div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
The output will look as follows:</div>
<div style="line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<img src="http://mobiledevelopertips.com/wp-content/uploads/2010/08/obfuscate.png" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /></div>
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-83139846968579684232012-12-13T23:15:00.004-08:002012-12-13T23:15:48.102-08:00iOS Automated Tests with UIAutomation<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="Apple-style-span" style="color: #333333; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 23px;"><h2 style="border-bottom-color: rgb(238, 238, 238); border-bottom-style: solid; border-bottom-width: 1px; line-height: 1.2; margin-bottom: 5px; padding-bottom: 5px;">
<a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">iOS Automated Tests with UIAutomation</a></h2>
</span><span class="Apple-style-span" style="color: #333333; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 23px;"><time datetime="2012-04-08" pubdate="" style="color: #999999;">April 8, 2012</time> <span class="tweetbutton" style="color: #999999;">• </span><a class="tweetbutton" href="http://twitter.com/share?url=http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation&text=iOS+Automated+Tests+with+UIAutomation&via=ManboloGames&related=manboloGames" style="color: #999999; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">tweet</a></span><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; line-height: 23px;"></span><br />
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
<img alt="UIAutomation icon" height="300" src="http://blog.manbolo.com/2012/04/08/uiautomation-icon.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="300" /></div>
<h3 style="color: #333333;">
Quick introduction</h3>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Automated tests are very useful to test your app “while you sleep”. It enables you to quickly track regressions and performance issues, and also develop new features without worrying to break your app.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Since iOS 4.0, Apple has released a framework called UIAutomation, which can be used to perform automated tests on real devices and on the iPhone Simulator. The documentation on UIAutomation is quite small and there is not a lot of resources on the web. This tutorial will show you how to integrate UIAutomation in your workflow.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
The best pointers to begin are the <a href="http://developer.apple.com/library/ios/#documentation/DeveloperTools/Reference/UIAutomationRef/_index.html" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Apple documentation on UIAutomation</a>, a very good quick tutorial in <a href="http://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Built-InInstruments/Built-InInstruments.html#//apple_ref/doc/uid/TP40004652-CH6" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Apple Instruments documentation</a> and, of course, the slides/videos of <a href="http://developer.apple.com/devcenter/download.action?path=/wwdc_2010/wwdc_2010_video_assets__pdfs/306__automating_user_interface_testing_with_instruments.pdf" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">WWDC 2010 - Session 306 - Automating User Interface Testing with Instruments</a>. You’ll need a free developper account to access this ressources.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Another framework to be mention is OCUnit, which is included in Xcode, and can be used to add unit tests to your app.</div>
<ol style="color: #333333;">
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#1" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;"><strong>Your first UIAutomation script</strong></a><ul>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#1.1" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Using iOS simulator</a></li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#1.2" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Using an iOS device</a></li>
</ul>
</li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#2" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;"><strong>Dealing with UIAElement and Accessibility</strong></a><ul>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#2.1" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">UIAElement hierarchy</a></li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#2.2" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Simulate user interactions</a></li>
</ul>
</li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#3" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;"><strong>Tips to simplify your life</strong></a><br /><ul>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#3.1" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Introducing Tune-up</a></li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#3.2" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Import external scripts</a></li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#3.3" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">By the power of the command line</a></li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#3.4" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Interactively record interaction</a></li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#3.5" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">“When things don’t work, add UIATarget.delay(1);”</a></li>
</ul>
</li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#4" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;"><strong>Advanced interactions</strong></a><br /><ul>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#4.1" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Handling unexpected and expected alerts</a></li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#4.2" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Multitasking</a></li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#4.3" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Orientation</a></li>
</ul>
</li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#5" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;"><strong>The end</strong></a><br /><ul>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#5.1" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Useful links</a></li>
<li><a href="http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation#5.2" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">A video</a></li>
</ul>
</li>
</ol>
<hr style="background-color: #999999; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #999999; height: 1px; width: 180px;" />
<h3 id="1" style="color: #333333;">
1. Your first UIAutomation script</h3>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
UIAutomation functional tests are written in Javascript. There is a strong relation between UIAutomation and accessibility, so you will use the accessibility labels and values to simulate and check the results of simulated UI interaction.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Let’s go, and write our first test!</div>
<h4 id="1.1" style="color: #333333;">
Using iOS simulator</h4>
<ol style="color: #333333;">
<li>Download the companion project <a href="http://blog.manbolo.com/2012/04/08/TestAutomation.zip" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">TestAutomation.xcodeproj</a>, and open it. The project is a simple tab bar application with 2 tabs.</li>
<li>Insure that the following scheme is selected ’TestAutomation > iPhone 5.0 Simulator’ (Maybe you’ve already switched to 5.1 so it could be also iPhone 5.1)<img alt="Scheme" height="99" src="http://blog.manbolo.com/2012/04/08/scheme.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="442" /></li>
<li>Launch Instruments (Product > Profile) or ⌘I.</li>
<li>In iOS Simulator, select the Automation template, then ’Profile’<img alt="Template chooser" height="446" src="http://blog.manbolo.com/2012/04/08/template-chooser.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="540" /></li>
<li>Instruments is launching, and start recording immediately. Stop the record, (red button or ⌘R).<a href="http://blog.manbolo.com/2012/04/08/instruments-empty.png" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;"><img height="500" src="http://blog.manbolo.com/2012/04/08/instruments-empty-600.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="540" /></a></li>
<li>In the Scripts window , click ’Add > Create’ to create a new script<img alt="Create Script" height="191" src="http://blog.manbolo.com/2012/04/08/create-script.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="227" /></li>
<li><div style="margin-bottom: 0px; margin-top: 0.7em;">
In the Script window editor, tap the following code</div>
<pre style="line-height: 1.4em;"><code style="-webkit-hyphens: none;">var target = UIATarget.localTarget();
var app = target.frontMostApp();
var window = app.mainWindow();
target.logElementTree();
</code></pre>
<div style="margin-bottom: 0px; margin-top: 0.7em;">
<a href="http://blog.manbolo.com/2012/04/08/uiautomation-1.png" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;"><img height="521" src="http://blog.manbolo.com/2012/04/08/uiautomation-1-600.jpg" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="600" /></a></div>
</li>
<li>Re-launch the script ⌘R (you don’t need to save). The script runs and you can stop it after logs appear.<a href="http://blog.manbolo.com/2012/04/08/uiautomation-2.png" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;"><img height="449" src="http://blog.manbolo.com/2012/04/08/uiautomation-2-600.jpg" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="600" /></a></li>
</ol>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Voilà! You’ve written your first UIAutomation test!</div>
<h4 id="1.2" style="color: #333333;">
Using an iOS device</h4>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
You can also run this test with a real device, instead of the simulator. Automated tests are only available on devices that support multitask: iPhone 3GS, iPad, running iOS > 4.0. UIAutomation is unfortunately not available on iPhone 3G, whatever is the OS version.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
To run the test on a device:</div>
<ol style="color: #333333;">
<li>Connect your iPhone to USB</li>
<li>Select the scheme ’TestAutomation > iOS Device’</li>
<li>Check that the Release configuration is associated with a Developper profile (and not an Ad-Hoc Distribution profile). By default, profiling is done in Release (there is no reason to profile an app in Debug!)<img alt="Distribution profile" height="268" src="http://blog.manbolo.com/2012/04/08/uiautomation-4.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="560" /></li>
<li>Profile the app (⌘I)</li>
<li>Follow the same steps than previously on the Simulator.</li>
</ol>
<hr style="background-color: #999999; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #999999; height: 1px; width: 180px;" />
<h3 id="2" style="color: #333333;">
2. Dealing with UIAElement and Accessibility</h3>
<h4 id="2.1" style="color: #333333;">
UIAElement hierarchy</h4>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
There is a strong relationship between Accessibility and UIAutomation: if a control is accessible with Accessibility, you will be able to set/get value on it, produce action etc… A control that is not “visible” to Accessibility won’t be accessible through automation.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
You can allow accessibility/automation on a control whether using Interface Builder, or by setting programmatically the property <code style="-webkit-hyphens: none;">isAccessibilityElement</code>. You have to pay some attention when<strong>setting accessibility to container view</strong> (i.e. a view that contains other UIKit elements). Enable accessibility to an entire view can “hide” its subviews from accessibility/automation. For instance, in the project, the view outlet of the controller shouldn’t be accessible, otherwise the sub controls won’t be accessible. If you have any problem, <code style="-webkit-hyphens: none;">logElementTree</code> is your friend: it dumps all current visible elements that can be accessed.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Each UIKit control that can be accessed can be represented by a Javascript Object, UIAElement. UIAElement has several properties, <code style="-webkit-hyphens: none;">name</code>, <code style="-webkit-hyphens: none;">value</code>, <code style="-webkit-hyphens: none;">elements</code>, <code style="-webkit-hyphens: none;">parent</code>. Your main window contains a lot of controls, which define a UIKit hierachy. To this UIKit hierarchy, corresponds an UIAElement hierachy. For instance, by calling <code style="-webkit-hyphens: none;">logElementTree</code> in the previous test, we have the following tree:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">+- UIATarget: name:iPhone Simulator rect:{{0,0},{320,480}}
| +- UIAApplication: name:TestAutomation rect:{{0,20},{320,460}}
| | +- UIAWindow: rect:{{0,0},{320,480}}
| | | +- UIAStaticText: name:First View value:First View rect:{{54,52},{212,43}}
| | | +- UIATextField: name:User Text value:Tap Some Text Here ! rect:{{20,179},{280,31}}
| | | +- UIAStaticText: name:The text is: value:The text is: rect:{{20,231},{112,21}}
| | | +- UIAStaticText: value: rect:{{145,231},{155,21}}
| | | +- UIATabBar: rect:{{0,431},{320,49}}
| | | | +- UIAImage: rect:{{0,431},{320,49}}
| | | | +- UIAButton: name:First value:1 rect:{{2,432},{156,48}}
| | | | +- UIAButton: name:Second rect:{{162,432},{156,48}}
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
<img alt="Hierarchy" height="480" src="http://blog.manbolo.com/2012/04/08/hierarchy.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="320" /></div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
To access the text field, you can just write:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">var textField = UIATarget.localTarget().frontMostApp().mainWindow().textFields()[0];
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
You can choose to access elements by a 0-based index or by element name. For instance, the previous text field could also be accessed like this:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">var textField = UIATarget.localTarget().frontMostApp().mainWindow().textFields()["User Text"];
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
The later version is clearer and should be preferred. You can set the name of a UIAElement either in Interface Builder:</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
<img alt="Interface builder" height="348" src="http://blog.manbolo.com/2012/04/08/ib.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="260" /></div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
or programmaticaly:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">myTextField.accessibilityEnabled = YES;
myTextField.accessibilityLabel = @"User Text";
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
You can see now that accessibility properties are used by UIAutomation to target the different controls. That’s very clever, because 1) there is only one framework to learn; 2) by writing your automated tests, you’re also going to insure that your app is accessible! So, each UIAElement can access its children by calling the following functions: <code style="-webkit-hyphens: none;">buttons()</code>, <code style="-webkit-hyphens: none;">images()</code>, <code style="-webkit-hyphens: none;">scrollViews()</code>,<code style="-webkit-hyphens: none;">textFields()</code>, <code style="-webkit-hyphens: none;">webViews()</code>, <code style="-webkit-hyphens: none;">segmentedControls()</code>, <code style="-webkit-hyphens: none;">sliders()</code>, <code style="-webkit-hyphens: none;">staticTexts()</code>, <code style="-webkit-hyphens: none;">switches()</code>,<code style="-webkit-hyphens: none;">tabBar()</code>, <code style="-webkit-hyphens: none;">tableViews()</code>, <code style="-webkit-hyphens: none;">textViews()</code>, <code style="-webkit-hyphens: none;">toolbar()</code>, <code style="-webkit-hyphens: none;">toolbars()</code> etc… To access the first tab in the tab bar, you can write:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">var tabBar = UIATarget.localTarget().frontMostApp().tabBar();
var tabButton = tabBar.buttons()["First"];
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
The UIAElement hierarchy is really important and you’re going to deal with it constantly. And remember, you can dump the hierarchy each time in your script by calling <code style="-webkit-hyphens: none;">logElementTree</code> on UIAApplication:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">UIATarget.localTarget().frontMostApp().logElementTree();
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
In the simulator, you can also activate the Accessibility Inspector. Launch the simulator, go to ’Settings > General > Accessibility > Accessibility Inspector’ and set it to ’On’.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
<img alt="Accessiblity Inspector" height="334" src="http://blog.manbolo.com/2012/04/08/inspector.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="408" /></div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
This little rainbow box is the Accessibility Inspector. When collapsed, Accessibility is off, and when expanded Accessibility is on. To activate/desactivate Accessibility, you just have to click on the arrow button. Now, go to our test app, launch it, and activate the Inspector.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
<img alt="Accessiblity Inspector On" height="330" src="http://blog.manbolo.com/2012/04/08/inspector-on.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="408" /></div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Then, tap on the text field and check the <code style="-webkit-hyphens: none;">name</code> and <code style="-webkit-hyphens: none;">value</code> properties of the associated UIAElement (and also the NSObject <code style="-webkit-hyphens: none;">accessibilityLabel</code> and <code style="-webkit-hyphens: none;">accessibilityValue</code> equivalent properties). This Inspector will help you to debug and write your scripts.</div>
<h4 id="2.2" style="color: #333333;">
Simulate user interactions</h4>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Let’s go further and simulate user interaction. To tap a button, you simply call <code style="-webkit-hyphens: none;">tap()</code> on this element:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">var tabBar = UIATarget.localTarget().frontMostApp().tabBar();
var tabButton = tabBar.buttons()["First"];
// Tap the tab bar !
tabButton.tap();
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
You can also call <code style="-webkit-hyphens: none;">doubleTap()</code>, <code style="-webkit-hyphens: none;">twoFingerTap()</code> on UIAButtons. If you don’t want to target an element, but only interact on the screen at a specified coordinate screen, you can use:</div>
<ul style="color: #333333;">
<li><div style="margin-bottom: 0px; margin-top: 0.7em;">
Taps:</div>
<pre style="line-height: 1.4em;"><code style="-webkit-hyphens: none;">UIATarget.localTarget().tap({x:100, y:200});
UIATarget.localTarget().doubleTap({x:100, y:200});
UIATarget.localTarget().twoFingerTap({x:100, y:200});
</code></pre>
</li>
<li><div style="margin-bottom: 0px; margin-top: 0.7em;">
Pinches:</div>
<pre style="line-height: 1.4em;"><code style="-webkit-hyphens: none;">UIATarget.localTarget().pinchOpenFromToForDuration({x:20, y:200},{x:300, y:200},2);
UIATarget.localTarget().pinchCloseFromToForDuration({x:20, y:200}, {x:300, y:200},2);
</code></pre>
</li>
<li><div style="margin-bottom: 0px; margin-top: 0.7em;">
Drag and Flick:</div>
<pre style="line-height: 1.4em;"><code style="-webkit-hyphens: none;">UIATarget.localTarget().dragFromToForDuration({x:160, y:200},{x:160,y:400},1);
UIATarget.localTarget().flickFromTo({x:160, y:200},{x:160, y:400});
</code></pre>
</li>
</ul>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
When you specify a duration, only a certain range is accepted i.e.: for drag duration, value must be greater than or equal to 0.5s or less than 60s.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Now, let’s put this in practice:</div>
<ol style="color: #333333;">
<li>Stop (⌘R) Instruments</li>
<li>In the Scripts window, remove the current script</li>
<li>Click on ’Add > Import’ and select TestAutomation/TestUI/Test-1.js</li>
<li>Click on Record (⌘R) and watch what’s happens…</li>
</ol>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
The script is:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">var testName = "Test 1";
var target = UIATarget.localTarget();
var app = target.frontMostApp();
var window = app.mainWindow();
UIALogger.logStart( testName );
app.logElementTree();
//-- select the elements
UIALogger.logMessage( "Select the first tab" );
var tabBar = app.tabBar();
var selectedTabName = tabBar.selectedButton().name();
if (selectedTabName != "First") {
tabBar.buttons()["First"].tap();
}
//-- tap on the text fiels
UIALogger.logMessage( "Tap on the text field now" );
var recipeName = "Unusually Long Name for a Recipe";
window.textFields()[0].setValue(recipeName);
target.delay( 2 );
//-- tap on the text fiels
UIALogger.logMessage( "Dismiss the keyboard" );
app.logElementTree();
app.keyboard().buttons()["return"].tap();
var textValue = window.staticTexts()["RecipeName"].value();
if (textValue === recipeName){
UIALogger.logPass( testName );
}
else{
UIALogger.logFail( testName );
}
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
This script launches the app, selects the first tab if it is not selected, sets the value of the text field to ’Unusually Long Name for a Recipe’ and dismisses the keyboard. Some new functions to notice:<code style="-webkit-hyphens: none;">delay(Number timeInterval)</code> on UIATarget allows you to introduce some delay between interactions, <code style="-webkit-hyphens: none;">logMessage( String message)</code> on UIALogger can be used to log message on the test output and <code style="-webkit-hyphens: none;">logPass(String message)</code> on UIALogger indicates that your script has completed successfully.<br />You can also see how to a access the different buttons on the keyboard and tap on it<code style="-webkit-hyphens: none;">app.keyboard().buttons()["return"].tap();</code></div>
<hr style="background-color: #999999; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #999999; height: 1px; width: 180px;" />
<h3 id="3" style="color: #333333;">
3. Tips to simplify your life</h3>
<h4 id="3.1" style="color: #333333;">
Introducing Tune-up</h4>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Now, you’ve a basic idea of how you could write some tests. You will notice soon that there is a lot of redundancy and glue code in your tests, and you’ll often rewrite code like that:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">var target = UIATarget.localTarget();
var app = target.frontMostApp();
var window = app.mainWindow();
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
That’s why we’re going to use a small Javascript library that eases writing UIAutomation tests. Go to <a href="https://github.com/alexvollmer/tuneup_js" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">https://github.com/alexvollmer/tuneup_js</a>, get the library and copy the tuneup folder aside your tests folder. Now, we can rewrite Test1.js using Tune-Up</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">#import "tuneup/tuneup.js"
test("Test 1", function(target, app) {
var window = app.mainWindow();
app.logElementTree();
//-- select the elements
UIALogger.logMessage( "Select the first tab" );
var tabBar = app.tabBar();
var selectedTabName = tabBar.selectedButton().name();
if (selectedTabName != "First") {
tabBar.buttons()["First"].tap();
}
//-- tap on the text fiels
UIALogger.logMessage( "Tap on the text field now" );
var recipeName = "Unusually Long Name for a Recipe";
window.textFields()[0].setValue(recipeName);
target.delay( 2 );
//-- tap on the text fiels
UIALogger.logMessage( "Dismiss the keyboard" );
app.logElementTree();
app.keyboard().buttons()["return"].tap();
var textValue = window.staticTexts()["RecipeName"].value();
assertEquals(recipeName, textValue);
});
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Tune-Up avoids you to write the same boilerplate code, plus gives you some extra like various assertions: <code style="-webkit-hyphens: none;">assertTrue(expression, message)</code>, <code style="-webkit-hyphens: none;">assertMatch(regExp, expression, message)</code>,<code style="-webkit-hyphens: none;">assertEquals(expected, received, message)</code>, <code style="-webkit-hyphens: none;">assertFalse(expression, message)</code>,<code style="-webkit-hyphens: none;">assertNull(thingie, message)</code>, <code style="-webkit-hyphens: none;">assertNotNull(thingie, message)</code>… You can extend the library very easily: for instance, you can add a <code style="-webkit-hyphens: none;">logDevice</code> method on UIATarget object by adding this function in uiautomation-ext.js:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">extend(UIATarget.prototype, {
logDevice: function(){
UIALogger.logMessage("Dump Device:");
UIALogger.logMessage(" model: " + UIATarget.localTarget().model());
UIALogger.logMessage(" rect: " + JSON.stringify(UIATarget.localTarget().rect()));
UIALogger.logMessage(" name: "+ UIATarget.localTarget().name());
UIALogger.logMessage(" systemName: "+ UIATarget.localTarget().systemName());
UIALogger.logMessage(" systemVersion: "+ UIATarget.localTarget().systemVersion());
}
});
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Then, calling <code style="-webkit-hyphens: none;">target.logDevice()</code> you should see:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">Dump Device:
model: iPhone Simulator
rect: {"origin":{"x":0,"y":0},"size":{"width":320,"height":480}}
name: iPhone Simulator
</code></pre>
<h4 id="3.2" style="color: #333333;">
Import external scripts</h4>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
You can also see how to reference one script from another, with <code style="-webkit-hyphens: none;">#import</code> directive. So, creating multiples tests and chaining them can be done by importing them in one single file and call:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">#import "Test1.js"
#import "Test2.js"
#import "Test3.js"
#import "Test4.js"
#import "Test5.js"
</code></pre>
<h4 id="3.3" style="color: #333333;">
By the power of the command line</h4>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
If you want to automate your scripts, you can launch them from the command line. In fact, I recommend to use this option, instead of using the Instruments graphical user interface. Instruments’s UI is slow, and tests keep running even when you’ve reached the end of them. Launching UIAutomation tests on command line is fast, and your scripts will stop at the end of the test.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
To launch a script, you will need your UDID and type on a terminal:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">instruments -w your_ios_udid -t /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate name_of_your_app -e UIASCRIPT absolute_path_to_the_test_file
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
For instance, in my case, the line looks like:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">instruments -w a2de620d4fc33e91f1f2f8a8cb0841d2xxxxxxxx -t /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate TestAutomation -e UIASCRIPT /Users/jc/Documents/Dev/TestAutomation/TestAutomation/TestUI/Test-2.js
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
<img alt="UIAutomation on command line" height="322" src="http://blog.manbolo.com/2012/04/08/terminal.jpg" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="592" /></div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
If you are using a version of Xcode inferior to 4.3, you will need to type:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">instruments -w your_ios_device_udid -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate TestAutomation -e UIASCRIPT /Users/jc/Documents/Dev/TestAutomation/TestAutomation/TestUI/Test-2.js
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
A small catch, don’t forget to disable the pass code on your device, otherwise you will see this trace: <code style="-webkit-hyphens: none;">remote exception encountered : ’device locked : Failed to launch process with bundle identifier ’com.manbolo.testautomation’</code>. Yes, UIAutomation doesn’t know yet your password!</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
The command line works also with the Simulator. You will need to know the absolute path of your app in the simulator file system. The simulator ’simulates’ the device file system in the following folder <code style="-webkit-hyphens: none;">~/Library/Application Support/iPhone Simulator/5.1/</code>. Under this directory, you will find the Applications directory that contains a sandbox for each of the apps installed in the simulator. Just identify the repository of the TestAutomation app and type in the simulator:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">instruments -t /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate "/Users/jc/Library/Application Support/iPhone Simulator/5.1/Applications/C28DDC1B-810E-43BD-A0E7-C16A680D8E15/TestAutomation.app" -e UIASCRIPT /Users/jc/Documents/Dev/TestAutomation/TestAutomation/TestUI/Test-2.js
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
A final word on the command line. If you don’t precise an output file, the log result will be put in the folder in which you’ve typed the command. You can use <code style="-webkit-hyphens: none;">-e UIARESULTSPATH results_path</code> to redirect the output of the scripts.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
I’ve not succeeded to launch multiple scripts in parallel with the command line. Use the whole nights to chain and launch your scripts so you will really test your app “while you sleep”.</div>
<h4 id="3.4" style="color: #333333;">
Interactively record interaction</h4>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Instead of typing your script, you can record the interaction directly on the device or in the simulator, to replay them later. Do to this:</div>
<ol style="color: #333333;">
<li>Launch Instruments (⌘I)</li>
<li>Create a new script</li>
<li>Select the Script editor<img alt="Record interactions" height="67" src="http://blog.manbolo.com/2012/04/08/record2.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="153" /></li>
<li>In the bottom of the script editor, see that red button ?<img alt="Record interactions" height="39" src="http://blog.manbolo.com/2012/04/08/record1.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="179" />Press-it!</li>
<li>Now, you can play with your app; you will see the captured interactions appearing in the script window (even rotation event). Press the square button to stop recording.<img alt="Record interactions" height="209" src="http://blog.manbolo.com/2012/04/08/record3.png" style="display: block; margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px;" width="533" /></li>
</ol>
<h4 id="3.5" style="color: #333333;">
“When things don’t work, add UIATarget.delay(1);”</h4>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
While writing your script, you will play with timing, animations and so on. UIAutomation has various functions to get elements and wait for them even if they’re not displayed but the best advice is <a href="http://www.juddsolutions.com/downloads/UnitAndFunctionalTestingForiOSPlatform.pdf" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">from this extra presentation</a>:</div>
<blockquote style="border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 2px; color: #666666; padding-left: 0.5em;">
<div style="margin-bottom: 0px; margin-top: 0.7em;">
When things don’t work, add UIATarget.delay(1);!</div>
</blockquote>
<hr style="background-color: #999999; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #999999; height: 1px; width: 180px;" />
<h3 id="4" style="color: #333333;">
4. Advanced interactions</h3>
<h4 id="4.1" style="color: #333333;">
Handling unexpected and expected alerts</h4>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Handling alert in automated tests has always been difficult: you’ve carefully written your scripts, launch your test suite just before going to bed, and, in the morning, you discover that all your tests has been ruined because your iPhone has received an unexpected text message that has blocked the tests. Well, UIAutomation helps you to deal with that.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
By adding this code in your script,</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">UIATarget.onAlert = function onAlert(alert){
var title = alert.name();
UIALogger.logWarning("Alert with title ’" + title + "’ encountered!");
return false; // use default handler
}
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
and returning false, you ask UIAutomation to automatically dismiss any UIAlertView, so alerts won’t interfere with your tests. Your scripts will run as if there has never been any alert. But alerts can be part of your app and tested workflow so, in some case, you don’t wan’t to automatically dismiss it. To do so, you can test against the title of the alert, tap some buttons and return true. By returning true, you indicate UIAutomation that this alert must be considered as a part of your test and treated accordantly.</div>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
For instance, if you want to test the ’Add Something’ alert view by taping on an ’Add’ button, you could write:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">UIATarget.onAlert = function onAlert(alert) {
var title = alert.name();
UIALogger.logWarning("Alert with title ’" + title + "’ encountered!");
if (title == "Add Something") {
alert.buttons()["Add"].tap();
return true; // bypass default handler
}
return false; // use default handler
}
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Easy Baby!</div>
<h4 id="4.2" style="color: #333333;">
Multitasking</h4>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Testing multitasking in your app is also very simple: let’s say you want to test that crazy background process you launch each time the app resumes from background and enter in <code style="-webkit-hyphens: none;">- (void)applicationWillEnterForeground:(UIApplication *)application</code> selector, you can send the app in background, wait for for 10 seconds, and resume it by calling:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">UIATarget.localTarget().deactivateAppForDuration(10);
</code></pre>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
<code style="-webkit-hyphens: none;">deactivateAppForDuration(duration)</code> will pause the script, simulate the user taps the home button, (and send the app in background), wait, resume the app and resume the test script for you, <em>in one line of code!</em>.</div>
<h4 id="4.3" style="color: #333333;">
Orientation</h4>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
Finally, you can simulate the rotation of your iPhone. Again, pretty straightforward and easy:</div>
<pre style="color: #333333; line-height: 1.4em;"><code style="-webkit-hyphens: none;">var target = UIATarget.localTarget();
var app = target.frontMostApp();
// set landscape left
target.setDeviceOrientation(UIA_DEVICE_ORIENTATION_LANDSCAPELEFT);
UIALogger.logMessage("Current orientation is " + app.interfaceOrientation());
// portrait
target.setDeviceOrientation(UIA_DEVICE_ORIENTATION_PORTRAIT);
UIALogger.logMessage("Current orientation is " + app.interfaceOrientation());
</code></pre>
<hr style="background-color: #999999; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #999999; height: 1px; width: 180px;" />
<h3 id="5" style="color: #333333;">
5. The end</h3>
<h4 id="5.1" style="color: #333333;">
Useful links</h4>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
This was a pretty long post but I hope that you see the power of UIAutomation and the potential burst in quality that your app can gained. There is not a lot of documentation on UIAutomation, but I’ve listed a bunch of links that may help you.</div>
<ul style="color: #333333;">
<li><a href="http://cocoamanifest.net/articles/2011/05/uiautomation-an-introduction.html" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">http://cocoamanifest.net/articles/2011/05/uiautomation-an-introduction.html</a>,<a href="http://cocoamanifest.net/articles/2011/07/ui-automation-part-2-assertions-and-imports.html" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">http://cocoamanifest.net/articles/2011/07/ui-automation-part-2-assertions-and-imports.html</a> and <a href="http://cocoamanifest.net/articles/2011/11/changes-to-ui-automation-in-ios-5.html" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">http://cocoamanifest.net/articles/2011/11/changes-to-ui-automation-in-ios-5.html</a>: very good series on UIAutomation</li>
<li><a href="http://mobilecoder.wordpress.com/2010/11/08/iphoneipodipad-automation-basics" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">http://mobilecoder.wordpress.com/2010/11/08/iphoneipodipad-automation-basics</a>: excellent tutorial on UIAutomation, worth the reading!</li>
<li><a href="http://www.juddsolutions.com/downloads/UnitAndFunctionalTestingForiOSPlatform.pdf" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">http://www.juddsolutions.com/downloads/UnitAndFunctionalTestingForiOSPlatform.pdf</a>: superb and deepful presentation on unit testing and UIAutomation. You will appreciate the slide n°70 “When things don’t work, add UIATarget.delay(1);”!</li>
<li><a href="http://guerratopia.com/en/introduction-to-automating-ui-testing-in-ios" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">http://guerratopia.com/en/introduction-to-automating-ui-testing-in-ios</a>: Nice tutorial and very good introduction</li>
<li><a href="http://jojitsoriano.wordpress.com/2011/06/03/references-on-unit-testing-ui-automation-for-ios-applications" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">http://jojitsoriano.wordpress.com/2011/06/03/references-on-unit-testing-ui-automation-for-ios-applications</a>: a lot of links about unit testing and UIAutomation</li>
</ul>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
And, of course</div>
<ul style="color: #333333;">
<li><a href="http://developer.apple.com/library/ios/#documentation/DeveloperTools/Reference/UIAutomationRef/_index.html" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">Apple documentation on UIAutomation</a></li>
<li><a href="http://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Built-InInstruments/Built-InInstruments.html#//apple_ref/doc/uid/TP40004652-CH6" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">UIAutomation in Apple Instruments documentation</a></li>
<li><a href="http://developer.apple.com/devcenter/download.action?path=/wwdc_2010/wwdc_2010_video_assets__pdfs/306__automating_user_interface_testing_with_instruments.pdf" style="color: #7208bf; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;">WWDC 2010 - Session 306 - Automating User Interface Testing with Instruments</a></li>
</ul>
<div style="color: #333333; margin-bottom: 0px; margin-top: 0.7em;">
You’ll need a free developper account to access this ressources.</div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-48151174534071960712012-12-12T21:02:00.001-08:002012-12-12T21:02:49.592-08:00Insert values in sqlite<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-style-span" style="color: #713baa;"></span></div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-style-span" style="color: #713baa;"><span style="color: #76492a;">// Insert values in sqlite</span></span></div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-style-span" style="color: #713baa;"><span style="color: #76492a;"><br /></span></span></div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-style-span" style="color: #713baa;"><span style="color: #76492a;">#import </span><sqlite3.h></span></div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-style-span" style="color: #713baa;"><br /></span></div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
</div>
<div style="font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">
<span class="Apple-style-span" style="color: #713baa;"></span><br />
<div style="color: #76492a; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-style-span" style="color: #713baa;">#define kDatabaseName @<span style="color: #cd2f1b;">"time.sqlite"</span></span></div>
</div>
<br />
<br />
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #713baa;"><br /></span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #713baa;">sqlite3</span> *database;</div>
<br />
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
-(<span style="color: #b82aa2;">void</span>)writeDatabase:(<span style="color: #713baa;">NSString</span> *)str1 andid:(<span style="color: #b82aa2;">int</span>)number</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #3f1b81; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span><span style="color: #713baa;">NSArray</span><span style="color: black;"> *documentPaths = </span>NSSearchPathForDirectoriesInDomains<span style="color: black;">(</span>NSLibraryDirectory<span style="color: black;">, </span>NSUserDomainMask<span style="color: black;">, </span><span style="color: #b82aa2;">YES</span><span style="color: black;">);</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #713baa;">NSString</span> *documentsDirectory = [documentPaths <span style="color: #3f1b81;">objectAtIndex</span>:<span style="color: #3424d9;">0</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #713baa;">NSString</span> *DatabasePath = [documentsDirectory <span style="color: #3f1b81;">stringByAppendingPathComponent</span>:<span class="Apple-style-span" style="color: #cd2f1b;">"myDB.sqlite"</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #b82aa2;">if</span>(<span style="color: #3f1b81;">sqlite3_open</span>([DatabasePath <span style="color: #3f1b81;">UTF8String</span>], &<span style="color: #528187;">database</span>) == <span style="color: #76492a;">SQLITE_OK</span>) {</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #713baa;">sqlite3_stmt</span> *compiledStatement;</div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #b82aa2;">const</span><span style="color: black;"> </span><span style="color: #b82aa2;">char</span><span style="color: black;"> *sql =</span>"INSERT INTO TableName (string, No) VALUES (?,?)"<span style="color: black;">;</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #b82aa2;">if</span> (<span style="color: #3f1b81;">sqlite3_prepare_v2</span>(<span style="color: #528187;">database</span>, sql, -<span style="color: #3424d9;">1</span>, &compiledStatement, <span style="color: #b82aa2;">NULL</span>) != <span style="color: #76492a;">SQLITE_OK</span>) </div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>{</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #3f1b81;">sqlite3_bind_text</span>(compiledStatement, <span style="color: #3424d9;">1</span>, [str1 <span style="color: #3f1b81;">UTF8String</span>], -<span style="color: #3424d9;">1</span>, <span style="color: #76492a;">SQLITE_TRANSIENT</span>);</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #3f1b81;">sqlite3_bind_int</span>(compiledStatement, <span style="color: #3424d9;">2</span>, number);</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #3f1b81;">sqlite3_reset</span>(compiledStatement);</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #b82aa2;">int</span> success = <span style="color: #3f1b81;">sqlite3_step</span>(compiledStatement);</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #b82aa2;">if</span> (success == <span style="color: #76492a;">SQLITE_ERROR</span>) </div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>{</div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #76492a;">NSAssert1</span><span style="color: black;">(</span><span style="color: #3424d9;">0</span><span style="color: black;">, </span>@"Error: failed to insert into the database with message '%s'."<span style="color: black;">, </span><span style="color: #3f1b81;">sqlite3_errmsg</span><span style="color: black;">(</span><span style="color: #528187;">database</span><span style="color: black;">));</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="color: #b82aa2; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>else</div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #3f1b81;">NSLog</span><span style="color: black;">(</span>@"Success"<span style="color: black;">);</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #3f1b81;">sqlite3_finalize</span>(compiledStatement);</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="color: #3f1b81; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>sqlite3_close<span style="color: black;">(</span><span style="color: #528187;">database</span><span style="color: black;">);</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
//=========================================================================</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
-(<span style="color: #b82aa2;">void</span>)readDBFile</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #3f1b81; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #713baa;">NSArray</span><span style="color: black;"> *documentPaths = </span>NSSearchPathForDirectoriesInDomains<span style="color: black;">(</span>NSLibraryDirectory<span style="color: black;">, </span>NSUserDomainMask<span style="color: black;">, </span><span style="color: #b82aa2;">YES</span><span style="color: black;">);</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #713baa;">NSString</span> *documentsDirectory = [documentPaths <span style="color: #3f1b81;">objectAtIndex</span>:<span style="color: #3424d9;">0</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #713baa;">NSString</span> *DatabasePath = [documentsDirectory <span style="color: #3f1b81;">stringByAppendingPathComponent</span>:<span style="color: #76492a;">kDatabaseName</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #713baa;">sqlite3_stmt</span> *compiledStatement;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #b82aa2;">int</span> d=<span style="color: #3424d9;">1</span>;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #b82aa2;">if</span>(<span style="color: #3f1b81;">sqlite3_open</span>([DatabasePath <span style="color: #3f1b81;">UTF8String</span>], &<span style="color: #528187;">database</span>) == <span style="color: #76492a;">SQLITE_OK</span>) {</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #b82aa2;">const</span> <span style="color: #b82aa2;">char</span> *sqlStatement;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span><span style="color: #713baa;">NSString</span><span style="color: black;"> *newString=[</span><span style="color: #713baa;">NSString</span><span style="color: black;"> </span><span style="color: #3f1b81;">stringWithFormat</span><span style="color: black;">:</span>@"Select InTime from Time where no=%d"<span style="color: black;">,d];</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>sqlStatement=[newString <span style="color: #3f1b81;">UTF8String</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #3f1b81;">NSLog</span>(<span style="color: #cd2f1b;">@"newString=%@"</span>,newString);</div>
<div style="color: #3f1b81; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>printf<span style="color: black;">(</span><span style="color: #cd2f1b;">"\nError%s"</span><span style="color: black;">,</span>sqlite3_errmsg<span style="color: black;">(</span><span style="color: #528187;">database</span><span style="color: black;">));</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #b82aa2;">if</span>(<span style="color: #3f1b81;">sqlite3_prepare_v2</span>(<span style="color: #528187;">database</span>, sqlStatement,-<span style="color: #3424d9;">1</span>, &compiledStatement, <span style="color: #b82aa2;">NULL</span>) == <span style="color: #76492a;">SQLITE_OK</span>) {</div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>//sqlite3_</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #b82aa2;">while</span>(<span style="color: #3f1b81;">sqlite3_step</span>(compiledStatement) == <span style="color: #76492a;">SQLITE_ROW</span> ) </div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>{</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #b82aa2;">@try</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>{</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #713baa;">NSString</span> *str1 = [[<span style="color: #713baa;">NSString</span> <span style="color: #3f1b81;">stringWithUTF8String</span>:(<span style="color: #b82aa2;">char</span> *)<span style="color: #3f1b81;">sqlite3_column_text</span>(compiledStatement, <span style="color: #3424d9;">0</span>)]<span style="color: #3f1b81;">retain</span>];</div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span><span class="Apple-style-span" style="color: black;"><span style="color: #b82aa2;">int</span> d = <span style="color: #3f1b81;">sqlite3_column_int</span>(compiledStatement, <span style="color: #3424d9;">1</span>);</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #3f1b81;">NSLog</span>(<span style="color: #cd2f1b;">@"fld %@ ==== %i"</span>, str1, d);</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #b82aa2;">@catch</span> (NSException *e)</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>{</div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #3f1b81;">NSLog</span><span style="color: black;">(</span>@"Error cacthed"<span style="color: black;">);</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #3f1b81;">sqlite3_reset</span>(compiledStatement);</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #3f1b81;">sqlite3_finalize</span>(compiledStatement);</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #3f1b81; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>sqlite3_close<span style="color: black;">(</span><span style="color: #528187;">database</span><span style="color: black;">);</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<br />
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
//=========================================================================</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
//write sqlite in library path</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
</div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #76492a;">#import </span><sqlite3.h></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #713baa;">NSString</span> *databasePath;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #713baa;">NSString</span> *databaseName;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #713baa;">sqlite3</span> *database;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
//=============================</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
didFinishLaunchingWithOptions</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<br /></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
-----------------------------------</div>
<br />
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
</div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>// Setup some globals</div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #528187;">databaseName</span><span style="color: black;"> = </span>@"time.sqlite"<span style="color: black;">;</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Get the path to the documents directory and append the databaseName</div>
<div style="color: #3f1b81; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #713baa;">NSArray</span><span style="color: black;"> *documentPaths = </span>NSSearchPathForDirectoriesInDomains<span style="color: black;">(</span>NSLibraryDirectory<span style="color: black;">, </span>NSUserDomainMask<span style="color: black;">, </span><span style="color: #b82aa2;">YES</span><span style="color: black;">);</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #713baa;">NSString</span> *documentsDir = [documentPaths <span style="color: #3f1b81;">objectAtIndex</span>:<span style="color: #3424d9;">0</span>];</div>
<div style="color: #3f1b81; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #528187;">databasePath</span><span style="color: black;"> = [documentsDir </span>stringByAppendingPathComponent<span style="color: black;">:</span><span style="color: #528187;">databaseName</span><span style="color: black;">];</span></div>
<div style="color: #cd2f1b; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span><span style="color: #3f1b81;">NSLog</span><span style="color: black;">(</span>@"datapath %@"<span style="color: black;">, </span><span style="color: #528187;">databasePath</span><span style="color: black;">);</span></div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Execute the "checkAndCreateDatabase" function</div>
<div style="color: #34595d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #b82aa2;">self</span><span style="color: black;"> </span>checkAndCreateDatabase<span style="color: black;">];</span></div>
<div style="color: #34595d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><br /></span></div>
<div style="color: #34595d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;">// ==========================================</span></div>
<div style="color: #34595d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><br /></span></div>
<div style="color: #34595d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"></span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
-(<span style="color: #b82aa2;">void</span>) checkAndCreateDatabase{</div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Check if the SQL database has already been saved to the users phone, if not then copy it over</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #b82aa2;">BOOL</span> success;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Create a FileManager object, we will use this to check the status</div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// of the database and to copy it over if required</div>
<div style="color: #713baa; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>NSFileManager<span style="color: black;"> *fileManager = [</span>NSFileManager<span style="color: black;"> </span><span style="color: #3f1b81;">defaultManager</span><span style="color: black;">];</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Check if the database has already been created in the users filesystem</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>success = [fileManager <span style="color: #3f1b81;">fileExistsAtPath</span>:<span style="color: #528187;">databasePath</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// If the database already exists then return without doing anything</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #b82aa2;">if</span>(success) <span style="color: #b82aa2;">return</span>;</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// If not then proceed to copy the database from the application to the users filesystem</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Get the path to the database in the application package</div>
<div style="color: #3f1b81; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #713baa;">NSString</span><span style="color: black;"> *databasePathFromApp = [[[</span><span style="color: #713baa;">NSBundle</span><span style="color: black;"> </span>mainBundle<span style="color: black;">] </span>resourcePath<span style="color: black;">] </span>stringByAppendingPathComponent<span style="color: black;">:</span><span style="color: #528187;">databaseName</span><span style="color: black;">];</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="color: #008400; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Copy the database from the package to the users filesystem</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>[fileManager <span style="color: #3f1b81;">copyItemAtPath</span>:databasePathFromApp <span style="color: #3f1b81;">toPath</span>:<span style="color: #528187;">databasePath</span> <span style="color: #3f1b81;">error</span>:<span style="color: #b82aa2;">nil</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>[fileManager <span style="color: #3f1b81;">release</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<br />
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-63185983796759576582012-11-26T22:51:00.001-08:002012-11-26T23:15:36.008-08:00eMail Validation in iOS sdk <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="color: #008700; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #6f32a9;">NSString</span><span style="color: black;"> *email = </span><span class="Apple-style-span" style="color: #cf231d;">@"examle@example.com"<span style="color: black;">;</span></span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #6f32a9;">NSString</span> *emailRegEx =</div>
<div style="color: #cf231d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>@"(?:[a-z0-9!#$%\\&'*+/=?\\^_`{|}~-]+(?:\\.[a-z0-9!#$%\\&'*+/=?\\^_`{|}"</div>
<div style="color: #cf231d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>@"~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\"</div>
<div style="color: #cf231d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>@"x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-"</div>
<div style="color: #cf231d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>@"z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5"</div>
<div style="color: #cf231d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>@"]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-"</div>
<div style="color: #cf231d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>@"9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21"</div>
<div style="color: #cf231d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span>@"-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])"<span style="color: black;">;</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #6f32a9;">NSPredicate</span> *regExPredicate =</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
[<span style="color: #6f32a9;">NSPredicate</span> <span style="color: #3c0f81;">predicateWithFormat</span>:<span style="color: #cf231d;">@"SELF MATCHES %@"</span>, emailRegEx];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #b80fa2;">BOOL</span> myStringMatchesRegEx = [regExPredicate <span style="color: #3c0f81;">evaluateWithObject</span>:email];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;">
</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #b80fa2;">if</span>(!myStringMatchesRegEx)</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
{</div>
<div style="color: #cf231d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span><span style="color: #6f32a9;">UIAlertView</span><span style="color: black;"> *alert = [[</span><span style="color: #6f32a9;">UIAlertView</span><span style="color: black;"> </span><span style="color: #3c0f81;">alloc</span><span style="color: black;">]</span><span style="color: #3c0f81;">initWithTitle</span><span style="color: black;">:</span>@"email"<span style="color: black;"> </span><span style="color: #3c0f81;">message</span><span style="color: black;">:</span>@"Email id is invalid, please provide a valid email id."<span style="color: black;"> </span><span style="color: #3c0f81;">delegate</span><span style="color: black;">:</span><span style="color: #b80fa2;">nil</span><span style="color: black;"> </span><span style="color: #3c0f81;">cancelButtonTitle</span><span style="color: black;">:</span>@"OK"<span style="color: black;"> </span><span style="color: #3c0f81;">otherButtonTitles</span><span style="color: black;">:</span><span style="color: #b80fa2;">nil</span><span style="color: black;">];</span></div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
[alert <span style="color: #3c0f81;">show</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
[alert <span style="color: #3c0f81;">release</span>];</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
}</div>
<div style="font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: #b80fa2;">else</span></div>
<div style="color: #cf231d; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;">
<span style="color: black;"> </span><span style="color: #3c0f81;">NSLog</span><span style="color: black;">(</span>@"Valid eMail address"<span style="color: black;">);</span></div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-5324586007514913072012-11-22T23:14:00.001-08:002012-11-22T23:14:52.044-08:00Zip-Unzip in ios, iPhone, iPad,mac-osX<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="Apple-style-span" style="font-family: 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px;"></span><br />
<div class="article-header" style="display: table; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center; width: 750px;">
<h1 class="title entry-title" itemprop="name" style="color: #333333; display: table-cell; font-family: 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 20px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 40px; padding-top: 0px; position: relative; text-align: center; vertical-align: middle; width: 709px;">
<br /></h1>
</div>
<div class="article-content entry-content" itemprop="articleBody" style="clear: both; color: #333333; line-height: 1.4; margin-bottom: 5px; margin-left: auto; margin-right: auto; margin-top: 10px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;">
<div dir="ltr" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;" trbidi="on">
An Very good library to zip/uzip files using objective-c.<br />You can also unzip password protected file using this utility.<br />steps to use...<br />1)Download it from http://code.google.com/p/ziparchive/<br />2)include minizip folder and ZipArchive.h and ZipArchive.m files into your project.<br />3) import ZipArchive.h in your class and then call approprite methods of ZipArchive to zip/unzip.<br /><br />for example:<br />//to create zipfile<br /> -(<span class="s1">BOOL</span>) CreateZipFile2:(<span class="s2">NSString</span>*) zipFile;<br />//to create password protected zipfile<br /><div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
-(<span class="s1">BOOL</span>) CreateZipFile2:(<span class="s2">NSString</span>*) zipFile Password:(<span class="s2">NSString</span>*) password;</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
////to addFile To zipfile</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
-(<span class="s1">BOOL</span>) addFileToZip:(<span class="s2">NSString</span>*) file newname:(<span class="s2">NSString</span>*) newname;</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
//closing zip</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
-(<span class="s1">BOOL</span>) CloseZipFile2;</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<br /></div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<br /></div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
//unziping zip file</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
-(<span class="s1">BOOL</span>) UnzipOpenFile:(<span class="s2">NSString</span>*) zipFile;</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<br /></div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
//unzip password protected zip file</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
-(<span class="s1">BOOL</span>) UnzipOpenFile:(<span class="s2">NSString</span>*) zipFile Password:(<span class="s2">NSString</span>*) password;</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<br /></div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
-(<span class="s1">BOOL</span>) UnzipFileTo:(<span class="s2">NSString</span>*) path overWrite:(<span class="s1">BOOL</span>) overwrite;</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
-(<span class="s1">BOOL</span>) UnzipCloseFile;</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<br /></div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<br /></div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
//Demo code.</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<br /></div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
//Unziping File</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="s1">ZipArchive</span>* zipArchive = [[<span class="s1">ZipArchive</span> <span class="s2">alloc</span>] <span class="s2">init</span>];</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="s1">NSArray</span><span class="s2"> *paths = </span>NSSearchPathForDirectoriesInDomains<span class="s2">(</span>NSDocumentDirectory<span class="s2">,</span></div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="s3">NSUserDomainMask</span>,</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="s4">YES</span>);</div>
<div class="p3" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
</div>
<div class="p1" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="s2"> </span><span class="s1">NSString</span><span class="s2"> *zipFile = [[paths </span>lastObject<span class="s2">] </span>stringByAppendingPathComponent<span class="s2">:</span><span class="s5">@"abcd.zip"</span><span class="s2">];</span></div>
<br /><div class="p3" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="s3"> </span><span class="s4">NSString</span><span class="s3"> *extractedFile = [[paths </span>lastObject<span class="s3">] </span>stringByAppendingPathComponent<span class="s3">:</span><span class="s5">@"Extracted"</span><span class="s3">];</span></div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="s6">if</span>( [zipArchive <span class="s7">UnzipOpenFile</span>: zipFile <span class="s7">Password</span>:<span class="s5">@"mypassword"</span>] )</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
{</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="s6">BOOL</span> ret = [zipArchive <span class="s7">UnzipFileTo</span>:extractedFile <span class="s7">overWrite</span>:<span class="s6">YES</span>];</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="s6">if</span>( <span class="s6">NO</span>==ret )</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
{</div>
<div class="p3" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="s3"> </span><span class="s4">UIAlertView</span><span class="s3"> *alert=[[</span><span class="s4">UIAlertView</span><span class="s3"> </span>alloc<span class="s3">] </span>initWithTitle<span class="s3">:</span><span class="s5">@"Error"</span><span class="s3"> </span>message<span class="s3">:[</span><span class="s4">NSString</span><span class="s3"> </span>stringWithFormat<span class="s3">:</span><span class="s5">@"Unable to unzip."</span><span class="s3">] </span>delegate<span class="s3">:</span><span class="s6">nil</span><span class="s3"> </span>cancelButtonTitle<span class="s3">:</span><span class="s5">@"OK"</span><span class="s3"> </span>otherButtonTitles<span class="s3">:</span><span class="s6">nil</span><span class="s3">, </span><span class="s6">nil</span><span class="s3">];</span></div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
[alert <span class="s2">show</span>];</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
[alert <span class="s2">release</span>];</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
[zipArchive <span class="s2">release</span>];</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
<span class="s6">return</span> <span class="s6">false</span>;</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
}</div>
<div class="p2" style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">
[zipArchive <span class="s7">UnzipCloseFile</span>];</div>
<div>
<br /></div>
</div>
</div>
<div class="article-footer" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: none; outline-width: initial; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: center;">
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-74740999172921117182012-10-01T04:06:00.005-07:002012-10-01T04:06:51.832-07:00shouldAutorotateToInterfaceOrientation not getting called in iOS 6<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<header class="entry-header" style="background-color: white; color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin: 0px auto; text-align: -webkit-auto; width: 584px;"><div style="text-align: left;">
<b>shouldAutorotateToInterfaceOrientation not getting called in iOS 6 </b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<span style="font-family: inherit; font-size: 15px; font-style: inherit; text-align: -webkit-auto;">The shouldAutorotateToInterfaceOrientation method is deprecated in iOS6. Instead shouldAutorotate and supportedInterfaceOrientation methods are used. If some logic is used in shouldAutorotateToInterfaceOrientation method, it should be implemented in -willRotateToInterfaceOrientation:duration: method.</span></div>
</header><div class="entry-content" style="background-color: white; border: 0px; color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24px; margin: 0px auto; outline: 0px; padding: 1.625em 0px 0px; text-align: -webkit-auto; vertical-align: baseline; width: 584px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 1.625em; outline: 0px; padding: 0px; vertical-align: baseline;">
First, if you want the view controller’s content to be able to auto rotate just return YES in -shouldAutorotate method.</div>
<div class="wp_syntax" style="background-color: #f9f9f9; border: 1px solid silver; color: #110000; font-family: inherit; font-style: inherit; margin: 0px 0px 1.5em; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; vertical-align: baseline; width: 584px;">
<table style="border-collapse: collapse !important; border-spacing: 0px; border: none !important; font-family: inherit; font-size: 15px; font-style: inherit; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline; width: 584px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><td class="line_numbers" style="border: none !important; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px !important; text-align: left !important; vertical-align: top !important;"><pre style="-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; background-color: rgb(221, 238, 255) !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; clear: none !important; color: gray !important; float: none !important; font-size: 12px !important; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px 4px !important; text-align: right !important; vertical-align: baseline; width: auto !important;">1
2
3
4
</pre>
</td><td class="code" style="background-image: none !important; border: none !important; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px !important; text-align: left !important; vertical-align: top !important;"><pre class="objc" style="-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; clear: none !important; float: none !important; font-size: 12px !important; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; width: auto !important;"><span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">-</span> <span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">(</span><span style="border: 0px; color: #a61390; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">BOOL</span><span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">)</span>shouldAutorotate
<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">{</span>
<span style="border: 0px; color: #a61390; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">return</span> <span style="border: 0px; color: #a61390; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">YES</span>;
<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">}</span></pre>
</td></tr>
</tbody></table>
</div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 1.625em; outline: 0px; padding: 0px; vertical-align: baseline;">
Supported interface orientations are returned in the -supportedInterfaceOrientations method.</div>
<div class="wp_syntax" style="background-color: #f9f9f9; border: 1px solid silver; color: #110000; font-family: inherit; font-style: inherit; margin: 0px 0px 1.5em; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; vertical-align: baseline; width: 584px;">
<table style="border-collapse: collapse !important; border-spacing: 0px; border: none !important; font-family: inherit; font-size: 15px; font-style: inherit; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline; width: 1303px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><td class="line_numbers" style="border: none !important; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px !important; text-align: left !important; vertical-align: top !important;"><pre style="-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; background-color: rgb(221, 238, 255) !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; clear: none !important; color: gray !important; float: none !important; font-size: 12px !important; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px 4px !important; text-align: right !important; vertical-align: baseline; width: auto !important;">1
2
3
4
5
6
7
</pre>
</td><td class="code" style="background-image: none !important; border: none !important; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px !important; text-align: left !important; vertical-align: top !important;"><pre class="objc" style="-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; clear: none !important; float: none !important; font-size: 12px !important; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; width: auto !important;"><span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">-</span> <span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">(</span>NSUInteger<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">)</span>supportedInterfaceOrientations
<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">{</span>
<span style="border: 0px; color: #11740a; font-family: inherit; font-style: italic; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">//if you have different views for portrait and landscape they are assigned here for the first time</span>
self.view <span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">=</span> UIInterfaceOrientationIsLandscape<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">(</span><span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">[</span><span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">[</span>UIApplication sharedApplication<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">]</span> statusBarOrientation<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">]</span><span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">)</span> ? _viewLandscape <span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">:</span> _viewPortrait;
<span style="border: 0px; color: #11740a; font-family: inherit; font-style: italic; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">//return orientations you want to support</span>
<span style="border: 0px; color: #a61390; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">return</span> <span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">(</span>UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight | UIInterfaceOrientationMaskPortraitUpsideDown<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">)</span>;
<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">}</span></pre>
</td></tr>
</tbody></table>
</div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 1.625em; outline: 0px; padding: 0px; vertical-align: baseline;">
If there is some logic, like switching views for landscape and portrait on rotation use the -willRotateToInterfaceOrientation:duration: method.</div>
<div class="wp_syntax" style="background-color: #f9f9f9; border: 1px solid silver; color: #110000; font-family: inherit; font-style: inherit; margin: 0px 0px 1.5em; outline: 0px; overflow-x: auto; overflow-y: hidden; padding: 0px; vertical-align: baseline; width: 584px;">
<table style="border-collapse: collapse !important; border-spacing: 0px; border: none !important; font-family: inherit; font-size: 15px; font-style: inherit; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline; width: 862px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><td class="line_numbers" style="border: none !important; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px !important; text-align: left !important; vertical-align: top !important;"><pre style="-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; background-color: rgb(221, 238, 255) !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; clear: none !important; color: gray !important; float: none !important; font-size: 12px !important; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px 4px !important; text-align: right !important; vertical-align: baseline; width: auto !important;">1
2
3
4
5
</pre>
</td><td class="code" style="background-image: none !important; border: none !important; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px !important; text-align: left !important; vertical-align: top !important;"><pre class="objc" style="-webkit-box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; background-color: transparent !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px; box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px !important; clear: none !important; float: none !important; font-size: 12px !important; line-height: 16px !important; outline: 0px; overflow: visible !important; padding: 0px !important; vertical-align: baseline; width: auto !important;"><span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">-</span> <span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">(</span><span style="border: 0px; color: #a61390; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">void</span><span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">)</span>willRotateToInterfaceOrientation<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">:</span><span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">(</span>UIInterfaceOrientation<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">)</span>toInterfaceOrientation duration<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">:</span><span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">(</span>NSTimeInterval<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">)</span>duration
<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">{</span>
<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">[</span>super willRotateToInterfaceOrientation<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">:</span>toInterfaceOrientation duration<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">:</span>duration<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">]</span>;
self.view <span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">=</span> UIInterfaceOrientationIsLandscape<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">(</span>toInterfaceOrientation<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">)</span> ? _viewLandscape <span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">:</span> _viewPortrait;
<span style="border: 0px; color: #002200; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">}</span></pre>
</td></tr>
</tbody></table>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-39756075478738978662012-09-23T20:22:00.000-07:002012-09-23T20:22:37.393-07:00Check internet available or not<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="color: #008212; font-family: Menlo; font-size: 11px;">
</div>
<div style="color: #33595d;">
<span style="color: black;">We have to add Reachability Class </span></div>
<div style="color: #33595d;">
<span style="color: #508186;"><br /></span></div>
<div style="color: #33595d;">
<span style="color: #508186;"> Reachability</span><span style="color: black;"> *reach=[[</span><span style="color: #508186;">Reachability</span><span style="color: black;"> </span>reachabilityForInternetConnection<span style="color: black;">]</span><span style="color: #3d227f;">retain</span><span style="color: black;">];</span></div>
<div style="color: #33595d;">
<span style="color: black;"> </span><span style="color: #508186;">NetworkStatus</span><span style="color: black;"> status=[reach </span>currentReachabilityStatus<span style="color: black;">];</span></div>
<span style="color: #b933a1;">bool</span> success=[<span style="color: #508186;">NetWorkInfo</span> <span style="color: #33595d;">stringFromStatus</span>:status];<br />
[reach <span style="color: #3d227f;">release</span>];<br />
<span style="color: #b933a1;">if</span> (success){<br />
[<span style="color: #b933a1;">self</span> <span style="color: #33595d;">loadPage</span>];<br />
}<br />
<span style="color: #b933a1;">else</span><br />
{<br />
[<span style="color: #b933a1;">self</span> <span style="color: #33595d;">alertMsg</span>];<br />
}<br />
<div>
<br /></div>
<br />
</div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0tag:blogger.com,1999:blog-2158836443689122279.post-23242985057096938542012-09-23T19:36:00.000-07:002012-09-23T19:38:11.552-07:00Simple sqlite tutorial<div dir="ltr" style="text-align: left;" trbidi="on">
Simple sqlite tutorial<br />
<br />
First we have to add libsqlite3.0.dylib<br />
<br />
sqliteAppDelegate.h<br />
<br />
<br />
<div style="color: #cf3125; font-family: Menlo; font-size: 11px;">
<span style="color: #77492d;">#import </span><UIKit/UIKit.h></div>
<div style="color: #008212; font-family: Menlo; font-size: 11px;">
<span style="color: #77492d;">#import </span><span style="color: #cf3125;"><sqlite3.h></span><span style="color: #77492d;"> </span>// Import the SQLite database framework</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<br /></div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #b933a1;">@interface</span> SQLiteTutorialAppDelegate : <span style="color: #7041a7;">NSObject</span> {</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #7041a7;">UIWindow</span> *window;</div>
<div style="color: #008212; font-family: Menlo; font-size: 11px;">
<span style="color: black;"> </span>//UINavigationController *navigationController;</div>
<div style="color: #7041a7; font-family: Menlo; font-size: 11px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>UITabBarController<span style="color: black;"> *tabController;</span></div>
<div style="color: #008212; font-family: Menlo; font-size: 11px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Database variables</div>
<div style="font-family: Menlo; font-size: 11px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSString</span> *databaseName;</div>
<div style="font-family: Menlo; font-size: 11px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSString</span> *databasePath;</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212; font-family: Menlo; font-size: 11px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Array to store the animal objects</div>
<div style="color: #7041a7; font-family: Menlo; font-size: 11px;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>NSMutableArray<span style="color: black;"> *animals;</span></div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
</div>
<div style="font-family: Menlo; font-size: 11px;">
<span style="color: #7041a7;">NSArray</span> *countArray;</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<br /></div>
<div style="font-family: Menlo; font-size: 11px;">
}</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<br /></div>
<div style="color: #b933a1; font-family: Menlo; font-size: 11px;">
@property<span style="color: black;"> (</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UIWindow</span><span style="color: black;"> *window;</span></div>
<div style="color: #b933a1; font-family: Menlo; font-size: 11px;">
@property<span style="color: black;"> (</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UITabBarController</span><span style="color: black;"> *tabController;</span></div>
<div style="color: #b933a1; font-family: Menlo; font-size: 11px;">
@property<span style="color: black;"> (</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span><span style="color: #7041a7;">NSMutableArray</span><span style="color: black;"> *animals;</span></div>
<div style="color: #b933a1; font-family: Menlo; font-size: 11px;">
@property<span style="color: black;"> (</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span><span style="color: #7041a7;">NSArray</span><span style="color: black;"> *countArray;</span></div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<br /></div>
<div style="font-family: Menlo; font-size: 11px;">
-(<span style="color: #b933a1;">void</span>)checkAndCreateDatabase;</div>
<div style="font-family: Menlo; font-size: 11px;">
-(<span style="color: #b933a1;">void</span>)readAnimalsFromDatabase;</div>
<div style="font-family: Menlo; font-size: 11px; min-height: 13px;">
<br /></div>
<div style="font-family: Menlo; font-size: 11px;">
-(<span style="color: #b933a1;">void</span>) checking;</div>
<div style="color: #b933a1; font-family: Menlo; font-size: 11px;">
@end</div>
<div style="color: #b933a1; font-family: Menlo; font-size: 11px;">
<br /></div>
<div style="color: #b933a1; font-family: Menlo; font-size: 11px;">
<br /></div>
<div style="color: #b933a1; font-family: Menlo; font-size: 11px;">
<span style="color: black; font-family: Times; font-size: small;">sqliteAppDelegate.m</span></div>
<div style="color: #b933a1; font-family: Menlo; font-size: 11px;">
<span style="color: black; font-family: Times; font-size: small;"><br /></span></div>
<div style="font-family: Menlo; font-size: 11px;">
</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"SQLiteTutorialAppDelegate.h"</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"RootViewController.h"</div>
<div style="color: #008212;">
<span style="color: #77492d;">#import </span><span style="color: #cf3125;">"Animal.h"</span><span style="color: #77492d;"> </span>// Import the animal object header</div>
<div style="color: #b933a1; min-height: 13px;">
<br /></div>
<div style="color: #b933a1;">
@implementation SQLiteTutorialAppDelegate</div>
<div style="color: #b933a1; min-height: 13px;">
<br /></div>
<div style="color: #b933a1;">
@synthesize<span style="color: black;"> window;</span></div>
<div style="color: #b933a1;">
@synthesize tabController;</div>
<div style="color: #008212;">
<span style="color: #b933a1;">@synthesize</span><span style="color: black;"> animals, countArray; </span>// Synthesize the aminals array</div>
<div style="color: #b933a1; min-height: 13px;">
<br /></div>
<div style="color: #b933a1; min-height: 13px;">
<br /></div>
<div style="color: #b933a1; min-height: 13px;">
<br /></div>
<div style="color: #b933a1;">
- (void)applicationDidFinishLaunching:(<span style="color: #7041a7;">UIApplication</span> *)application {</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Setup some globals</div>
<div style="color: #cf3125;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #508186;">databaseName</span><span style="color: black;"> = </span>@"Tips.sqlite"<span style="color: black;">;</span></div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Get the path to the documents directory and append the databaseName</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #7041a7;">NSArray</span><span style="color: black;"> *documentPaths = </span>NSSearchPathForDirectoriesInDomains<span style="color: black;">(</span>NSDocumentDirectory<span style="color: black;">, </span>NSUserDomainMask<span style="color: black;">, </span><span style="color: #b933a1;">YES</span><span style="color: black;">);</span></div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSString</span> *documentsDir = [documentPaths <span style="color: #3d227f;">objectAtIndex</span>:<span style="color: #2934d5;">0</span>];</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #508186;">databasePath</span><span style="color: black;"> = [documentsDir </span>stringByAppendingPathComponent<span style="color: black;">:</span><span style="color: #508186;">databaseName</span><span style="color: black;">];</span></div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Execute the "checkAndCreateDatabase" function</div>
<div style="color: #33595d;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>checkAndCreateDatabase<span style="color: black;">];</span></div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Query the database for all animal records and construct the "animals" array</div>
<div style="color: #33595d;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>readAnimalsFromDatabase<span style="color: black;">];</span></div>
<div style="color: #33595d;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>checking<span style="color: black;">];</span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Configure and show the window</div>
<div style="color: #508186;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span>window<span style="color: black;"> </span><span style="color: #3d227f;">addSubview</span><span style="color: black;">:[</span>tabController<span style="color: black;"> </span><span style="color: #3d227f;">view</span><span style="color: black;">]];</span></div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #508186;">window</span><span style="color: black;"> </span>makeKeyAndVisible<span style="color: black;">];</span></div>
<div style="color: #b933a1;">
}</div>
<div style="color: #b933a1; min-height: 13px;">
<br /></div>
<div style="color: #b933a1;">
- (void)applicationWillTerminate:(<span style="color: #7041a7;">UIApplication</span> *)application {</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Save data if appropriate</div>
<div style="color: #b933a1;">
}</div>
<div style="color: #b933a1; min-height: 13px;">
<br /></div>
<div style="color: #b933a1;">
- (void)dealloc {</div>
<div style="color: #508186;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span>animals<span style="color: black;"> </span><span style="color: #3d227f;">release</span><span style="color: black;">];</span></div>
<div style="color: #508186;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span>tabController<span style="color: black;"> </span><span style="color: #3d227f;">release</span><span style="color: black;">];</span></div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #508186;">window</span><span style="color: black;"> </span>release<span style="color: black;">];</span></div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>dealloc<span style="color: black;">];</span></div>
<div style="color: #b933a1;">
}</div>
<div style="color: #b933a1; min-height: 13px;">
<br /></div>
<div style="color: #b933a1;">
-(void) checkAndCreateDatabase{</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Check if the SQL database has already been saved to the users phone, if not then copy it over</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>BOOL success;</div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Create a FileManager object, we will use this to check the status</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// of the database and to copy it over if required</div>
<div style="color: #7041a7;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>NSFileManager<span style="color: black;"> *fileManager = [</span>NSFileManager<span style="color: black;"> </span><span style="color: #3d227f;">defaultManager</span><span style="color: black;">];</span></div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Check if the database has already been created in the users filesystem</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>success = [fileManager <span style="color: #3d227f;">fileExistsAtPath</span>:<span style="color: #508186;">databasePath</span>];</div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// If the database already exists then return without doing anything</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>if(success) return;</div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// If not then proceed to copy the database from the application to the users filesystem</div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Get the path to the database in the application package</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *databasePathFromApp = [[[</span><span style="color: #7041a7;">NSBundle</span><span style="color: black;"> </span>mainBundle<span style="color: black;">] </span>resourcePath<span style="color: black;">] </span>stringByAppendingPathComponent<span style="color: black;">:</span><span style="color: #508186;">databaseName</span><span style="color: black;">];</span></div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Copy the database from the package to the users filesystem</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>[fileManager <span style="color: #3d227f;">copyItemAtPath</span>:databasePathFromApp <span style="color: #3d227f;">toPath</span>:<span style="color: #508186;">databasePath</span> <span style="color: #3d227f;">error</span>:nil];</div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>[fileManager <span style="color: #3d227f;">release</span>];</div>
<div style="color: #b933a1;">
}</div>
<div style="color: #b933a1; min-height: 13px;">
<br /></div>
<div style="color: #b933a1;">
-(void) readAnimalsFromDatabase {</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Setup the database object</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">sqlite3</span> *database;</div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Init the animals Array</div>
<div style="color: #7041a7;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>NSMutableArray<span style="color: black;"> *animals2 = [[</span>NSMutableArray<span style="color: black;"> </span><span style="color: #3d227f;">alloc</span><span style="color: black;">] </span><span style="color: #3d227f;">init</span><span style="color: black;">];</span></div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Open the database from the users filessytem</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>if(<span style="color: #3d227f;">sqlite3_open</span>([<span style="color: #508186;">databasePath</span> <span style="color: #3d227f;">UTF8String</span>], &database) == <span style="color: #77492d;">SQLITE_OK</span>) {</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Setup the SQL Statement and compile it for faster access</div>
<div style="color: #cf3125;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #b933a1;">const</span><span style="color: black;"> </span><span style="color: #b933a1;">char</span><span style="color: black;"> *sqlStatement = </span>"select * from Tips_Cat"<span style="color: black;">;</span></div>
<div style="color: #b933a1; min-height: 13px;">
</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">sqlite3_stmt</span> *compiledStatement;</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>if(<span style="color: #3d227f;">sqlite3_prepare_v2</span>(database, sqlStatement, -<span style="color: #2934d5;">1</span>, &compiledStatement, NULL) == <span style="color: #77492d;">SQLITE_OK</span>) {</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Loop through the results and add them to the feeds array</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>while(<span style="color: #3d227f;">sqlite3_step</span>(compiledStatement) == <span style="color: #77492d;">SQLITE_ROW</span>) {</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Read the data from the result row</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSString</span> *aName = [<span style="color: #7041a7;">NSString</span> <span style="color: #3d227f;">stringWithUTF8String</span>:(char *)<span style="color: #3d227f;">sqlite3_column_text</span>(compiledStatement, <span style="color: #2934d5;">1</span>)];</div>
<div style="color: #b933a1;">
<span style="color: #7041a7;">NSString</span> *aNameCount = [<span style="color: #7041a7;">NSString</span> <span style="color: #3d227f;">stringWithUTF8String</span>:(char *)<span style="color: #3d227f;">sqlite3_column_text</span>(compiledStatement, <span style="color: #2934d5;">3</span>)];</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Create a new animal object with the data from the database</div>
<div style="color: #b933a1;">
int d= [aNameCount <span style="color: #3d227f;">intValue</span>];</div>
<div style="color: #b933a1; min-height: 13px;">
</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #508186;">Animal</span> *animal = [[<span style="color: #508186;">Animal</span> <span style="color: #3d227f;">alloc</span>] <span style="color: #33595d;">initWithName</span>:aName <span style="color: #33595d;">and</span> :[<span style="color: #7041a7;">NSNumber</span> <span style="color: #3d227f;">numberWithInteger</span>:d]];</div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Add the animal object to the animals Array</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>[animals2 <span style="color: #3d227f;">addObject</span>:animal];</div>
<div style="color: #b933a1; min-height: 13px;">
</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>[animal <span style="color: #3d227f;">release</span>];</div>
<div style="color: #b933a1;">
}</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Release the compiled statement from memory</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #3d227f;">sqlite3_finalize</span>(compiledStatement);</div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>sqlite3_close<span style="color: black;">(database);</span></div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>self.<span style="color: #508186;">animals</span>=animals2;</div>
<div style="color: #b933a1;">
[animals2 <span style="color: #3d227f;">release</span>];</div>
<div style="color: #b933a1;">
}</div>
<div style="color: #b933a1; min-height: 13px;">
<br /></div>
<div style="color: #b933a1;">
-(void) checking</div>
<div style="color: #b933a1;">
{</div>
<div style="color: #b933a1;">
<span style="color: #7041a7;">sqlite3</span> *database;</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Open the database from the users filessytem</div>
<div style="color: #7041a7;">
<span style="color: black;"> </span>NSMutableArray<span style="color: black;"> *tempArray1 = [[</span>NSMutableArray<span style="color: black;"> </span><span style="color: #3d227f;">alloc</span><span style="color: black;">]</span><span style="color: #3d227f;">init</span><span style="color: black;">];</span></div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>if(<span style="color: #3d227f;">sqlite3_open</span>([<span style="color: #508186;">databasePath</span> <span style="color: #3d227f;">UTF8String</span>], &database) == <span style="color: #77492d;">SQLITE_OK</span>) {</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Setup the SQL Statement and compile it for faster access</div>
<div style="color: #cf3125;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #b933a1;">const</span><span style="color: black;"> </span><span style="color: #b933a1;">char</span><span style="color: black;"> *sqlStatement = </span>"select count(*) from Tips group by tip_cat_id"<span style="color: black;">;</span></div>
<div style="color: #b933a1; min-height: 13px;">
</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">sqlite3_stmt</span> *compiledStatement;</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>if(<span style="color: #3d227f;">sqlite3_prepare_v2</span>(database, sqlStatement, -<span style="color: #2934d5;">1</span>, &compiledStatement, NULL) == <span style="color: #77492d;">SQLITE_OK</span>) {</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Loop through the results and add them to the feeds array</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>while(<span style="color: #3d227f;">sqlite3_step</span>(compiledStatement) == <span style="color: #77492d;">SQLITE_ROW</span>) {</div>
<div style="color: #b933a1;">
<span style="color: #008212;">// sqlite3_col</span></div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>int d;</div>
<div style="color: #b933a1;">
d=<span style="color: #3d227f;">sqlite3_column_int</span>(compiledStatement,<span style="color: #2934d5;">0</span>);</div>
<div style="color: #008212;">
<span style="color: black;"> </span>//NSLog(@"count==%d",d);</div>
<div style="color: #b933a1;">
<span style="color: #7041a7;">NSNumber</span> *n1=[<span style="color: #7041a7;">NSNumber</span> <span style="color: #3d227f;">numberWithInteger</span>:d];</div>
<div style="color: #b933a1;">
[tempArray1 <span style="color: #3d227f;">addObject</span>:n1];</div>
<div style="color: #008212;">
<span style="color: black;"> </span>//[tempArray1 addobject:[NSNumber numberWithInteger:d]];</div>
<div style="color: #b933a1; min-height: 13px;">
</div>
<div style="color: #b933a1; min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>//NSLog(@"count==%d",countArray);</div>
<div style="color: #b933a1;">
}</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Release the compiled statement from memory</div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #3d227f;">sqlite3_finalize</span>(compiledStatement);</div>
<div style="color: #b933a1; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div style="color: #b933a1; min-height: 13px;">
</div>
<div style="color: #b933a1; min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>sqlite3_close<span style="color: black;">(database);</span></div>
<div style="color: #b933a1;">
<span class="Apple-tab-span" style="white-space: pre;"> </span>self.<span style="color: #508186;">countArray</span> = tempArray1;</div>
<div style="color: #b933a1;">
[tempArray1 <span style="color: #3d227f;">release</span>];</div>
<div style="color: #b933a1;">
}</div>
<div style="color: #b933a1; min-height: 13px;">
<br /></div>
<div style="color: #b933a1;">
@end</div>
<div style="color: #b933a1;">
<br /></div>
<div style="color: #b933a1;">
<br /></div>
Database<br />
<div style="color: #b933a1;">
<br /></div>
<div class="separator" style="clear: both; color: #b933a1; text-align: center;">
<a href="http://2.bp.blogspot.com/-nCLgOG6b9T8/UF_FpeOiBDI/AAAAAAAAAIM/qiiA0JaMoQw/s1600/Screen+Shot+2012-09-24+at+7.59.10+AM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="205" src="http://2.bp.blogspot.com/-nCLgOG6b9T8/UF_FpeOiBDI/AAAAAAAAAIM/qiiA0JaMoQw/s320/Screen+Shot+2012-09-24+at+7.59.10+AM.png" width="320" /></a></div>
<div class="separator" style="clear: both; color: #b933a1; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; color: #b933a1; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-QCCMkUvpir8/UF_GAZyubjI/AAAAAAAAAIU/e7Rd8ayJf5g/s1600/Screen+Shot+2012-09-24+at+8.01.07+AM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-QCCMkUvpir8/UF_GAZyubjI/AAAAAAAAAIU/e7Rd8ayJf5g/s320/Screen+Shot+2012-09-24+at+8.01.07+AM.png" width="294" /></a></div>
<div class="separator" style="clear: both; color: #b933a1; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; color: #b933a1; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; color: #b933a1; text-align: left;">
RootViewController.h</div>
<div class="separator" style="clear: both; color: #b933a1; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; color: #b933a1; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; color: #b933a1; text-align: left;">
</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span><UIKit/UIKit.h></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"AnimalViewController.h"</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"textController.h"</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"favoriteController.h"</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"CustomCell.h"</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span><sqlite3.h><span style="color: #77492d;"> </span></div>
<div style="min-height: 13px;">
<br /></div>
@interface RootViewController : <span style="color: #7041a7;">UITableViewController</span> {<br />
<div style="color: #508186;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>AnimalViewController<span style="color: black;"> *animalView;</span></div>
<span style="color: #7041a7;">NSString</span> *databaseName1;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSString</span> *databasePath1;<br />
<span style="color: #7041a7;">NSMutableArray</span> *sampleArray;<br />
int totCountView;<br />
IBOutlet <span style="color: #7041a7;">UIImageView</span> *navBarImage;<br />
IBOutlet <span style="color: #7041a7;">UIImageView</span> *bgImage;<br />
IBOutlet <span style="color: #7041a7;">UIImageView</span> *back1Image;<br />
IBOutlet <span style="color: #7041a7;">UIImageView</span> *back2Image;<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span><span style="color: #508186;">AnimalViewController</span><span style="color: black;"> *animalView; </span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">,</span>retain<span style="color: black;">)</span><span style="color: #7041a7;">NSMutableArray</span><span style="color: black;"> *sampleArray;</span><br />
-(<span style="color: #7041a7;">NSMutableArray</span> *) readAnimalsFromDatabase:(int)z;<br />
@property int totCountView;<br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UIImageView</span><span style="color: black;"> *navBarImage;</span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UIImageView</span><span style="color: black;"> *bgImage;</span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UIImageView</span><span style="color: black;"> *back1Image;</span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UIImageView</span><span style="color: black;"> *back2Image;</span><br />
@end<br />
<br />
<br />
RootViewController.m<br />
<br />
<br />
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"RootViewController.h"</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"SQLiteTutorialAppDelegate.h"</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"AnimalViewController.h"</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"textController.h"</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"Animal.h"</div>
<div style="min-height: 13px;">
<br /></div>
@implementation RootViewController<br />
<div style="min-height: 13px;">
<br /></div>
@synthesize animalView, sampleArray, totCountView, navBarImage, bgImage, back1Image, back2Image;<br />
<div style="min-height: 13px;">
<br /></div>
- (<span style="color: #7041a7;">NSInteger</span>)numberOfSectionsInTableView:(<span style="color: #7041a7;">UITableView</span> *)tableView {<br />
return <span style="color: #2934d5;">1</span>;<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (<span style="color: #7041a7;">NSInteger</span>)tableView:(<span style="color: #7041a7;">UITableView</span> *)tableView numberOfRowsInSection:(<span style="color: #7041a7;">NSInteger</span>)section {<br />
<div style="color: #508186;">
<span style="color: black;"> </span>SQLiteTutorialAppDelegate<span style="color: black;"> *appDelegate = (</span>SQLiteTutorialAppDelegate<span style="color: black;"> *)[[</span><span style="color: #7041a7;">UIApplication</span><span style="color: black;"> </span><span style="color: #3d227f;">sharedApplication</span><span style="color: black;">] </span><span style="color: #3d227f;">delegate</span><span style="color: black;">];</span></div>
<span style="color: #508186;">totCountView</span> = appDelegate.<span style="color: #508186;">animals</span>.<span style="color: #7041a7;">count</span>;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>return appDelegate.<span style="color: #508186;">animals</span>.<span style="color: #7041a7;">count</span>;<br />
<div style="min-height: 13px;">
</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
- (<span style="color: #7041a7;">CGFloat</span>)tableView:(<span style="color: #7041a7;">UITableView</span> *)tableView heightForRowAtIndexPath:(<span style="color: #7041a7;">NSIndexPath</span> *)indexPath<br />
{<br />
return <span style="color: #2934d5;">61</span>;<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (<span style="color: #7041a7;">UITableViewCell</span> *)tableView:(<span style="color: #7041a7;">UITableView</span> *)tableView cellForRowAtIndexPath:(<span style="color: #7041a7;">NSIndexPath</span> *)indexPath {<br />
<div style="min-height: 13px;">
<br /></div>
<div style="color: #508186;">
<span style="color: black;"> </span>SQLiteTutorialAppDelegate<span style="color: black;"> *appDelegate = (</span>SQLiteTutorialAppDelegate<span style="color: black;"> *)[[</span><span style="color: #7041a7;">UIApplication</span><span style="color: black;"> </span><span style="color: #3d227f;">sharedApplication</span><span style="color: black;">] </span><span style="color: #3d227f;">delegate</span><span style="color: black;">];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #508186;">Animal</span> *animal = (<span style="color: #508186;">Animal</span> *)[appDelegate.<span style="color: #508186;">animals</span> <span style="color: #3d227f;">objectAtIndex</span>:indexPath.<span style="color: #7041a7;">row</span>];<br />
<div style="min-height: 13px;">
</div>
<span style="color: #7041a7;">NSString</span> *displayText=[<span style="color: #7041a7;">NSString</span> <span style="color: #3d227f;">stringWithFormat</span>:<span style="color: #cf3125;">@"%@ (%d)"</span>,animal.<span style="color: #508186;">name</span>,[[appDelegate.<span style="color: #508186;">countArray</span> <span style="color: #3d227f;">objectAtIndex</span>:indexPath.<span style="color: #7041a7;">row</span>]<span style="color: #3d227f;">intValue</span>]];<br />
<span style="color: #508186;">CustomCell</span> *cellDisp = [[<span style="color: #508186;">CustomCell</span> <span style="color: #3d227f;">alloc</span>]<span style="color: #33595d;">initWithStyle</span>:<span style="color: #3d227f;">UITableViewCellStyleValue1</span> <span style="color: #33595d;">reuseIdentifier</span>:nil <span style="color: #33595d;">title</span>:displayText <span style="color: #33595d;">and</span>:indexPath.<span style="color: #7041a7;">row</span>];<br />
<div style="color: #7041a7;">
<span style="color: black;"> cellDisp.</span>backgroundColor<span style="color: black;">=[</span>UIColor<span style="color: black;"> </span><span style="color: #3d227f;">clearColor</span><span style="color: black;">];</span></div>
return cellDisp;<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
- (void)tableView:(<span style="color: #7041a7;">UITableView</span> *)tableView didSelectRowAtIndexPath:(<span style="color: #7041a7;">NSIndexPath</span> *)indexPath {<br />
<div style="color: #508186;">
<span style="color: black;"> </span>SQLiteTutorialAppDelegate<span style="color: black;"> *appDelegate = (</span>SQLiteTutorialAppDelegate<span style="color: black;"> *)[[</span><span style="color: #7041a7;">UIApplication</span><span style="color: black;"> </span><span style="color: #3d227f;">sharedApplication</span><span style="color: black;">] </span><span style="color: #3d227f;">delegate</span><span style="color: black;">];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #508186;">Animal</span> *animal = (<span style="color: #508186;">Animal</span> *)[appDelegate.<span style="color: #508186;">animals</span> <span style="color: #3d227f;">objectAtIndex</span>:indexPath.<span style="color: #7041a7;">row</span>];<br />
<div style="min-height: 13px;">
</div>
<div style="color: #508186;">
<span style="color: black;"> </span>AnimalViewController<span style="color: black;"> *viewController = [[</span>AnimalViewController<span style="color: black;"> </span><span style="color: #3d227f;">alloc</span><span style="color: black;">] </span><span style="color: #3d227f;">initWithNibName</span><span style="color: black;">:</span><span style="color: #cf3125;">@"AnimalViewController"</span><span style="color: black;"> </span><span style="color: #3d227f;">bundle</span><span style="color: black;">:</span><span style="color: #b933a1;">nil</span><span style="color: black;">];</span></div>
viewController.<span style="color: #508186;">accessArray</span>= [self <span style="color: #33595d;">readAnimalsFromDatabase</span>:indexPath.<span style="color: #7041a7;">row</span>+<span style="color: #2934d5;">1</span>];<br />
viewController.<span style="color: #508186;">printTitle</span> = animal.<span style="color: #508186;">name</span>;<br />
<div style="min-height: 13px;">
</div>
viewController.<span style="color: #508186;">totalCount</span> = [[appDelegate.<span style="color: #508186;">countArray</span> <span style="color: #3d227f;">objectAtIndex</span>:indexPath.<span style="color: #7041a7;">row</span>]<span style="color: #3d227f;">intValue</span>];<br />
<div style="min-height: 13px;">
</div>
[self.<span style="color: #7041a7;">navigationController</span> <span style="color: #3d227f;">pushViewController</span>:viewController <span style="color: #3d227f;">animated</span>:YES];<br />
[viewController <span style="color: #3d227f;">release</span>];<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (void)viewDidLoad<br />
{<br />
<div style="color: #cf3125;">
<span style="color: black;"> </span><span style="color: #508186;">databaseName1</span><span style="color: black;">=</span>@"Tips.sqlite"<span style="color: black;">;</span></div>
<div style="color: #7041a7;">
<span style="color: black;"> </span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>view<span style="color: black;">.</span>backgroundColor<span style="color: black;"> = [</span>UIColor<span style="color: black;"> </span><span style="color: #3d227f;">clearColor</span><span style="color: black;">];</span></div>
<div style="color: #008212;">
<span style="color: black;"> </span>// self.title = @"Quotes List";</div>
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">self</span><span style="color: black;">.</span><span style="color: #7041a7;">navigationController</span><span style="color: black;"> </span>setNavigationBarHidden<span style="color: black;">:</span><span style="color: #b933a1;">YES</span><span style="color: black;">];</span></div>
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #508186;">navBarImage</span><span style="color: black;"> = [[</span><span style="color: #7041a7;">UIImageView</span><span style="color: black;"> </span>alloc<span style="color: black;">]</span>initWithImage<span style="color: black;">:[</span><span style="color: #7041a7;">UIImage</span><span style="color: black;"> </span>imageNamed<span style="color: black;">:</span><span style="color: #cf3125;">@"topbg.png"</span><span style="color: black;">]];</span></div>
<div style="color: #7041a7;">
<span style="color: black;"> [</span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>navigationController<span style="color: black;">.</span>view<span style="color: black;"> </span><span style="color: #3d227f;">addSubview</span><span style="color: black;">:</span><span style="color: #508186;">navBarImage</span><span style="color: black;">]; </span></div>
<div style="color: #7041a7;">
<span style="color: black;"> </span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>view<span style="color: black;">.</span>frame<span style="color: black;"> = </span><span style="color: #3d227f;">CGRectMake</span><span style="color: black;">(</span><span style="color: #2934d5;">0</span><span style="color: black;">, </span><span style="color: #2934d5;">0</span><span style="color: black;">, </span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>view<span style="color: black;">.</span>frame<span style="color: black;">.</span>size<span style="color: black;">.</span>width<span style="color: black;">, </span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>view<span style="color: black;">.</span>frame<span style="color: black;">.</span>size<span style="color: black;">.</span>height<span style="color: black;">); </span></div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIColor</span><span style="color: black;"> *background = [[</span><span style="color: #7041a7;">UIColor</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithPatternImage<span style="color: black;">:[</span><span style="color: #7041a7;">UIImage</span><span style="color: black;"> </span>imageNamed<span style="color: black;">:</span><span style="color: #cf3125;">@"Bg.png"</span><span style="color: black;">]];</span></div>
self.<span style="color: #7041a7;">view</span>.<span style="color: #7041a7;">backgroundColor</span> = background;<br />
[background <span style="color: #3d227f;">release</span>];<br />
<div style="min-height: 13px;">
</div>
<span style="color: #7041a7;">UILabel</span> *label = [[<span style="color: #7041a7;">UILabel</span> <span style="color: #3d227f;">alloc</span>] <span style="color: #3d227f;">initWithFrame</span>:<span style="color: #3d227f;">CGRectMake</span>(<span style="color: #2934d5;">60</span>, <span style="color: #2934d5;">28</span>, <span style="color: #2934d5;">200</span>, <span style="color: #2934d5;">20</span>)];<br />
<div style="color: #7041a7;">
<span style="color: black;"> label.</span>backgroundColor<span style="color: black;"> = [</span>UIColor<span style="color: black;"> </span><span style="color: #3d227f;">clearColor</span><span style="color: black;">];</span></div>
label.<span style="color: #7041a7;">font</span> = [<span style="color: #7041a7;">UIFont</span> <span style="color: #3d227f;">boldSystemFontOfSize</span>:<span style="color: #2934d5;">20.0</span>];<br />
label.<span style="color: #7041a7;">shadowColor</span> = [<span style="color: #7041a7;">UIColor</span> <span style="color: #3d227f;">colorWithWhite</span>:<span style="color: #2934d5;">0.0</span> <span style="color: #3d227f;">alpha</span>:<span style="color: #2934d5;">0.5</span>];<br />
<div style="color: #3d227f;">
<span style="color: black;"> label.</span><span style="color: #7041a7;">textAlignment</span><span style="color: black;"> = </span>UITextAlignmentCenter<span style="color: black;">;</span></div>
label.<span style="color: #7041a7;">textColor</span> = [<span style="color: #7041a7;">UIColor</span> <span style="color: #3d227f;">whiteColor</span>];<br />
<div style="color: #7041a7;">
<span style="color: black;"> </span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>navigationItem<span style="color: black;">.</span>titleView<span style="color: black;"> = label;</span></div>
label.<span style="color: #7041a7;">text</span> = <span style="color: #cf3125;">@"Quote Book"</span>;<br />
<div style="color: #7041a7;">
<span style="color: black;"> [</span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>navigationController<span style="color: black;">.</span>view<span style="color: black;"> </span><span style="color: #3d227f;">addSubview</span><span style="color: black;">:label]; </span></div>
[label <span style="color: #3d227f;">release</span>];<br />
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>viewDidLoad<span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
-(<span style="color: #7041a7;">NSMutableArray</span> *) readAnimalsFromDatabase:(int)z<br />
{<br />
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Setup the database object</div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">sqlite3</span> *database;<br />
<span style="color: #7041a7;">NSMutableArray</span> *mutableArray = [[<span style="color: #7041a7;">NSMutableArray</span> <span style="color: #3d227f;">alloc</span> ]<span style="color: #3d227f;">init</span>];<br />
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Init the animals Array</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #7041a7;">NSArray</span><span style="color: black;"> *myArrayName = </span>NSSearchPathForDirectoriesInDomains<span style="color: black;">(</span>NSDocumentDirectory<span style="color: black;">, </span>NSUserDomainMask<span style="color: black;">, </span><span style="color: #b933a1;">YES</span><span style="color: black;">);</span></div>
<span style="color: #7041a7;">NSString</span> *documentsDir = [myArrayName <span style="color: #3d227f;">objectAtIndex</span>:<span style="color: #2934d5;">0</span>];<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #508186;">databasePath1</span><span style="color: black;"> = [documentsDir </span>stringByAppendingPathComponent<span style="color: black;">:</span><span style="color: #508186;">databaseName1</span><span style="color: black;">];</span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Open the database from the users filessytem</div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>if(<span style="color: #3d227f;">sqlite3_open</span>([<span style="color: #508186;">databasePath1</span> <span style="color: #3d227f;">UTF8String</span>], &database) == <span style="color: #77492d;">SQLITE_OK</span>) {<br />
<div style="color: #cf3125;">
<span style="color: black;"> </span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *stringName = [</span><span style="color: #7041a7;">NSString</span><span style="color: black;"> </span><span style="color: #3d227f;">stringWithFormat</span><span style="color: black;">:</span>@"SELECT tip_text FROM Tips where tip_cat_id=%d"<span style="color: black;">,z]; </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Setup the SQL Statement and compile it for faster access</div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>const char *sqlStatement = [stringName <span style="color: #3d227f;">UTF8String</span>];<br />
<span style="color: #7041a7;">sqlite3_stmt</span> *compiledStatement;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>if(<span style="color: #3d227f;">sqlite3_prepare_v2</span>(database, sqlStatement, -<span style="color: #2934d5;">1</span>, &compiledStatement, NULL) == <span style="color: #77492d;">SQLITE_OK</span>) {<br />
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Loop through the results and add them to the feeds array</div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>while(<span style="color: #3d227f;">sqlite3_step</span>(compiledStatement) == <span style="color: #77492d;">SQLITE_ROW</span>) {<br />
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Read the data from the result row</div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSString</span> *aName1 = [<span style="color: #7041a7;">NSString</span> <span style="color: #3d227f;">stringWithUTF8String</span>:(char *)<span style="color: #3d227f;">sqlite3_column_text</span>(compiledStatement, <span style="color: #2934d5;">0</span>)];<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
[mutableArray <span style="color: #3d227f;">addObject</span>:aName1];<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Release the compiled statement from memory </div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #3d227f;">sqlite3_finalize</span>(compiledStatement);<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>sqlite3_close<span style="color: black;">(database);</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>self.<span style="color: #508186;">sampleArray</span>=mutableArray;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>[mutableArray <span style="color: #3d227f;">release</span>];<br />
<div style="color: #508186;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #b933a1;">return</span><span style="color: black;"> </span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>sampleArray<span style="color: black;">;</span></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="color: #008212;">
/*</div>
<div style="color: #008212;">
// Override to support editing the list</div>
<div style="color: #008212;">
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {</div>
<div style="color: #008212; min-height: 13px;">
</div>
<div style="color: #008212;">
if (editingStyle == UITableViewCellEditingStyleDelete) {</div>
<div style="color: #008212;">
// Delete the row from the data source</div>
<div style="color: #008212;">
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];</div>
<div style="color: #008212;">
} </div>
<div style="color: #008212;">
if (editingStyle == UITableViewCellEditingStyleInsert) {</div>
<div style="color: #008212;">
// Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view</div>
<div style="color: #008212;">
} </div>
<div style="color: #008212;">
}</div>
<div style="color: #008212;">
*/</div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #008212;">
/*</div>
<div style="color: #008212;">
// Override to support conditional editing of the list</div>
<div style="color: #008212;">
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {</div>
<div style="color: #008212;">
// Return NO if you do not want the specified item to be editable.</div>
<div style="color: #008212;">
return YES;</div>
<div style="color: #008212;">
}</div>
<div style="color: #008212;">
*/</div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #008212;">
/*</div>
<div style="color: #008212;">
// Override to support rearranging the list</div>
<div style="color: #008212;">
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {</div>
<div style="color: #008212;">
}</div>
<div style="color: #008212;">
*/</div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #008212;">
/*</div>
<div style="color: #008212;">
// Override to support conditional rearranging of the list</div>
<div style="color: #008212;">
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {</div>
<div style="color: #008212;">
// Return NO if you do not want the item to be re-orderable.</div>
<div style="color: #008212;">
return YES;</div>
<div style="color: #008212;">
}</div>
<div style="color: #008212;">
*/</div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #008212;">
/*</div>
<div style="color: #008212;">
- (void)viewWillAppear:(BOOL)animated {</div>
<div style="color: #008212;">
[super viewWillAppear:animated];</div>
<div style="color: #008212;">
}</div>
<div style="color: #008212;">
*/</div>
<div style="color: #008212;">
/*</div>
<div style="color: #008212;">
- (void)viewDidAppear:(BOOL)animated {</div>
<div style="color: #008212;">
[super viewDidAppear:animated];</div>
<div style="color: #008212;">
}s</div>
<div style="color: #008212;">
*/</div>
<div style="color: #008212;">
/*</div>
<div style="color: #008212;">
- (void)viewWillDisappear:(BOOL)animated {</div>
<div style="color: #008212;">
}</div>
<div style="color: #008212;">
*/</div>
<div style="color: #008212;">
/*</div>
<div style="color: #008212;">
- (void)viewDidDisappear:(BOOL)animated {</div>
<div style="color: #008212;">
}</div>
<div style="color: #008212;">
*/</div>
<div style="min-height: 13px;">
<br /></div>
- (BOOL)shouldAutorotateToInterfaceOrientation:(<span style="color: #7041a7;">UIInterfaceOrientation</span>)interfaceOrientation {<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// Return YES for supported orientations</div>
return (interfaceOrientation == <span style="color: #3d227f;">UIInterfaceOrientationPortrait</span>);<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (void)didReceiveMemoryWarning {<br />
<div style="color: #008212;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span><span style="color: #3d227f;">didReceiveMemoryWarning</span><span style="color: black;">]; </span>// Releases the view if it doesn't have a superview</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Release anything that's not essential, such as cached data</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (void)dealloc {<br />
<div style="color: #508186;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span>animalView<span style="color: black;"> </span><span style="color: #3d227f;">release</span><span style="color: black;">];</span></div>
<div style="color: #508186;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span>sampleArray<span style="color: black;"> </span><span style="color: #3d227f;">release</span><span style="color: black;">];</span></div>
[super <span style="color: #3d227f;">dealloc</span>];<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
@end<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
CustomCell.h</div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// CustomCell.h</div>
<div style="color: #008212;">
// SQLiteTutorial</div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// Created by AEL DATA on 22/11/11.</div>
<div style="color: #008212;">
// Copyright 2011 __MyCompanyName__. All rights reserved.</div>
<div style="color: #008212;">
//</div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span><UIKit/UIKit.h></div>
<div style="min-height: 13px;">
<br /></div>
@interface CustomCell : <span style="color: #7041a7;">UITableViewCell</span>{<br />
<div style="min-height: 13px;">
<br /></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (id)initWithStyle:(<span style="color: #7041a7;">UITableViewCellStyle</span>)style reuseIdentifier:(<span style="color: #7041a7;">NSString</span> *)reuseIdentifier title:(<span style="color: #7041a7;">NSString</span>*)title and:(int)index;<br />
<div style="min-height: 13px;">
<br /></div>
@end<br />
<div>
<br /></div>
<div>
<br /></div>
<div>
CustomCell.m</div>
<div>
<br /></div>
<div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// CustomCell.m</div>
<div style="color: #008212;">
// SQLiteTutorial</div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// Created by AEL DATA on 22/11/11.</div>
<div style="color: #008212;">
// Copyright 2011 __MyCompanyName__. All rights reserved.</div>
<div style="color: #008212;">
//</div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"CustomCell.h"</div>
<div style="min-height: 13px;">
<br /></div>
@implementation<span style="color: black;"> CustomCell</span><br />
<div style="min-height: 13px;">
<br /></div>
- (id)initWithStyle:(<span style="color: #7041a7;">UITableViewCellStyle</span>)style reuseIdentifier:(<span style="color: #7041a7;">NSString</span> *)reuseIdentifier title:(<span style="color: #7041a7;">NSString</span>*)title and:(int)index{<br />
<div style="min-height: 13px;">
</div>
self = [super <span style="color: #3d227f;">initWithStyle</span>:style <span style="color: #3d227f;">reuseIdentifier</span>:reuseIdentifier];<br />
if (self!=nil){<br />
<span style="color: #7041a7;">UIImageView</span> *image =[[<span style="color: #7041a7;">UIImageView</span> <span style="color: #3d227f;">alloc</span>]<span style="color: #3d227f;">initWithFrame</span>:<span style="color: #3d227f;">CGRectMake</span>(<span style="color: #2934d5;">0</span>,<span style="color: #2934d5;">0</span>,<span style="color: #2934d5;">320</span>,<span style="color: #2934d5;">61</span>)];<br />
<span style="color: #7041a7;">UIImage</span> *setImage = (index%<span style="color: #2934d5;">2</span>==<span style="color: #2934d5;">0</span>)?[<span style="color: #7041a7;">UIImage</span> <span style="color: #3d227f;">imageNamed</span>:<span style="color: #cf3125;">@"tile1.png"</span>]:[<span style="color: #7041a7;">UIImage</span> <span style="color: #3d227f;">imageNamed</span>:<span style="color: #cf3125;">@"tile2.png"</span>];<br />
image.<span style="color: #7041a7;">image</span> = setImage;<br />
[self <span style="color: #3d227f;">addSubview</span>:image];<br />
[image <span style="color: #3d227f;">release</span>];<br />
<div style="min-height: 13px;">
</div>
<span style="color: #7041a7;">UILabel</span> *imagelabel = [[<span style="color: #7041a7;">UILabel</span> <span style="color: #3d227f;">alloc</span>]<span style="color: #3d227f;">initWithFrame</span>:<span style="color: #3d227f;">CGRectMake</span>(<span style="color: #2934d5;">0</span>,<span style="color: #2934d5;">0</span>,self.<span style="color: #7041a7;">frame</span>.<span style="color: #7041a7;">size</span>.<span style="color: #7041a7;">width</span>,<span style="color: #2934d5;">50</span>)];<br />
imagelabel.<span style="color: #7041a7;">backgroundColor</span>=[<span style="color: #7041a7;">UIColor</span> <span style="color: #3d227f;">clearColor</span>];<br />
imagelabel.<span style="color: #7041a7;">text</span> = title;<br />
[self <span style="color: #3d227f;">addSubview</span>:imagelabel];<br />
[imagelabel <span style="color: #3d227f;">release</span>];<br />
}<br />
<span style="color: black;"> </span>return<span style="color: black;"> </span>self<span style="color: black;">;</span><br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
</div>
- (void)setSelected:(BOOL)selected animated:(BOOL)animated<br />
{<br />
[super <span style="color: #3d227f;">setSelected</span>:selected <span style="color: #3d227f;">animated</span>:animated];<br />
<div style="min-height: 13px;">
<br /></div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Configure the view for the selected state</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
@end</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Animal.h</div>
<div>
<br /></div>
<div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span><UIKit/UIKit.h></div>
<div style="min-height: 13px;">
<br /></div>
@interface Animal : <span style="color: #7041a7;">NSObject</span> {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSString</span> *name;<br />
<span style="color: #7041a7;">NSNumber</span> *nameCount;<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;"> (</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *name;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span><span style="color: #7041a7;">NSNumber</span><span style="color: black;"> *nameCount;</span><br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
-(id)initWithName:(<span style="color: #7041a7;">NSString</span> *)n and :(<span style="color: #7041a7;">NSNumber</span> *)a;<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
@end</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Animal.m</div>
<div>
<br /></div>
<div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"Animal.h"</div>
<div style="min-height: 13px;">
<br /></div>
@implementation<span style="color: black;"> Animal</span><br />
@synthesize<span style="color: black;"> name;</span><br />
@synthesize nameCount;<br />
<div style="min-height: 13px;">
<br /></div>
-(id)initWithName:(<span style="color: #7041a7;">NSString</span> *)n and :(<span style="color: #7041a7;">NSNumber</span> *)a{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>self.<span style="color: #508186;">name</span> = n;<br />
self.<span style="color: #508186;">nameCount</span> = a;<br />
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>return<span style="color: black;"> </span>self<span style="color: black;">;</span><br />
}<br />
-(void)dealloc<br />
{<br />
[super <span style="color: #3d227f;">dealloc</span>];<br />
[<span style="color: #508186;">name</span> <span style="color: #3d227f;">release</span>];<br />
<div style="color: #508186;">
<span style="color: black;"> [</span>nameCount<span style="color: black;"> </span><span style="color: #3d227f;">release</span><span style="color: black;">];</span></div>
}<br />
@end</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
AnimalViewController.h</div>
<div>
<br /></div>
<div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span><UIKit/UIKit.h></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span><sqlite3.h><span style="color: #77492d;"> </span></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"CustomCell.h"</div>
<div style="min-height: 13px;">
<br /></div>
@interface AnimalViewController : <span style="color: #7041a7;">UIViewController</span> {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>IBOutlet <span style="color: #7041a7;">UITableView</span> *Desciption;<br />
<span style="color: #7041a7;">NSMutableArray</span> *accessArray;<br />
<span style="color: #7041a7;">NSString</span> *printTitle;<br />
<div style="min-height: 13px;">
</div>
int totalCount;<br />
<div style="min-height: 13px;">
</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;"> (</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UITableView</span><span style="color: black;"> *Desciption;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">,</span>retain<span style="color: black;">) </span><span style="color: #7041a7;">NSMutableArray</span><span style="color: black;"> *accessArray;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">,</span>retain<span style="color: black;">) </span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *printTitle;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property int totalCount;<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
@end<br />
<br />
AnimalViewController.m<br />
<br />
<br />
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"AnimalViewController.h"</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"textController.h"</div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
@implementation AnimalViewController<br />
<div style="min-height: 13px;">
<br /></div>
@synthesize Desciption;<br />
<div style="min-height: 13px;">
<br /></div>
@synthesize accessArray, printTitle, totalCount;<br />
<div style="color: #008212;">
/*</div>
<div style="color: #008212;">
// Override initWithNibName:bundle: to load the view using a nib file then perform additional customization that is not appropriate for viewDidLoad.</div>
<div style="color: #008212;">
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {</div>
<div style="color: #008212;">
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {</div>
<div style="color: #008212;">
// Custom initialization</div>
<div style="color: #008212;">
}</div>
<div style="color: #008212;">
return self;</div>
<div style="color: #008212;">
}</div>
<div style="color: #008212;">
*/<span style="color: black;"> </span></div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #008212;">
/*</div>
<div style="color: #008212;">
// Implement loadView to create a view hierarchy programmatically.</div>
<div style="color: #008212;">
- (void)loadView {</div>
<div style="color: #008212;">
}</div>
<div style="color: #008212;">
*/</div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #008212;">
// Implement viewDidLoad to do additional setup after loading the view.</div>
- (void)viewDidLoad<br />
{<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// self.title = printTitle;</div>
<div style="min-height: 13px;">
</div>
<span style="color: #7041a7;">UIImageView</span> *back1Image = [[<span style="color: #7041a7;">UIImageView</span> <span style="color: #3d227f;">alloc</span>]<span style="color: #3d227f;">initWithImage</span>:[<span style="color: #7041a7;">UIImage</span> <span style="color: #3d227f;">imageNamed</span>:<span style="color: #cf3125;">@"back1.png"</span>]];<br />
<div style="color: #7041a7;">
<span style="color: black;"> [</span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>navigationController<span style="color: black;">.</span>view<span style="color: black;"> </span><span style="color: #3d227f;">addSubview</span><span style="color: black;">:back1Image]; </span></div>
<div style="color: #7041a7;">
<span style="color: black;"> </span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>view<span style="color: black;">.</span>frame<span style="color: black;"> = </span><span style="color: #3d227f;">CGRectMake</span><span style="color: black;">(</span><span style="color: #2934d5;">300</span><span style="color: black;">, </span><span style="color: #2934d5;">300</span><span style="color: black;">, </span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>view<span style="color: black;">.</span>frame<span style="color: black;">.</span>size<span style="color: black;">.</span>width<span style="color: black;">, </span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>view<span style="color: black;">.</span>frame<span style="color: black;">.</span>size<span style="color: black;">.</span>height<span style="color: black;">); </span></div>
[back1Image <span style="color: #3d227f;">release</span>];<br />
<div style="min-height: 13px;">
</div>
<span style="color: #7041a7;">UILabel</span> *label = [[<span style="color: #7041a7;">UILabel</span> <span style="color: #3d227f;">alloc</span>] <span style="color: #3d227f;">initWithFrame</span>:<span style="color: #3d227f;">CGRectMake</span>(<span style="color: #2934d5;">60</span>, <span style="color: #2934d5;">28</span>, <span style="color: #2934d5;">200</span>, <span style="color: #2934d5;">20</span>)];<br />
<div style="color: #7041a7;">
<span style="color: black;"> label.</span>backgroundColor<span style="color: black;"> = [</span>UIColor<span style="color: black;"> </span><span style="color: #3d227f;">clearColor</span><span style="color: black;">];</span></div>
<div style="color: #3d227f;">
<span style="color: black;"> label.</span><span style="color: #7041a7;">font</span><span style="color: black;"> = [</span><span style="color: #7041a7;">UIFont</span><span style="color: black;"> </span>boldSystemFontOfSize<span style="color: black;">:</span><span style="color: #2934d5;">20.0</span><span style="color: black;">];</span></div>
label.<span style="color: #7041a7;">shadowColor</span> = [<span style="color: #7041a7;">UIColor</span> <span style="color: #3d227f;">colorWithWhite</span>:<span style="color: #2934d5;">0.0</span> <span style="color: #3d227f;">alpha</span>:<span style="color: #2934d5;">0.5</span>];<br />
<div style="color: #3d227f;">
<span style="color: black;"> label.</span><span style="color: #7041a7;">textAlignment</span><span style="color: black;"> = </span>UITextAlignmentCenter<span style="color: black;">;</span></div>
label.<span style="color: #7041a7;">textColor</span> = [<span style="color: #7041a7;">UIColor</span> <span style="color: #3d227f;">whiteColor</span>];<br />
<div style="color: #7041a7;">
<span style="color: black;"> </span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>navigationItem<span style="color: black;">.</span>titleView<span style="color: black;"> = label;</span></div>
label.<span style="color: #7041a7;">text</span> = <span style="color: #508186;">printTitle</span>;<br />
<div style="color: #7041a7;">
<span style="color: black;"> [</span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>navigationController<span style="color: black;">.</span>view<span style="color: black;"> </span><span style="color: #3d227f;">addSubview</span><span style="color: black;">:label]; </span></div>
[label <span style="color: #3d227f;">release</span>];<br />
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIColor</span><span style="color: black;"> *background = [[</span><span style="color: #7041a7;">UIColor</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithPatternImage<span style="color: black;">:[</span><span style="color: #7041a7;">UIImage</span><span style="color: black;"> </span>imageNamed<span style="color: black;">:</span><span style="color: #cf3125;">@"Bg.png"</span><span style="color: black;">]];</span></div>
self.<span style="color: #7041a7;">view</span>.<span style="color: #7041a7;">backgroundColor</span> = background;<br />
[background <span style="color: #3d227f;">release</span>];<br />
<div style="min-height: 13px;">
<br /></div>
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>viewDidLoad<span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
- (void)tableView:(<span style="color: #7041a7;">UITableView</span> *)tableView didSelectRowAtIndexPath:(<span style="color: #7041a7;">NSIndexPath</span> *)indexPath {<br />
<span style="color: #508186;">textController</span> *viewController = [[<span style="color: #508186;">textController</span> <span style="color: #3d227f;">alloc</span>] <span style="color: #3d227f;">initWithNibName</span>:<span style="color: #cf3125;">@"textController"</span> <span style="color: #3d227f;">bundle</span>:nil];<br />
viewController.<span style="color: #508186;">printState</span>= [<span style="color: #508186;">accessArray</span> <span style="color: #3d227f;">objectAtIndex</span>:indexPath.<span style="color: #7041a7;">row</span>];<br />
viewController.<span style="color: #508186;">printArray</span>= <span style="color: #508186;">accessArray</span>;<br />
viewController.<span style="color: #508186;">count</span> = indexPath.<span style="color: #7041a7;">row</span>; <br />
<div style="min-height: 13px;">
</div>
viewController.<span style="color: #508186;">totalCount1</span> = <span style="color: #508186;">totalCount</span>;<br />
<div style="min-height: 13px;">
</div>
[self.<span style="color: #7041a7;">navigationController</span> <span style="color: #3d227f;">pushViewController</span>:viewController <span style="color: #3d227f;">animated</span>:YES];<br />
[viewController <span style="color: #3d227f;">release</span>];<br />
<div style="min-height: 13px;">
</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (BOOL)shouldAutorotateToInterfaceOrientation:(<span style="color: #7041a7;">UIInterfaceOrientation</span>)interfaceOrientation {<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// Return YES for supported orientations</div>
return (interfaceOrientation == <span style="color: #3d227f;">UIInterfaceOrientationPortrait</span>);<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (void)didReceiveMemoryWarning {<br />
<div style="color: #008212;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span><span style="color: #3d227f;">didReceiveMemoryWarning</span><span style="color: black;">]; </span>// Releases the view if it doesn't have a superview</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Release anything that's not essential, such as cached data</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (void)dealloc {<br />
[super <span style="color: #3d227f;">dealloc</span>];<br />
<div style="color: #508186;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span>Desciption<span style="color: black;"> </span><span style="color: #3d227f;">release</span><span style="color: black;">];</span></div>
<div style="color: #508186;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span>accessArray<span style="color: black;"> </span><span style="color: #3d227f;">release</span><span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
- (<span style="color: #7041a7;">NSInteger</span>)numberOfSectionsInTableView:(<span style="color: #7041a7;">UITableView</span> *)tableView {<br />
return <span style="color: #2934d5;">61</span>;<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
</div>
- (<span style="color: #7041a7;">NSInteger</span>)tableView:(<span style="color: #7041a7;">UITableView</span> *)tableView numberOfRowsInSection:(<span style="color: #7041a7;">NSInteger</span>)section {<br />
<div style="color: #508186;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #b933a1;">return</span><span style="color: black;"> [</span>accessArray<span style="color: black;"> </span><span style="color: #3d227f;">count</span><span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (<span style="color: #7041a7;">UITableViewCell</span> *)tableView:(<span style="color: #7041a7;">UITableView</span> *)tableView cellForRowAtIndexPath:(<span style="color: #7041a7;">NSIndexPath</span> *)indexPath {<br />
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"> </span>/* static NSString *CellIdentifier = @"Cell";</div>
<div style="color: #008212; min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];</div>
<div style="color: #008212;">
if (cell == nil) {</div>
<div style="color: #008212;">
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];</div>
<div style="color: #008212;">
} */</div>
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<span style="color: #7041a7;">NSString</span> *displayText = [<span style="color: #508186;">accessArray</span> <span style="color: #3d227f;">objectAtIndex</span>:indexPath.<span style="color: #7041a7;">row</span>];<br />
<span style="color: #508186;">CustomCell</span> *cellDisp = [[<span style="color: #508186;">CustomCell</span> <span style="color: #3d227f;">alloc</span>]<span style="color: #33595d;">initWithStyle</span>:<span style="color: #3d227f;">UITableViewCellStyleValue1</span> <span style="color: #33595d;">reuseIdentifier</span>:nil <span style="color: #33595d;">title</span>:displayText <span style="color: #33595d;">and</span>:indexPath.<span style="color: #7041a7;">row</span>];<br />
<div style="color: #7041a7;">
<span style="color: black;"> cellDisp.</span>backgroundColor<span style="color: black;">=[</span>UIColor<span style="color: black;"> </span><span style="color: #3d227f;">clearColor</span><span style="color: black;">];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>return cellDisp;<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
@end<br />
<div>
<br /></div>
<div>
<br /></div>
<div>
textViewController.h</div>
<div>
<br /></div>
<div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// textController.h</div>
<div style="color: #008212;">
// SQLiteTutorial</div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// Created by AEL DATA on 01/11/11.</div>
<div style="color: #008212;">
// Copyright 2011 __MyCompanyName__. All rights reserved.</div>
<div style="color: #008212;">
//</div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span><UIKit/UIKit.h></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span><sqlite3.h></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span><MessageUI/MFMessageComposeViewController.h></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span><MessageUI/MFMailComposeViewController.h></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #7041a7;">
<span style="color: #b933a1;">@interface</span><span style="color: black;"> textController : </span>UIViewController<span style="color: black;"> <</span>UIAlertViewDelegate<span style="color: black;">></span></div>
{<br />
<span style="color: #7041a7;">NSString</span> *printState;<br />
IBOutlet <span style="color: #7041a7;">UITextView</span> *textView;<br />
IBOutlet <span style="color: #7041a7;">UITextField</span> *textCountView;<br />
<span style="color: #7041a7;">NSArray</span> *textArray;<br />
<span style="color: #7041a7;">NSString</span> *txtCntrlr;<br />
<span style="color: #7041a7;">NSArray</span> *printArray;<br />
<span style="color: #7041a7;">NSString</span> *tCount;<br />
<div style="min-height: 13px;">
</div>
int totalCount1;<br />
int count;<br />
<div style="min-height: 13px;">
</div>
IBOutlet <span style="color: #7041a7;">UIButton</span> *smsBtn;<br />
IBOutlet <span style="color: #7041a7;">UIButton</span> *mailBtn;<br />
IBOutlet <span style="color: #7041a7;">UIButton</span> *favBtn;<br />
IBOutlet <span style="color: #7041a7;">UIButton</span> *remvefavBtn;<br />
<div style="min-height: 13px;">
</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;"> (</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *printState;</span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UITextView</span><span style="color: black;"> *textView;</span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UITextField</span><span style="color: black;"> *textCountView;</span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span><span style="color: #7041a7;">NSArray</span><span style="color: black;"> *textArray;</span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *txtCntrlr;</span><br />
@property<span style="color: black;"> (</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span><span style="color: #7041a7;">NSArray</span><span style="color: black;"> *printArray;</span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UIButton</span><span style="color: black;"> *smsBtn;</span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UIButton</span><span style="color: black;"> *mailBtn;</span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UIButton</span><span style="color: black;"> *favBtn;</span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *tCount;</span><br />
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UIButton</span><span style="color: black;"> *remvefavBtn;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property int totalCount1;<br />
@property<span style="color: black;"> </span>int<span style="color: black;"> count;</span><br />
<div style="min-height: 13px;">
<br /></div>
- (IBAction)smsbuttonPressed:(id)sender;<br />
- (IBAction)mailbuttonPressed:(id)sender;<br />
- (IBAction)favbuttonPressed:(id)sender;<br />
-(IBAction)remvefavBtnPressed:(id)sender;<br />
<div style="min-height: 13px;">
<br /></div>
-(void)displayComposerSheet;<br />
-(void)launchMailAppOnDevice;<br />
<div style="min-height: 13px;">
<br /></div>
@end</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
textViewController.m</div>
<div>
<br /></div>
<div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// textController.m</div>
<div style="color: #008212;">
// SQLiteTutorial</div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// Created by AEL DATA on 01/11/11.</div>
<div style="color: #008212;">
// Copyright 2011 __MyCompanyName__. All rights reserved.</div>
<div style="color: #008212;">
//</div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"textController.h"</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"favoriteController.h"</div>
<div style="min-height: 13px;">
<br /></div>
@implementation textController<br />
<div style="min-height: 13px;">
<br /></div>
@synthesize printState;<br />
<div style="min-height: 13px;">
<br /></div>
@synthesize textView, textCountView, textArray, txtCntrlr, printArray, count, smsBtn, mailBtn, favBtn, totalCount1, tCount;<br />
<div style="min-height: 13px;">
<br /></div>
- (id)initWithNibName:(<span style="color: #7041a7;">NSString</span> *)nibNameOrNil bundle:(<span style="color: #7041a7;">NSBundle</span> *)nibBundleOrNil<br />
{<br />
self = [super <span style="color: #3d227f;">initWithNibName</span>:nibNameOrNil <span style="color: #3d227f;">bundle</span>:nibBundleOrNil];<br />
if (self) {<br />
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Custom initialization</div>
}<br />
<span style="color: black;"> </span>return<span style="color: black;"> </span>self<span style="color: black;">;</span><br />
}<br />
- (void)didReceiveMemoryWarning<br />
{<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// Releases the view if it doesn't have a superview.</div>
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>didReceiveMemoryWarning<span style="color: black;">];</span></div>
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Release any cached data, images, etc that aren't in use.</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="color: #77492d;">
#pragma mark - View lifecycle</div>
<div style="min-height: 13px;">
<br /></div>
- (void)viewDidLoad<br />
{<br />
<div style="color: #508186;">
<span style="color: black;"> </span>textView<span style="color: black;">.</span><span style="color: #7041a7;">text</span><span style="color: black;"> = </span>printState<span style="color: black;">;</span></div>
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIColor</span><span style="color: black;"> *background = [[</span><span style="color: #7041a7;">UIColor</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithPatternImage<span style="color: black;">:[</span><span style="color: #7041a7;">UIImage</span><span style="color: black;"> </span>imageNamed<span style="color: black;">:</span><span style="color: #cf3125;">@"Bg.png"</span><span style="color: black;">]];</span></div>
self.<span style="color: #7041a7;">view</span>.<span style="color: #7041a7;">backgroundColor</span> = background;<br />
[background <span style="color: #3d227f;">release</span>];<br />
<div style="min-height: 13px;">
</div>
<span style="color: #7041a7;">NSString</span> *countStr = [[<span style="color: #7041a7;">NSNumber</span> <span style="color: #3d227f;">numberWithInt</span>:<span style="color: #508186;">count</span>+<span style="color: #2934d5;">1</span>] <span style="color: #3d227f;">stringValue</span>];<br />
<div style="min-height: 13px;">
</div>
<span style="color: #7041a7;">NSString</span> *totCountStr = [[<span style="color: #7041a7;">NSNumber</span> <span style="color: #3d227f;">numberWithInt</span>:<span style="color: #508186;">totalCount1</span>] <span style="color: #3d227f;">stringValue</span>];<br />
<span style="color: #508186;">tCount</span> = [[<span style="color: #7041a7;">NSString</span> <span style="color: #3d227f;">alloc</span>]<span style="color: #3d227f;">initWithString</span>:totCountStr];<br />
<div style="min-height: 13px;">
</div>
<span style="color: #508186;">textCountView</span>.<span style="color: #7041a7;">text</span> =[<span style="color: #7041a7;">NSString</span> <span style="color: #3d227f;">stringWithFormat</span>:<span style="color: #cf3125;">@"%@ / %@"</span>,countStr,<span style="color: #508186;">tCount</span>];<br />
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// -----------------------------</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// One finger, swipe Left</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// -----------------------------</div>
<div style="min-height: 13px;">
</div>
<span style="color: #7041a7;">UISwipeGestureRecognizer</span> *oneFingerSwipeUp =<br />
<div style="color: #3d227f;">
<span style="color: black;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>[[[</span><span style="color: #7041a7;">UISwipeGestureRecognizer</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithTarget<span style="color: black;">:</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>action<span style="color: black;">:</span><span style="color: #b933a1;">@selector</span><span style="color: black;">(oneFingerSwipeUp:)] </span>autorelease<span style="color: black;">];</span></div>
<div style="color: #3d227f;">
<span style="color: black;"> [oneFingerSwipeUp </span>setDirection<span style="color: black;">:</span>UISwipeGestureRecognizerDirectionLeft<span style="color: black;">];</span></div>
[[self <span style="color: #3d227f;">view</span>] <span style="color: #3d227f;">addGestureRecognizer</span>:oneFingerSwipeUp];<br />
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// -----------------------------</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// One finger, swipe Right</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// -----------------------------</div>
<span style="color: #7041a7;">UISwipeGestureRecognizer</span> *oneFingerSwipeDown =<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>[[[<span style="color: #7041a7;">UISwipeGestureRecognizer</span> <span style="color: #3d227f;">alloc</span>] <span style="color: #3d227f;">initWithTarget</span>:self <span style="color: #3d227f;">action</span>:@selector(oneFingerSwipeDown:)] <span style="color: #3d227f;">autorelease</span>];<br />
<div style="color: #3d227f;">
<span style="color: black;"> [oneFingerSwipeDown </span>setDirection<span style="color: black;">:</span>UISwipeGestureRecognizerDirectionRight<span style="color: black;">];</span></div>
<div style="min-height: 13px;">
</div>
[[self <span style="color: #3d227f;">view</span>] <span style="color: #3d227f;">addGestureRecognizer</span>:oneFingerSwipeDown];<br />
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>viewDidLoad<span style="color: black;">];</span></div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Do any additional setup after loading the view from its nib.</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
- (void)oneFingerSwipeUp:(<span style="color: #7041a7;">UISwipeGestureRecognizer</span> *)recognizer<br />
{<br />
<div style="color: #508186;">
<span style="color: black;"> </span><span style="color: #b933a1;">if</span><span style="color: black;">(</span>count<span style="color: black;"><[</span>printArray<span style="color: black;"> </span><span style="color: #3d227f;">count</span><span style="color: black;">]-</span><span style="color: #2934d5;">1</span><span style="color: black;">)</span></div>
{<br />
<span style="color: #508186;">count</span>++;<br />
<span style="color: #7041a7;">NSString</span> *countStr = [[<span style="color: #7041a7;">NSNumber</span> <span style="color: #3d227f;">numberWithInt</span>:<span style="color: #508186;">count</span>+<span style="color: #2934d5;">1</span>] <span style="color: #3d227f;">stringValue</span>];<br />
<span style="color: #508186;">textCountView</span>.<span style="color: #7041a7;">text</span> =[<span style="color: #7041a7;">NSString</span> <span style="color: #3d227f;">stringWithFormat</span>:<span style="color: #cf3125;">@"%@ / %@"</span>,countStr,<span style="color: #508186;">tCount</span>];<br />
<div style="min-height: 13px;">
<br /></div>
<div style="color: #008212;">
<span style="color: black;"> </span>//[self fadeInFromFadeOut:textView withDuration:2]; </div>
<div style="color: #508186;">
<span style="color: black;"> </span>textView<span style="color: black;">.</span><span style="color: #7041a7;">text</span><span style="color: black;">= [</span>printArray<span style="color: black;"> </span><span style="color: #3d227f;">objectAtIndex</span><span style="color: black;">:</span>count<span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>//CGPoint point = [recognizer locationInView:[self view]];</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// NSLog(@"Swipe up - start location: %f,%f", point.x, point.y);</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
- (void)oneFingerSwipeDown:(<span style="color: #7041a7;">UISwipeGestureRecognizer</span> *)recognizer<br />
{<br />
if(<span style="color: #508186;">count</span>>=<span style="color: #2934d5;">1</span>)<br />
{<br />
<span style="color: #7041a7;">NSString</span> *countStr = [[<span style="color: #7041a7;">NSNumber</span> <span style="color: #3d227f;">numberWithInt</span>:<span style="color: #508186;">count</span>] <span style="color: #3d227f;">stringValue</span>];<br />
<span style="color: #508186;">textCountView</span>.<span style="color: #7041a7;">text</span> =[<span style="color: #7041a7;">NSString</span> <span style="color: #3d227f;">stringWithFormat</span>:<span style="color: #cf3125;">@"%@ / %@"</span>,countStr,<span style="color: #508186;">tCount</span>];<br />
<span style="color: #508186;">count</span>--;<br />
<div style="color: #008212;">
<span style="color: black;"> </span>//[self fadeInFromFadeOut:textView withDuration:2];</div>
<div style="color: #508186;">
<span style="color: black;"> </span>textView<span style="color: black;">.</span><span style="color: #7041a7;">text</span><span style="color: black;">= [</span>printArray<span style="color: black;"> </span><span style="color: #3d227f;">objectAtIndex</span><span style="color: black;">:</span>count<span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>//CGPoint point = [recognizer locationInView:[self view]];</div>
<div style="color: #008212;">
<span style="color: black;"> </span>//NSLog(@"Swipe down - start location: %f,%f", point.x, point.y);</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
-(void)fadeOut:(<span style="color: #7041a7;">UIView</span>*)viewToDissolve withDuration:(<span style="color: #7041a7;">NSTimeInterval</span>)duration andWait:(<span style="color: #7041a7;">NSTimeInterval</span>)wait<br />
{<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>beginAnimations<span style="color: black;">: </span><span style="color: #cf3125;">@"Fade Out"</span><span style="color: black;"> </span>context<span style="color: black;">:</span><span style="color: #b933a1;">nil</span><span style="color: black;">];</span></div>
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// wait for time before begin</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>setAnimationDelay<span style="color: black;">:wait];</span></div>
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// duration of animation</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>setAnimationDuration<span style="color: black;">:duration];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>viewToDissolve.<span style="color: #7041a7;">alpha</span> = <span style="color: #2934d5;">0.0</span>;<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>commitAnimations<span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
-(void)fadeIn:(<span style="color: #7041a7;">UIView</span>*)viewToFadeIn withDuration:(<span style="color: #7041a7;">NSTimeInterval</span>)duration <span class="Apple-tab-span" style="white-space: pre;"> </span> andWait:(<span style="color: #7041a7;">NSTimeInterval</span>)wait<br />
{<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>beginAnimations<span style="color: black;">: </span><span style="color: #cf3125;">@"Fade In"</span><span style="color: black;"> </span>context<span style="color: black;">:</span><span style="color: #b933a1;">nil</span><span style="color: black;">];</span></div>
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// wait for time before begin</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>setAnimationDelay<span style="color: black;">:wait];</span></div>
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// druation of animation</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>setAnimationDuration<span style="color: black;">:duration];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>viewToFadeIn.<span style="color: #7041a7;">alpha</span> = <span style="color: #2934d5;">1</span>;<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>commitAnimations<span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
-(void) fadeInFromFadeOut: (<span style="color: #7041a7;">UIView</span>*)viewToFadeIn withDuration:(<span style="color: #7041a7;">NSTimeInterval</span>)duration<br />
{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>viewToFadeIn.<span style="color: #7041a7;">hidden</span>=NO;<br />
<div style="color: #33595d;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>fadeOut<span style="color: black;">:viewToFadeIn </span>withDuration<span style="color: black;">:</span><span style="color: #2934d5;">1</span><span style="color: black;"> </span>andWait<span style="color: black;">:</span><span style="color: #2934d5;">0.2</span><span style="color: black;">];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>[self <span style="color: #33595d;">fadeIn</span>:viewToFadeIn <span style="color: #33595d;">withDuration</span>:duration <span style="color: #33595d;">andWait</span>:<span style="color: #2934d5;">0.2</span>];<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (IBAction)favbuttonPressed:(id)sender<br />
{<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #7041a7;">NSArray</span><span style="color: black;"> *documentDirectory=</span>NSSearchPathForDirectoriesInDomains<span style="color: black;">(</span>NSDocumentDirectory<span style="color: black;">,</span>NSUserDomainMask<span style="color: black;">, </span><span style="color: #b933a1;">YES</span><span style="color: black;">);</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSString</span> *documentPath=[documentDirectory <span style="color: #3d227f;">objectAtIndex</span>:<span style="color: #2934d5;">0</span>];<br />
<span style="color: #7041a7;">NSString</span> *plistPath = [documentPath <span style="color: #3d227f;">stringByAppendingPathComponent</span>:<span style="color: #cf3125;">@"favourite.plist"</span>];<br />
<div style="color: #7041a7;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>NSFileManager<span style="color: black;"> *fileManager=[</span>NSFileManager<span style="color: black;"> </span><span style="color: #3d227f;">defaultManager</span><span style="color: black;">];</span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>//[[NSMutableArray alloc]init];</div>
if ([fileManager <span style="color: #3d227f;">fileExistsAtPath</span>:plistPath])<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSMutableArray</span> *plistArray= [[<span style="color: #7041a7;">NSMutableArray</span> <span style="color: #3d227f;">alloc</span>] <span style="color: #3d227f;">initWithContentsOfFile</span>:plistPath];<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>[plistArray <span style="color: #3d227f;">addObject</span>:<span style="color: #508186;">textView</span>.<span style="color: #7041a7;">text</span>];<br />
<div style="color: #7041a7;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>NSData<span style="color: black;"> *plistData = [</span>NSPropertyListSerialization<span style="color: black;"> </span><span style="color: #3d227f;">dataFromPropertyList</span><span style="color: black;">:plistArray</span></div>
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span>format<span style="color: black;">:</span>NSPropertyListXMLFormat_v1_0<span style="color: black;"> </span>errorDescription<span style="color: black;">:</span><span style="color: #b933a1;">nil</span><span style="color: black;">];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>[plistData <span style="color: #3d227f;">writeToFile</span>:plistPath <span style="color: #3d227f;">atomically</span>:YES];<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>[plistArray <span style="color: #3d227f;">release</span>];<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>else<span style="color: black;"> {</span><br />
<div style="color: #7041a7;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>NSMutableArray<span style="color: black;"> *plistArray=[[</span>NSMutableArray<span style="color: black;"> </span><span style="color: #3d227f;">alloc</span><span style="color: black;">]</span><span style="color: #3d227f;">init</span><span style="color: black;">];</span></div>
[plistArray <span style="color: #3d227f;">addObject</span>:<span style="color: #508186;">textView</span>.<span style="color: #7041a7;">text</span>];<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<div style="color: #7041a7;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>NSData<span style="color: black;"> *plistData = [</span>NSPropertyListSerialization<span style="color: black;"> </span><span style="color: #3d227f;">dataFromPropertyList</span><span style="color: black;">:plistArray</span></div>
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span>format<span style="color: black;">:</span>NSPropertyListXMLFormat_v1_0<span style="color: black;"> </span>errorDescription<span style="color: black;">:</span><span style="color: #b933a1;">nil</span><span style="color: black;">];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>[plistData <span style="color: #3d227f;">writeToFile</span>:plistPath <span style="color: #3d227f;">atomically</span>:YES];<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>[plistArray <span style="color: #3d227f;">release</span>];<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> *alert = [[</span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"Added"</span><span style="color: black;"> </span>message<span style="color: black;">:</span><span style="color: #cf3125;">@"Quote has been added to favourite!"</span><span style="color: black;"> </span>delegate<span style="color: black;">:</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>cancelButtonTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"OK"</span><span style="color: black;"> </span>otherButtonTitles<span style="color: black;">:</span><span style="color: #008212;">/*@"CANCEL",*/</span><span style="color: black;"> </span><span style="color: #b933a1;">nil</span><span style="color: black;">]; </span></div>
[alert <span style="color: #3d227f;">show</span>];<br />
[alert <span style="color: #3d227f;">release</span>];<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
-(IBAction)remvefavBtnPressed:(id)sender<br />
{<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (IBAction)smsbuttonPressed:(id)sender<br />
{<br />
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>sendSMS<span style="color: black;">:</span><span style="color: #508186;">textView</span><span style="color: black;">.</span><span style="color: #7041a7;">text</span><span style="color: black;"> </span>recipientList<span style="color: black;">:[</span><span style="color: #7041a7;">NSArray</span><span style="color: black;"> </span>arrayWithObjects<span style="color: black;">:</span><span style="color: #cf3125;">@""</span><span style="color: black;">, </span><span style="color: #cf3125;">@""</span><span style="color: black;">, </span><span style="color: #b933a1;">nil</span><span style="color: black;">]];</span></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (void)messageComposeViewController:(<span style="color: #7041a7;">MFMessageComposeViewController</span> *)controller didFinishWithResult:(<span style="color: #7041a7;">MessageComposeResult</span>)result<br />
{<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>dismissModalViewControllerAnimated<span style="color: black;">:</span><span style="color: #b933a1;">YES</span><span style="color: black;">];</span></div>
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #b933a1;">if</span><span style="color: black;"> (result == </span>MessageComposeResultCancelled<span style="color: black;">)</span></div>
{<br />
<div style="color: #008212;">
<span style="color: black;"> </span>//NSLog(@"Message cancelled");</div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> *alert = [[</span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"Message"</span><span style="color: black;"> </span>message<span style="color: black;">:</span><span style="color: #cf3125;">@"Message cancelled!"</span><span style="color: black;"> </span>delegate<span style="color: black;">:</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>cancelButtonTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"OK"</span><span style="color: black;"> </span>otherButtonTitles<span style="color: black;">:</span><span style="color: #008212;">/*@"CANCEL",*/</span><span style="color: black;"> </span><span style="color: #b933a1;">nil</span><span style="color: black;">]; </span></div>
[alert <span style="color: #3d227f;">show</span>];<br />
[alert <span style="color: #3d227f;">release</span>];<br />
}<br />
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #b933a1;">else</span><span style="color: black;"> </span><span style="color: #b933a1;">if</span><span style="color: black;"> (result == </span>MessageComposeResultSent<span style="color: black;">)</span></div>
{<br />
<div style="color: #008212;">
<span style="color: black;"> </span>//NSLog(@"Message sent"); </div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> *alert = [[</span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"Message"</span><span style="color: black;"> </span>message<span style="color: black;">:</span><span style="color: #cf3125;">@"Message sent!"</span><span style="color: black;"> </span>delegate<span style="color: black;">:</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>cancelButtonTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"OK"</span><span style="color: black;"> </span>otherButtonTitles<span style="color: black;">:</span><span style="color: #008212;">/*@"CANCEL",*/</span><span style="color: black;"> </span><span style="color: #b933a1;">nil</span><span style="color: black;">]; </span></div>
[alert <span style="color: #3d227f;">show</span>];<br />
[alert <span style="color: #3d227f;">release</span>];<br />
}<br />
else<br />
{<br />
<div style="color: #008212;">
<span style="color: black;"> </span>//NSLog(@"Message failed"); </div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> *alert = [[</span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"Message"</span><span style="color: black;"> </span>message<span style="color: black;">:</span><span style="color: #cf3125;">@"Message failed!"</span><span style="color: black;"> </span>delegate<span style="color: black;">:</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>cancelButtonTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"OK"</span><span style="color: black;"> </span>otherButtonTitles<span style="color: black;">:</span><span style="color: #008212;">/*@"CANCEL",*/</span><span style="color: black;"> </span><span style="color: #b933a1;">nil</span><span style="color: black;">]; </span></div>
[alert <span style="color: #3d227f;">show</span>];<br />
[alert <span style="color: #3d227f;">release</span>];<br />
}<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (void)sendSMS:(<span style="color: #7041a7;">NSString</span> *)bodyOfMessage recipientList:(<span style="color: #7041a7;">NSArray</span> *)recipients<br />
{<br />
<div style="color: #7041a7;">
<span style="color: black;"> </span>MFMessageComposeViewController<span style="color: black;"> *controller = [[[</span>MFMessageComposeViewController<span style="color: black;"> </span><span style="color: #3d227f;">alloc</span><span style="color: black;">] </span><span style="color: #3d227f;">init</span><span style="color: black;">] </span><span style="color: #3d227f;">autorelease</span><span style="color: black;">];</span></div>
<div style="color: #7041a7;">
<span style="color: black;"> </span><span style="color: #b933a1;">if</span><span style="color: black;">([</span>MFMessageComposeViewController<span style="color: black;"> </span><span style="color: #3d227f;">canSendText</span><span style="color: black;">])</span></div>
{<br />
controller.<span style="color: #7041a7;">body</span> = bodyOfMessage; <br />
controller.<span style="color: #7041a7;">recipients</span> = recipients;<br />
controller.<span style="color: #7041a7;">messageComposeDelegate</span> = self;<br />
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>presentModalViewController<span style="color: black;">:controller </span>animated<span style="color: black;">:</span><span style="color: #b933a1;">YES</span><span style="color: black;">];</span></div>
} <br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (IBAction)mailbuttonPressed:(id)sender<br />
{<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// This sample can run on devices running iPhone OS 2.0 or later </div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// The MFMailComposeViewController class is only available in iPhone OS 3.0 or later. </div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// So, we must verify the existence of the above class and provide a workaround for devices running </div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// earlier versions of the iPhone OS. </div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// We display an email composition interface if MFMailComposeViewController exists and the device can send emails.</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// We launch the Mail application on the device, otherwise.</div>
<div style="color: #cf3125;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #7041a7;">Class</span><span style="color: black;"> mailClass = (</span><span style="color: #3d227f;">NSClassFromString</span><span style="color: black;">(</span>@"MFMailComposeViewController"<span style="color: black;">));</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>if (mailClass != nil)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>{<br />
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// We must always check whether the current device is configured for sending emails</div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>if ([mailClass <span style="color: #3d227f;">canSendMail</span>])<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>{<br />
<div style="color: #33595d;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>displayComposerSheet<span style="color: black;">];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>else<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>{<br />
<div style="color: #33595d;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>launchMailAppOnDevice<span style="color: black;">];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>else<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>{<br />
<div style="color: #33595d;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>launchMailAppOnDevice<span style="color: black;">];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="color: #008212;">
// Displays an email composition interface inside the application. Populates all the Mail fields. </div>
-(void)displayComposerSheet<br />
{<br />
<div style="color: #7041a7;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>MFMailComposeViewController<span style="color: black;"> *picker = [[</span>MFMailComposeViewController<span style="color: black;"> </span><span style="color: #3d227f;">alloc</span><span style="color: black;">] </span><span style="color: #3d227f;">init</span><span style="color: black;">];</span></div>
<div style="color: #7041a7;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>picker.</span>mailComposeDelegate<span style="color: black;"> = </span><span style="color: #b933a1;">self</span><span style="color: black;">;</span></div>
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>[picker <span style="color: #3d227f;">setSubject</span>:<span style="color: #cf3125;">@""</span>];<br />
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Set up recipients</div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSArray</span> *toRecipients = [[<span style="color: #7041a7;">NSArray</span> <span style="color: #3d227f;">alloc</span>]<span style="color: #3d227f;">init</span>];<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSArray</span> *ccRecipients = [[<span style="color: #7041a7;">NSArray</span> <span style="color: #3d227f;">alloc</span>]<span style="color: #3d227f;">init</span>];<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSArray</span> *bccRecipients = [[<span style="color: #7041a7;">NSArray</span> <span style="color: #3d227f;">alloc</span>]<span style="color: #3d227f;">init</span>];<br />
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>[picker <span style="color: #3d227f;">setToRecipients</span>:toRecipients];<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>[picker <span style="color: #3d227f;">setCcRecipients</span>:ccRecipients];<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>[picker <span style="color: #3d227f;">setBccRecipients</span>:bccRecipients];<br />
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Fill out the email body text</div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSString</span> *emailBody = <span style="color: #508186;">textView</span>.<span style="color: #7041a7;">text</span>;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>[picker <span style="color: #3d227f;">setMessageBody</span>:emailBody <span style="color: #3d227f;">isHTML</span>:NO];<br />
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>presentModalViewController<span style="color: black;">:picker </span>animated<span style="color: black;">:</span><span style="color: #b933a1;">YES</span><span style="color: black;">];</span></div>
[picker <span style="color: #3d227f;">release</span>];<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="color: #008212;">
// Dismisses the email composition interface when users tap Cancel or Send. Proceeds to update the message field with the result of the operation.</div>
- (void)mailComposeController:(<span style="color: #7041a7;">MFMailComposeViewController</span>*)controller didFinishWithResult:(<span style="color: #7041a7;">MFMailComposeResult</span>)result error:(<span style="color: #7041a7;">NSError</span>*)error<br />
{<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// Notifies users about errors associated with the interface</div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>switch (result)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>{<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #b933a1;">case</span><span style="color: black;"> </span>MFMailComposeResultCancelled<span style="color: black;">:</span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>//message.text = @"Result: canceled";</div>
;<br />
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> *alert1 = [[</span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"Email"</span><span style="color: black;"> </span>message<span style="color: black;">:</span><span style="color: #cf3125;">@"Cancelled!"</span><span style="color: black;"> </span>delegate<span style="color: black;">:</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>cancelButtonTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"OK"</span><span style="color: black;"> </span>otherButtonTitles<span style="color: black;">:</span><span style="color: #008212;">/*@"CANCEL",*/</span><span style="color: black;"> </span><span style="color: #b933a1;">nil</span><span style="color: black;">]; </span></div>
[alert1 <span style="color: #3d227f;">show</span>];<br />
[alert1 <span style="color: #3d227f;">release</span>];<br />
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>break<span style="color: black;">;</span><br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #b933a1;">case</span><span style="color: black;"> </span>MFMailComposeResultSaved<span style="color: black;">:</span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>//message.text = @"Result: saved";</div>
;<br />
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> *alert2 = [[</span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"Email"</span><span style="color: black;"> </span>message<span style="color: black;">:</span><span style="color: #cf3125;">@"Saved!"</span><span style="color: black;"> </span>delegate<span style="color: black;">:</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>cancelButtonTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"OK"</span><span style="color: black;"> </span>otherButtonTitles<span style="color: black;">:</span><span style="color: #008212;">/*@"CANCEL",*/</span><span style="color: black;"> </span><span style="color: #b933a1;">nil</span><span style="color: black;">]; </span></div>
[alert2 <span style="color: #3d227f;">show</span>];<br />
[alert2 <span style="color: #3d227f;">release</span>];<br />
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>break<span style="color: black;">;</span><br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #b933a1;">case</span><span style="color: black;"> </span>MFMailComposeResultSent<span style="color: black;">:</span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>//message.text = @"Result: sent";</div>
;<br />
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> *alert3 = [[</span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"Email"</span><span style="color: black;"> </span>message<span style="color: black;">:</span><span style="color: #cf3125;">@"Sent!"</span><span style="color: black;"> </span>delegate<span style="color: black;">:</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>cancelButtonTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"OK"</span><span style="color: black;"> </span>otherButtonTitles<span style="color: black;">:</span><span style="color: #008212;">/*@"CANCEL",*/</span><span style="color: black;"> </span><span style="color: #b933a1;">nil</span><span style="color: black;">]; </span></div>
[alert3 <span style="color: #3d227f;">show</span>];<br />
[alert3 <span style="color: #3d227f;">release</span>];<br />
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>break<span style="color: black;">;</span><br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #b933a1;">case</span><span style="color: black;"> </span>MFMailComposeResultFailed<span style="color: black;">:</span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>//message.text = @"Result: failed";</div>
;<br />
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> *alert4 = [[</span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"Email"</span><span style="color: black;"> </span>message<span style="color: black;">:</span><span style="color: #cf3125;">@"Failed!"</span><span style="color: black;"> </span>delegate<span style="color: black;">:</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>cancelButtonTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"OK"</span><span style="color: black;"> </span>otherButtonTitles<span style="color: black;">:</span><span style="color: #008212;">/*@"CANCEL",*/</span><span style="color: black;"> </span><span style="color: #b933a1;">nil</span><span style="color: black;">]; </span></div>
[alert4 <span style="color: #3d227f;">show</span>];<br />
[alert4 <span style="color: #3d227f;">release</span>];<br />
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>break<span style="color: black;">;</span><br />
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>default<span style="color: black;">:</span><br />
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>//message.text = @"Result: not sent";</div>
;<br />
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> *alert5 = [[</span><span style="color: #7041a7;">UIAlertView</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"Message"</span><span style="color: black;"> </span>message<span style="color: black;">:</span><span style="color: #cf3125;">@"Not sent!"</span><span style="color: black;"> </span>delegate<span style="color: black;">:</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>cancelButtonTitle<span style="color: black;">:</span><span style="color: #cf3125;">@"OK"</span><span style="color: black;"> </span>otherButtonTitles<span style="color: black;">:</span><span style="color: #008212;">/*@"CANCEL",*/</span><span style="color: black;"> </span><span style="color: #b933a1;">nil</span><span style="color: black;">]; </span></div>
[alert5 <span style="color: #3d227f;">show</span>];<br />
[alert5 <span style="color: #3d227f;">release</span>];<br />
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>break<span style="color: black;">;</span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>[self dismissModalViewControllerAnimated:YES];<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #77492d;">
#pragma mark -</div>
<div style="color: #77492d;">
#pragma mark Workaround</div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #008212;">
// Launches the Mail application on the device.</div>
-(void)launchMailAppOnDevice<br />
{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>NSString *recipients = <span style="color: #cf3125;">@""</span>;<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>NSString *body = <span style="color: #cf3125;">@""</span>;<br />
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>NSString *email = [NSString stringWithFormat:<span style="color: #cf3125;">@"%@%@"</span>, recipients, body];<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>email = [email stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];<br />
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>[[UIApplication sharedApplication] openURL:[NSURL URLWithString:email]];<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
- (void)viewDidUnload<br />
{<br />
[super viewDidUnload];<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// Release any retained subviews of the main view.</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// e.g. self.myOutlet = nil;</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation<br />
{<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// Return YES for supported orientations</div>
return (interfaceOrientation == UIInterfaceOrientationPortrait);<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
@end</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
favoriteView.h</div>
<div>
<br /></div>
<div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// favoriteController.h</div>
<div style="color: #008212;">
// SQLiteTutorial</div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// Created by AEL DATA on 08/11/11.</div>
<div style="color: #008212;">
// Copyright 2011 __MyCompanyName__. All rights reserved.</div>
<div style="color: #008212;">
//</div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span><UIKit/UIKit.h></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
@interface favoriteController : <span style="color: #7041a7;">UIViewController</span><br />
{<br />
<span style="color: #7041a7;">NSString</span> *favState;<br />
<span style="color: #7041a7;">NSMutableArray</span> *favArray;<br />
<div style="min-height: 13px;">
</div>
IBOutlet <span style="color: #7041a7;">UITableView</span> *atableview;<br />
IBOutlet <span style="color: #7041a7;">UIImageView</span> *navBarImage;<br />
<div style="min-height: 13px;">
</div>
}<br />
@property<span style="color: black;"> (</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *favState;</span><br />
@property<span style="color: black;"> (</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span><span style="color: #7041a7;">NSArray</span><span style="color: black;"> *favArray;</span><br />
@property<span style="color: black;"> (</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UITableView</span><span style="color: black;"> *atableview;</span><br />
@property<span style="color: black;"> (</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UIImageView</span><span style="color: black;"> *navBarImage;</span><br />
@end</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
favorite.m</div>
<div>
<br /></div>
<div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// favoriteController.m</div>
<div style="color: #008212;">
// SQLiteTutorial</div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// Created by AEL DATA on 08/11/11.</div>
<div style="color: #008212;">
// Copyright 2011 __MyCompanyName__. All rights reserved.</div>
<div style="color: #008212;">
//</div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"favoriteController.h"</div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"fView.h"</div>
<div style="min-height: 13px;">
<br /></div>
@implementation favoriteController<br />
<div style="min-height: 13px;">
<br /></div>
@synthesize favArray, favState, atableview, navBarImage;<br />
<div style="min-height: 13px;">
<br /></div>
- (id)initWithNibName:(<span style="color: #7041a7;">NSString</span> *)nibNameOrNil bundle:(<span style="color: #7041a7;">NSBundle</span> *)nibBundleOrNil<br />
{<br />
self = [super <span style="color: #3d227f;">initWithNibName</span>:nibNameOrNil <span style="color: #3d227f;">bundle</span>:nibBundleOrNil];<br />
if (self) {<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// Custom initialization</div>
}<br />
<span style="color: black;"> </span>return<span style="color: black;"> </span>self<span style="color: black;">;</span><br />
}<br />
<div style="min-height: 13px;">
<br /></div>
- (void)didReceiveMemoryWarning<br />
{<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// Releases the view if it doesn't have a superview.</div>
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>didReceiveMemoryWarning<span style="color: black;">];</span></div>
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Release any cached data, images, etc that aren't in use.</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="color: #77492d;">
#pragma mark - View lifecycle</div>
-(void)viewWillAppear:(BOOL)animated<br />
{<br />
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>viewWillAppear<span style="color: black;">:</span><span style="color: #b933a1;">YES</span><span style="color: black;">];</span></div>
<div style="min-height: 13px;">
<br /></div>
}<br />
-(void)viewDidAppear:(BOOL)animated<br />
{<br />
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">NSArray</span><span style="color: black;"> *documentDirectory=</span>NSSearchPathForDirectoriesInDomains<span style="color: black;">(</span>NSDocumentDirectory<span style="color: black;">,</span>NSUserDomainMask<span style="color: black;">, </span><span style="color: #b933a1;">YES</span><span style="color: black;">);</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><span style="color: #7041a7;">NSString</span> *documentPath=[documentDirectory <span style="color: #3d227f;">objectAtIndex</span>:<span style="color: #2934d5;">0</span>];<br />
<span style="color: #7041a7;">NSString</span> *plistPath = [documentPath <span style="color: #3d227f;">stringByAppendingPathComponent</span>:<span style="color: #cf3125;">@"favourite.plist"</span>];<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #508186;">favArray</span><span style="color: black;">= [[</span><span style="color: #7041a7;">NSMutableArray</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithContentsOfFile<span style="color: black;">:plistPath];</span></div>
<div style="color: #508186;">
<span style="color: black;"> [</span>atableview<span style="color: black;"> </span><span style="color: #3d227f;">reloadData</span><span style="color: black;">];</span></div>
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>viewDidAppear<span style="color: black;">:</span><span style="color: #b933a1;">YES</span><span style="color: black;">];</span></div>
}<br />
- (void)viewDidLoad<br />
{<br />
<div style="color: #cf3125;">
<span style="color: black;"> </span><span style="color: #b933a1;">self</span><span style="color: black;">.</span><span style="color: #7041a7;">title</span><span style="color: black;"> = </span>@"Favorites"<span style="color: black;">;</span></div>
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">self</span><span style="color: black;">.</span><span style="color: #7041a7;">navigationController</span><span style="color: black;"> </span>setNavigationBarHidden<span style="color: black;">:</span><span style="color: #b933a1;">YES</span><span style="color: black;">];</span></div>
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #508186;">navBarImage</span><span style="color: black;"> = [[</span><span style="color: #7041a7;">UIImageView</span><span style="color: black;"> </span>alloc<span style="color: black;">]</span>initWithImage<span style="color: black;">:[</span><span style="color: #7041a7;">UIImage</span><span style="color: black;"> </span>imageNamed<span style="color: black;">:</span><span style="color: #cf3125;">@"topbg.png"</span><span style="color: black;">]];</span></div>
<div style="color: #7041a7;">
<span style="color: black;"> [</span><span style="color: #b933a1;">self</span><span style="color: black;">.</span>navigationController<span style="color: black;">.</span>view<span style="color: black;"> </span><span style="color: #3d227f;">addSubview</span><span style="color: black;">:</span><span style="color: #508186;">navBarImage</span><span style="color: black;">]; </span></div>
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIColor</span><span style="color: black;"> *background = [[</span><span style="color: #7041a7;">UIColor</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithPatternImage<span style="color: black;">:[</span><span style="color: #7041a7;">UIImage</span><span style="color: black;"> </span>imageNamed<span style="color: black;">:</span><span style="color: #cf3125;">@"Bg.png"</span><span style="color: black;">]];</span></div>
self.<span style="color: #7041a7;">view</span>.<span style="color: #7041a7;">backgroundColor</span> = background;<br />
[background <span style="color: #3d227f;">release</span>];<br />
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>viewDidLoad<span style="color: black;">];</span></div>
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Do any additional setup after loading the view from its nib.</div>
}<br />
- (<span style="color: #7041a7;">NSInteger</span>)numberOfSectionsInTableView:(<span style="color: #7041a7;">UITableView</span> *)tableView {<br />
return <span style="color: #2934d5;">1</span>;<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (<span style="color: #7041a7;">NSInteger</span>)tableView:(<span style="color: #7041a7;">UITableView</span> *)tableView numberOfRowsInSection:(<span style="color: #7041a7;">NSInteger</span>)section {<br />
<div style="color: #508186;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span><span style="color: #b933a1;">return</span><span style="color: black;"> [</span>favArray<span style="color: black;"> </span><span style="color: #3d227f;">count</span><span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (<span style="color: #7041a7;">UITableViewCell</span> *)tableView:(<span style="color: #7041a7;">UITableView</span> *)tableView cellForRowAtIndexPath:(<span style="color: #7041a7;">NSIndexPath</span> *)indexPath {<br />
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
static <span style="color: #7041a7;">NSString</span> *CellIdentifier = <span style="color: #cf3125;">@"Cell"</span>;<br />
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<span style="color: #7041a7;">UITableViewCell</span> *cell = [tableView <span style="color: #3d227f;">dequeueReusableCellWithIdentifier</span>:CellIdentifier];<br />
if (cell == nil) {<br />
<div style="color: #3d227f;">
<span style="color: black;"> cell = [[[</span><span style="color: #7041a7;">UITableViewCell</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithFrame<span style="color: black;">:</span><span style="color: #7041a7;">CGRectZero</span><span style="color: black;"> </span>reuseIdentifier<span style="color: black;">:CellIdentifier] </span>autorelease<span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="min-height: 13px;">
</div>
<div style="min-height: 13px;">
</div>
<div style="color: #7041a7;">
<span style="color: black;"> cell.</span>accessoryView<span style="color: black;"> = [[</span>UIImageView<span style="color: black;"> </span><span style="color: #3d227f;">alloc</span><span style="color: black;">] </span><span style="color: #3d227f;">initWithImage</span><span style="color: black;">:[</span>UIImage<span style="color: black;"> </span><span style="color: #3d227f;">imageNamed</span><span style="color: black;">:</span><span style="color: #cf3125;">@"page_8.png"</span><span style="color: black;">]];</span></div>
<div style="min-height: 13px;">
</div>
cell.<span style="color: #7041a7;">textLabel</span>.<span style="color: #7041a7;">text</span> = [<span style="color: #508186;">favArray</span> <span style="color: #3d227f;">objectAtIndex</span>:indexPath.<span style="color: #7041a7;">row</span>];<br />
<div style="min-height: 13px;">
</div>
return cell;<br />
}<br />
- (void)viewDidUnload<br />
{<br />
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>viewDidUnload<span style="color: black;">];</span></div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Release any retained subviews of the main view.</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// e.g. self.myOutlet = nil;</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
- (BOOL)shouldAutorotateToInterfaceOrientation:(<span style="color: #7041a7;">UIInterfaceOrientation</span>)interfaceOrientation<br />
{<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// Return YES for supported orientations</div>
return (interfaceOrientation == <span style="color: #3d227f;">UIInterfaceOrientationPortrait</span>);<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (void)tableView:(<span style="color: #7041a7;">UITableView</span> *)tableview didSelectRowAtIndexPath:(<span style="color: #7041a7;">NSIndexPath</span> *)indexPath<br />
{ <br />
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #508186;">fView</span><span style="color: black;">*new = [[</span><span style="color: #508186;">fView</span><span style="color: black;"> </span>alloc<span style="color: black;">]</span>initWithNibName<span style="color: black;">:</span><span style="color: #cf3125;">@"fView"</span><span style="color: black;"> </span>bundle<span style="color: black;">:[</span><span style="color: #7041a7;">NSBundle</span><span style="color: black;"> </span>mainBundle<span style="color: black;">]];</span></div>
new.<span style="color: #508186;">dispStr</span>= [<span style="color: #508186;">favArray</span> <span style="color: #3d227f;">objectAtIndex</span>:indexPath.<span style="color: #7041a7;">row</span>];<br />
<div style="color: #508186;">
<span style="color: black;"> new.</span>dispArr<span style="color: black;">= </span>favArray<span style="color: black;">;</span></div>
new.<span style="color: #508186;">countInt</span> = indexPath.<span style="color: #7041a7;">row</span>;<br />
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">self</span><span style="color: black;">.</span><span style="color: #7041a7;">navigationController</span><span style="color: black;"> </span>pushViewController<span style="color: black;">:new </span>animated<span style="color: black;">:</span><span style="color: #b933a1;">YES</span><span style="color: black;">];</span></div>
[new <span style="color: #3d227f;">release</span>];<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
@end</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
fView.h</div>
<div>
<br /></div>
<div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// fView.h</div>
<div style="color: #008212;">
// SQLiteTutorial</div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// Created by AEL DATA on 11/11/11.</div>
<div style="color: #008212;">
// Copyright 2011 __MyCompanyName__. All rights reserved.</div>
<div style="color: #008212;">
//</div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span><UIKit/UIKit.h></div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #7041a7;">
<span style="color: #b933a1;">@interface</span><span style="color: black;"> fView : </span>UIViewController</div>
{<br />
IBOutlet <span style="color: #7041a7;">UITextView</span> *txtView;<br />
<span style="color: #7041a7;">NSString</span> *dispStr;<br />
<span style="color: #7041a7;">NSArray</span> *dispArr;<br />
int countInt;<br />
<span style="color: #7041a7;">NSString</span> *totFavCount;<br />
<div style="min-height: 13px;">
</div>
<span style="color: #7041a7;">NSString</span> *favCount;<br />
<span style="color: #7041a7;">NSString</span> *totFCount;<br />
<span style="color: #7041a7;">NSString</span> *tCounts;<br />
<div style="min-height: 13px;">
</div>
IBOutlet <span style="color: #7041a7;">UITextField</span> *textFeild;<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UITextView</span><span style="color: black;"> *txtView;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *dispStr;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span><span style="color: #7041a7;">NSArray</span><span style="color: black;"> *dispArr;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *totFavCount;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *favCount;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">)</span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *totFCount;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span>IBOutlet<span style="color: black;"> </span><span style="color: #7041a7;">UITextField</span><span style="color: black;"> *textFeild;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;">(</span>nonatomic<span style="color: black;">, </span>retain<span style="color: black;">) </span><span style="color: #7041a7;">NSString</span><span style="color: black;"> *tCounts;</span><br />
<div style="min-height: 13px;">
<br /></div>
@property<span style="color: black;"> </span>int<span style="color: black;"> countInt;</span><br />
@end</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
fView.m</div>
<div>
<br /></div>
<div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// fView.m</div>
<div style="color: #008212;">
// SQLiteTutorial</div>
<div style="color: #008212;">
//</div>
<div style="color: #008212;">
// Created by AEL DATA on 11/11/11.</div>
<div style="color: #008212;">
// Copyright 2011 __MyCompanyName__. All rights reserved.</div>
<div style="color: #008212;">
//</div>
<div style="min-height: 13px;">
<br /></div>
<div style="color: #cf3125;">
<span style="color: #77492d;">#import </span>"fView.h"</div>
<div style="min-height: 13px;">
<br /></div>
@implementation<span style="color: black;"> fView</span><br />
<div style="min-height: 13px;">
<br /></div>
@synthesize txtView, dispStr, dispArr, countInt, totFavCount, favCount, totFCount, textFeild, tCounts;<br />
<div style="min-height: 13px;">
<br /></div>
- (id)initWithNibName:(<span style="color: #7041a7;">NSString</span> *)nibNameOrNil bundle:(<span style="color: #7041a7;">NSBundle</span> *)nibBundleOrNil<br />
{<br />
self = [super <span style="color: #3d227f;">initWithNibName</span>:nibNameOrNil <span style="color: #3d227f;">bundle</span>:nibBundleOrNil];<br />
if (self) {<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// Custom initialization </div>
}<br />
<span style="color: black;"> </span>return<span style="color: black;"> </span>self<span style="color: black;">;</span><br />
}<br />
<div style="min-height: 13px;">
<br /></div>
- (void)didReceiveMemoryWarning<br />
{<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// Releases the view if it doesn't have a superview.</div>
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>didReceiveMemoryWarning<span style="color: black;">];</span></div>
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Release any cached data, images, etc that aren't in use.</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="color: #77492d;">
#pragma mark - View lifecycle</div>
<div style="min-height: 13px;">
<br /></div>
- (void)viewDidLoad<br />
{<br />
<div style="color: #508186;">
<span style="color: black;"> </span>txtView<span style="color: black;">.</span><span style="color: #7041a7;">text</span><span style="color: black;"> = </span>dispStr<span style="color: black;">;</span></div>
<div style="color: #cf3125;">
<span style="color: black;"> </span><span style="color: #b933a1;">self</span><span style="color: black;">.</span><span style="color: #7041a7;">title</span><span style="color: black;"> = </span>@"Favorites"<span style="color: black;">;</span></div>
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> </span><span style="color: #7041a7;">UIColor</span><span style="color: black;"> *background = [[</span><span style="color: #7041a7;">UIColor</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithPatternImage<span style="color: black;">:[</span><span style="color: #7041a7;">UIImage</span><span style="color: black;"> </span>imageNamed<span style="color: black;">:</span><span style="color: #cf3125;">@"Bg.png"</span><span style="color: black;">]];</span></div>
self.<span style="color: #7041a7;">view</span>.<span style="color: #7041a7;">backgroundColor</span> = background;<br />
[background <span style="color: #3d227f;">release</span>];<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
</div>
int totalCounts = [<span style="color: #508186;">dispArr</span> <span style="color: #3d227f;">count</span>];<br />
<div style="min-height: 13px;">
</div>
<span style="color: #7041a7;">NSString</span> *countStrg = [[<span style="color: #7041a7;">NSNumber</span> <span style="color: #3d227f;">numberWithInt</span>:<span style="color: #508186;">countInt</span>+<span style="color: #2934d5;">1</span>] <span style="color: #3d227f;">stringValue</span>];<br />
<div style="min-height: 13px;">
</div>
<span style="color: #7041a7;">NSString</span> *totCountStrg = [[<span style="color: #7041a7;">NSNumber</span> <span style="color: #3d227f;">numberWithInt</span>:totalCounts] <span style="color: #3d227f;">stringValue</span>];<br />
<span style="color: #508186;">tCounts</span> = [[<span style="color: #7041a7;">NSString</span> <span style="color: #3d227f;">alloc</span>]<span style="color: #3d227f;">initWithString</span>:totCountStrg];<br />
<div style="min-height: 13px;">
</div>
<span style="color: #508186;">textFeild</span>.<span style="color: #7041a7;">text</span> =[<span style="color: #7041a7;">NSString</span> <span style="color: #3d227f;">stringWithFormat</span>:<span style="color: #cf3125;">@"%@ / %@"</span>,countStrg,<span style="color: #508186;">tCounts</span>];<br />
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// -----------------------------</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// One finger, swipe Left</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// -----------------------------</div>
<div style="min-height: 13px;">
</div>
<span style="color: #7041a7;">UISwipeGestureRecognizer</span> *oneFingerSwipeUp =<br />
<div style="color: #3d227f;">
<span style="color: black;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>[[[</span><span style="color: #7041a7;">UISwipeGestureRecognizer</span><span style="color: black;"> </span>alloc<span style="color: black;">] </span>initWithTarget<span style="color: black;">:</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>action<span style="color: black;">:</span><span style="color: #b933a1;">@selector</span><span style="color: black;">(oneFingerSwipeUp:)] </span>autorelease<span style="color: black;">];</span></div>
<div style="color: #3d227f;">
<span style="color: black;"> [oneFingerSwipeUp </span>setDirection<span style="color: black;">:</span>UISwipeGestureRecognizerDirectionLeft<span style="color: black;">];</span></div>
[[self <span style="color: #3d227f;">view</span>] <span style="color: #3d227f;">addGestureRecognizer</span>:oneFingerSwipeUp];<br />
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// -----------------------------</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// One finger, swipe Right</div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// -----------------------------</div>
<span style="color: #7041a7;">UISwipeGestureRecognizer</span> *oneFingerSwipeDown =<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>[[[<span style="color: #7041a7;">UISwipeGestureRecognizer</span> <span style="color: #3d227f;">alloc</span>] <span style="color: #3d227f;">initWithTarget</span>:self <span style="color: #3d227f;">action</span>:@selector(oneFingerSwipeDown:)] <span style="color: #3d227f;">autorelease</span>];<br />
<div style="color: #3d227f;">
<span style="color: black;"> [oneFingerSwipeDown </span>setDirection<span style="color: black;">:</span>UISwipeGestureRecognizerDirectionRight<span style="color: black;">];</span></div>
<div style="min-height: 13px;">
</div>
[[self <span style="color: #3d227f;">view</span>] <span style="color: #3d227f;">addGestureRecognizer</span>:oneFingerSwipeDown];<br />
<div style="min-height: 13px;">
</div>
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>viewDidLoad<span style="color: black;">];</span></div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Do any additional setup after loading the view from its nib.</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
- (void)oneFingerSwipeUp:(<span style="color: #7041a7;">UISwipeGestureRecognizer</span> *)recognizer<br />
{<br />
<div style="color: #508186;">
<span style="color: black;"> </span><span style="color: #b933a1;">if</span><span style="color: black;">(</span>countInt<span style="color: black;"><[</span>dispArr<span style="color: black;"> </span><span style="color: #3d227f;">count</span><span style="color: black;">]-</span><span style="color: #2934d5;">1</span><span style="color: black;">)</span></div>
{<br />
<span style="color: #508186;">countInt</span>++;<br />
<span style="color: #7041a7;">NSString</span> *countStrg = [[<span style="color: #7041a7;">NSNumber</span> <span style="color: #3d227f;">numberWithInt</span>:<span style="color: #508186;">countInt</span>+<span style="color: #2934d5;">1</span>] <span style="color: #3d227f;">stringValue</span>];<br />
<span style="color: #508186;">textFeild</span>.<span style="color: #7041a7;">text</span> =[<span style="color: #7041a7;">NSString</span> <span style="color: #3d227f;">stringWithFormat</span>:<span style="color: #cf3125;">@"%@ / %@"</span>,countStrg,<span style="color: #508186;">tCounts</span>];<br />
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>//[self fadeInFromFadeOut:textView withDuration:2]; </div>
<div style="color: #508186;">
<span style="color: black;"> </span>txtView<span style="color: black;">.</span><span style="color: #7041a7;">text</span><span style="color: black;">= [</span>dispArr<span style="color: black;"> </span><span style="color: #3d227f;">objectAtIndex</span><span style="color: black;">:</span>countInt<span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>//CGPoint point = [recognizer locationInView:[self view]];</div>
<div style="color: #008212;">
<span style="color: black;"> </span>//NSLog(@"Swipe up - start location: %f,%f", point.x, point.y);</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
- (void)oneFingerSwipeDown:(<span style="color: #7041a7;">UISwipeGestureRecognizer</span> *)recognizer<br />
{<br />
if(<span style="color: #508186;">countInt</span>>=<span style="color: #2934d5;">1</span>)<br />
{<br />
<span style="color: #7041a7;">NSString</span> *countStrg = [[<span style="color: #7041a7;">NSNumber</span> <span style="color: #3d227f;">numberWithInt</span>:<span style="color: #508186;">countInt</span>] <span style="color: #3d227f;">stringValue</span>];<br />
<span style="color: #508186;">textFeild</span>.<span style="color: #7041a7;">text</span> =[<span style="color: #7041a7;">NSString</span> <span style="color: #3d227f;">stringWithFormat</span>:<span style="color: #cf3125;">@"%@ / %@"</span>,countStrg,<span style="color: #508186;">tCounts</span>];<br />
<div style="min-height: 13px;">
<br /></div>
<span style="color: #508186;">countInt</span>--;<br />
<div style="color: #008212;">
<span style="color: black;"> </span>//[self fadeInFromFadeOut:textView withDuration:2];</div>
<div style="color: #508186;">
<span style="color: black;"> </span>txtView<span style="color: black;">.</span><span style="color: #7041a7;">text</span><span style="color: black;">= [</span>dispArr<span style="color: black;"> </span><span style="color: #3d227f;">objectAtIndex</span><span style="color: black;">:</span>countInt<span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>//CGPoint point = [recognizer locationInView:[self view]];</div>
<div style="color: #008212;">
<span style="color: black;"> </span>//NSLog(@"Swipe down - start location: %f,%f", point.x, point.y);</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
-(void)fadeOut:(<span style="color: #7041a7;">UIView</span>*)viewToDissolve withDuration:(<span style="color: #7041a7;">NSTimeInterval</span>)duration andWait:(<span style="color: #7041a7;">NSTimeInterval</span>)wait<br />
{<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>beginAnimations<span style="color: black;">: </span><span style="color: #cf3125;">@"Fade Out"</span><span style="color: black;"> </span>context<span style="color: black;">:</span><span style="color: #b933a1;">nil</span><span style="color: black;">];</span></div>
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// wait for time before begin </div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>setAnimationDelay<span style="color: black;">:wait];</span></div>
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// duration of animation</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>setAnimationDuration<span style="color: black;">:duration];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>viewToDissolve.<span style="color: #7041a7;">alpha</span> = <span style="color: #2934d5;">0.0</span>;<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>commitAnimations<span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
-(void)fadeIn:(<span style="color: #7041a7;">UIView</span>*)viewToFadeIn withDuration:(<span style="color: #7041a7;">NSTimeInterval</span>)duration <span class="Apple-tab-span" style="white-space: pre;"> </span> andWait:(<span style="color: #7041a7;">NSTimeInterval</span>)wait<br />
{<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>beginAnimations<span style="color: black;">: </span><span style="color: #cf3125;">@"Fade In"</span><span style="color: black;"> </span>context<span style="color: black;">:</span><span style="color: #b933a1;">nil</span><span style="color: black;">];</span></div>
<div style="min-height: 13px;">
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div style="color: #008212;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span>// wait for time before begin</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>setAnimationDelay<span style="color: black;">:wait];</span></div>
<div style="min-height: 13px;">
</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// druation of animation</div>
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>setAnimationDuration<span style="color: black;">:duration];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>viewToFadeIn.<span style="color: #7041a7;">alpha</span> = <span style="color: #2934d5;">1</span>;<br />
<div style="color: #3d227f;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #7041a7;">UIView</span><span style="color: black;"> </span>commitAnimations<span style="color: black;">];</span></div>
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
-(void) fadeInFromFadeOut: (<span style="color: #7041a7;">UIView</span>*)viewToFadeIn withDuration:(<span style="color: #7041a7;">NSTimeInterval</span>)duration<br />
{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>viewToFadeIn.<span style="color: #7041a7;">hidden</span>=NO;<br />
<div style="color: #33595d;">
<span style="color: black;"><span class="Apple-tab-span" style="white-space: pre;"> </span>[</span><span style="color: #b933a1;">self</span><span style="color: black;"> </span>fadeOut<span style="color: black;">:viewToFadeIn </span>withDuration<span style="color: black;">:</span><span style="color: #2934d5;">1</span><span style="color: black;"> </span>andWait<span style="color: black;">:</span><span style="color: #2934d5;">0.2</span><span style="color: black;">];</span></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>[self <span style="color: #33595d;">fadeIn</span>:viewToFadeIn <span style="color: #33595d;">withDuration</span>:duration <span style="color: #33595d;">andWait</span>:<span style="color: #2934d5;">0.2</span>];<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
}<br />
<div style="min-height: 13px;">
<br /></div>
<div style="min-height: 13px;">
<br /></div>
- (void)viewDidUnload<br />
{<br />
<div style="color: #3d227f;">
<span style="color: black;"> [</span><span style="color: #b933a1;">super</span><span style="color: black;"> </span>viewDidUnload<span style="color: black;">];</span></div>
<div style="color: #008212;">
<span style="color: black;"> </span>// Release any retained subviews of the main view.</div>
<div style="color: #008212;">
<span style="color: black;"> </span>// e.g. self.myOutlet = nil;</div>
}<br />
<div style="min-height: 13px;">
<br /></div>
- (BOOL)shouldAutorotateToInterfaceOrientation:(<span style="color: #7041a7;">UIInterfaceOrientation</span>)interfaceOrientation<br />
{<br />
<div style="color: #008212;">
<span style="color: black;"> </span>// Return YES for supported orientations</div>
return (interfaceOrientation == <span style="color: #3d227f;">UIInterfaceOrientationPortrait</span>);<br />
}<br />
<div style="min-height: 13px;">
<br /></div>
@end</div>
<div>
<br /></div>
</div>
<br />
<br />
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/16913367997171281699noreply@blogger.com0