<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3817992304881055766</id><updated>2024-09-05T01:47:25.763-07:00</updated><title type='text'>iPhone App Development</title><subtitle type='html'>This helps in learning and figuring out the issues while developing the iPhone applications.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-8013260954238692939</id><published>2012-01-23T22:46:00.000-08:00</published><updated>2012-01-23T22:46:03.560-08:00</updated><title type='text'>What is SQLite?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SQLite is an embedded SQL database engine. Unlike most other SQL databases, SQLite does not have a separate server process. SQLite reads and writes directly to ordinary disk files. A complete SQL database with multiple tables, indices, triggers, and views, is contained in a single disk file. The database file format is cross-platform - you can freely copy a database between 32-bit and 64-bit systems or between&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Endianness&quot; style=&quot;color: #044a64;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;big-endian&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Endianness&quot; style=&quot;color: #044a64;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;little-endian&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;architectures. These features make SQLite a popular choice as an&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.sqlite.org/whentouse.html#appfileformat&quot; style=&quot;color: #044a64;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Application File Format&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;. Think of SQLite not as a replacement for&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.oracle.com/database/index.html&quot; style=&quot;color: #044a64;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Oracle&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;but as a replacement for&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://man.he.net/man3/fopen&quot; style=&quot;color: #044a64;&quot;&gt;fopen()&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;And it is,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://man.he.net/man3/fopen&quot; style=&quot;color: #044a64;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;a. Single user&lt;/span&gt;&lt;br /&gt;
b. File based&lt;br /&gt;
c. Cross Platform (can be used across multiple platforms)&lt;br /&gt;
d. ANSI based C library i.e., pure C API.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SQLite tools:&lt;/b&gt;&lt;br /&gt;
- SQLite Manager&lt;br /&gt;
- sqlite3 command line utility&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Creating the DB through command line:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$ sqlite3 Example.database&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SQLite version 3.6.12&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Enter &quot;.help&quot; for instructions&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Enter SQL statements terminated with a &quot;;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;sqlite&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;.help for more commands&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;.quit to quit from the sqlite prompt&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
After successful creation of database, the sqlite prompt gets opened and we can create tables.&lt;br /&gt;
&lt;br /&gt;
For the SQL queries syntax, please refer&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;http://www.sqlite.org/&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/8013260954238692939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/what-is-sqlite.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/8013260954238692939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/8013260954238692939'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/what-is-sqlite.html' title='What is SQLite?'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-3476329310213829835</id><published>2012-01-22T06:33:00.000-08:00</published><updated>2012-01-23T08:00:35.659-08:00</updated><title type='text'>What is UIView&#39;s bounds and frame?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;abstract&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The &lt;code style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;UIView&lt;/code&gt; class defines a rectangular
area on the screen and the interfaces for managing the content in that
area. At runtime, a view object handles the rendering of any content in
its area and also handles any interactions with that content. The &lt;code&gt;UIView&lt;/code&gt;
class itself provides basic behavior for filling its rectangular area
with a background color. More sophisticated content can be presented by
subclassing &lt;code style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;UIView&lt;/code&gt; and implementing the necessary drawing
and event-handling code yourself. The UIKit framework also includes a
set of standard subclasses that range from simple buttons to complex
tables and can be used as-is. For example, a &lt;code style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;UILabel&lt;/code&gt; object draws a text string and a&lt;code&gt; &lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;UIImageView&lt;/span&gt; &lt;/code&gt;object draws an image.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;abstract&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;abstract&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
View drawing occurs on an as-needed basis. When a view is first
shown, or when all or part of it becomes visible due to layout changes,
the system asks the view to draw its contents. For views that contain
custom content using UIKit or Core Graphics, the system calls the
view’s &lt;code&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;drawRect:&lt;/span&gt; &lt;/code&gt;method. Your implementation of this method is responsible for drawing
the view’s content into the current graphics context, which is set up
by the system automatically prior to calling this method. This creates
a static visual representation of your view’s content that can then be
displayed on the screen.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;abstract&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;abstract&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
Creating view programmatically:&lt;/div&gt;
&lt;div class=&quot;abstract&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;CGRect  viewRect = CGRectMake(10, 10, 100, 100);&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;UIView* myView = [[UIView alloc] initWithFrame:viewRect];&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Important method in drawing the content on to the view:&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;drawRect: - Implement this method if your view draws custom content. If your view
does not do any custom drawing, avoid overriding this method.&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;bounds: - The bounds rectangle, which describes the view’s location and size in its 
own coordinate system.&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;frame: - The frame rectangle, which describes the view’s location and size in its&amp;nbsp;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;superview’s coordinate system.&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt; &lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt; &lt;/pre&gt;
&lt;div class=&quot;abstract&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;h3 style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;

 &lt;/h3&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/3476329310213829835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/what-is-uiviews-bounds-and-frame.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/3476329310213829835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/3476329310213829835'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/what-is-uiviews-bounds-and-frame.html' title='What is UIView&#39;s bounds and frame?'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-4266169457005895667</id><published>2012-01-22T06:24:00.000-08:00</published><updated>2012-01-23T08:00:44.812-08:00</updated><title type='text'>iPhone sensors</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
There are various sensors built into most devices iPhone, iPad,
and iPod touch that allow them to perform some of their interface featrures. Without these sensors, none of the devices would be
what we know them as today. The sensors are:&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;b&gt;Proximity sensor –&lt;/b&gt; This sensor can determine how close the
iPhone is to your face. This sensor is what helps the iPhone turn off
its screen automatically whenever you hold the phone up to your ear.
This is necessary to prevent accidental button clicks by the side of
your head when talking. This sensor is only on the iPhone (since the
other devices don&#39;t need it).&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;b&gt;Motion sensor/accelerometer –&lt;/b&gt; This sensor enables the iPod
touch, iPad, or iPhone’s screen to automatically switch from landscape
to portrait modes and back again based on whether you’re holding the
phone up and down or sideways. This sensor is also present in the iPad.&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;b&gt;Ambient Light sensor –&lt;/b&gt; This sensor can determine how much
light is available in the area surrounding the iPhone, iPod touch, and
iPad and automatically adjust the brightness of the screen in order to
conserve battery life.&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;b&gt;Moisture sensor -&lt;/b&gt; The devices also contains a fourth sensor,
though this one isn’t related to the interface. The water sensor is a
little red tab that appears in the dock connector when the phone has
been submerged in water. It can also appear as a red dot in the
headphone jack.&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;b&gt;iPhone 4 Gyroscope&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
The iPhone 4, 4th gen. iPod touch, and iPad 2 adds another sensor: a
three-axis gyroscope. When combining the gyroscope with the
accelerometer, this gives these devices six axes on which the it can
operate. This is designed to make them more sensitive, responsive, and
powerful for gaming.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/4266169457005895667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/iphone-sensors.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/4266169457005895667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/4266169457005895667'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/iphone-sensors.html' title='iPhone sensors'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-1502108113840018747</id><published>2012-01-22T04:02:00.000-08:00</published><updated>2012-01-23T08:00:55.534-08:00</updated><title type='text'>Fast Enumeration</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
This variant of the for loop sets up a fast enumeration. var is a variable whose type can also be declared , expression is an expression that produces a result that conforms to the NSFastEnumeration protocol.Typically, expression is a collection, such as an array or a dictionary. &lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
for ( var in expression )&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; programStatement&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
Ex: for (NSString *empName in employees) {&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@&quot;empName = %@&quot;, empName);&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
Note: The fast enumeration is not index based like for loop.&amp;nbsp; &lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/1502108113840018747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/fast-enumeration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/1502108113840018747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/1502108113840018747'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/fast-enumeration.html' title='Fast Enumeration'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-6679229902084509858</id><published>2012-01-22T03:30:00.000-08:00</published><updated>2012-01-23T08:01:09.039-08:00</updated><title type='text'>Mac OS X and IOS architecture</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHTbnD9gEkYYlRlibMzX1hnONfVCVYyD1YFxDouGAKkxT_yYRXLltGjA9x1DVp7hcIkZyUR1WHmv_7IUxTOOr76mylv0wgK00KhFq5zv7B6yAIPakEAIObcyF0-YZkyBNqFIlu6kyLLho/s1600/Screen+shot+2012-01-22+at+4.59.00+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHTbnD9gEkYYlRlibMzX1hnONfVCVYyD1YFxDouGAKkxT_yYRXLltGjA9x1DVp7hcIkZyUR1WHmv_7IUxTOOr76mylv0wgK00KhFq5zv7B6yAIPakEAIObcyF0-YZkyBNqFIlu6kyLLho/s320/Screen+shot+2012-01-22+at+4.59.00+PM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Mac OS X Architecture&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzcdore0XlDBPb1dW6Ycp0gSTWubpmBYRgGsugmhzOp7MtPqwah3w_xqNK_YZX6rDZ6J03POXlEZ7INmHmXbGCeHC7hD0mEE0wV-aH_kXrTbwQhyphenhyphen1jb-FIFm7axMmmibpRTUm3l28wNq8/s1600/Screen+shot+2012-01-22+at+5.00.13+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;194&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzcdore0XlDBPb1dW6Ycp0gSTWubpmBYRgGsugmhzOp7MtPqwah3w_xqNK_YZX6rDZ6J03POXlEZ7INmHmXbGCeHC7hD0mEE0wV-aH_kXrTbwQhyphenhyphen1jb-FIFm7axMmmibpRTUm3l28wNq8/s320/Screen+shot+2012-01-22+at+5.00.13+PM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;IOS Architecture&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/6679229902084509858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/mac-os-x-and-ios-architecture.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/6679229902084509858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/6679229902084509858'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/mac-os-x-and-ios-architecture.html' title='Mac OS X and IOS architecture'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHTbnD9gEkYYlRlibMzX1hnONfVCVYyD1YFxDouGAKkxT_yYRXLltGjA9x1DVp7hcIkZyUR1WHmv_7IUxTOOr76mylv0wgK00KhFq5zv7B6yAIPakEAIObcyF0-YZkyBNqFIlu6kyLLho/s72-c/Screen+shot+2012-01-22+at+4.59.00+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-894338649191924014</id><published>2012-01-22T02:34:00.000-08:00</published><updated>2012-01-23T08:02:29.632-08:00</updated><title type='text'>Type Introspection</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;code style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;NSObject&lt;/code&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3817992304881055766&quot; name=&quot;//apple_ref/doc/uid/TP30001163-CH11-DontLinkElementID_158&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/a&gt; is a root&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3817992304881055766&quot; name=&quot;//apple_ref/doc/uid/TP30001163-CH11-DontLinkElementID_159&quot;&gt;&lt;/a&gt;
class, and so doesn’t have a superclass. It defines the basic framework
for Objective-C objects and object interactions. It imparts to the
classes and instances of classes that inherit from it the ability to
behave as objects and cooperate with the runtime system.&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
A class that doesn’t need to inherit any special behavior from another class should nevertheless be made a subclass of the &lt;code style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;NSObject&lt;/code&gt;
class. Instances of the class must at least have the ability to behave
like Objective-C objects at run time. Inheriting this ability from the &lt;code style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;NSObject&lt;/code&gt; class is much simpler and much more reliable than reinventing it in a new class definition.&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 class=&quot;jump&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;


Type Introspection&lt;/h4&gt;
&lt;h4 class=&quot;jump&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; font-weight: normal;&quot;&gt;


Instances can reveal their types at runtime. The &lt;code&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;isMemberOfClass&lt;/span&gt;:&lt;/code&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3817992304881055766&quot; name=&quot;//apple_ref/doc/uid/TP30001163-CH11-DontLinkElementID_178&quot;&gt;&lt;/a&gt; method, defined in the &lt;code style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;NSObject&lt;/code&gt; class, checks whether the receiver is an instance of a particular class:&lt;/h4&gt;
&lt;h4 class=&quot;jump&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; font-weight: normal;&quot;&gt;


&amp;nbsp;if ( [anObject isMemberOfClass:someClass] )&lt;/h4&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;    ...&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;/pre&gt;
&lt;h4 class=&quot;jump&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; font-weight: normal;&quot;&gt;


&lt;/h4&gt;
&lt;h4 class=&quot;jump&quot; style=&quot;font-family: Arial,Helvetica,sans-serif; font-weight: normal;&quot;&gt;


 &lt;/h4&gt;
&lt;h4 class=&quot;jump&quot; style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;


 &lt;/h4&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The &lt;code&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;isKindOfClass&lt;/span&gt;:&lt;/code&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3817992304881055766&quot; name=&quot;//apple_ref/doc/uid/TP30001163-CH11-DontLinkElementID_179&quot;&gt;&lt;/a&gt; method, also defined in the &lt;code style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;NSObject&lt;/code&gt;
class, checks more generally whether the receiver inherits from or is a
member of a particular class (whether it has the class in its
inheritance path):&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;if ( [anObject isKindOfClass:someClass] )&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;    ...&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The set of classes for which &lt;code&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;isKindOfClass&lt;/span&gt;:&lt;/code&gt; returns &lt;code style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;YES&lt;/code&gt; is the same set to which the receiver can be statically typed.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Introspection
isn’t limited to type information. Later sections of this chapter
discuss methods that return the class object, report whether an object
can respond to a message, and reveal other information.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;NSObject class reference for more on &lt;code&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;isKindOfClass&lt;/span&gt;:&lt;/code&gt;, &lt;code&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;isMemberOfClass&lt;/span&gt;:&lt;/code&gt;, and related methods.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/894338649191924014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/nsobject-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/894338649191924014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/894338649191924014'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/nsobject-class.html' title='Type Introspection'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-8052201459863010709</id><published>2012-01-18T01:28:00.001-08:00</published><updated>2012-01-23T08:02:43.495-08:00</updated><title type='text'>How to play an audio file on launch of IOS application?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;entry&quot; style=&quot;clear: both; color: #666666; font-family: Arial,Helvetica,sans-serif; line-height: 1.3em;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Apple provided a very good framework called ‘AVFoundation’ provides an Objective-C interface for &amp;nbsp;managing and playing the audio-visual media in your IOS applications.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Please follow the below steps to integrate the audio file to your project:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;1. Add the ‘AVFoundation.framework’ to your frameworks folder in the project.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;2. Add the statement &amp;nbsp;#import&amp;nbsp;&amp;lt;AVFoundation/AVFoundation.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;3. Add the file ‘Output.aif’ (an audio file) to your project.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;4. Have the following snippet of code in your viewDidLoad method&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;NSString&amp;nbsp;*path = [[NSBundle&amp;nbsp;mainBundle]&amp;nbsp;pathForResource:@”Output”&amp;nbsp;ofType:@”aif”];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;AVAudioPlayer&amp;nbsp;*theAudio =&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [[AVAudioPlayer&amp;nbsp;alloc]&amp;nbsp;initWithContentsOfURL:[NSURL&amp;nbsp;fileURLWithPath:path]&amp;nbsp;error:NULL];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;theAudio.delegate&amp;nbsp;=&amp;nbsp;self;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;[theAudio&amp;nbsp;play];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;5. Run the application. You will start listening the music.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;sharedaddy&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;clear&quot; style=&quot;clear: both; color: #666666; font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/8052201459863010709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/how-to-play-audio-file-on-launch-of-ios.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/8052201459863010709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/8052201459863010709'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/how-to-play-audio-file-on-launch-of-ios.html' title='How to play an audio file on launch of IOS application?'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-3208496910380640581</id><published>2012-01-18T01:27:00.004-08:00</published><updated>2012-01-23T08:02:56.777-08:00</updated><title type='text'>How to change of default title font in the UIActionSheet?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: small; line-height: 18px;&quot;&gt;There is no direct way to access the UIActionSheet’s default title properties. There are couple of ways you can do this.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #666666; font-family: Arial,Helvetica,sans-serif; line-height: 18px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #666666; font-family: Arial,Helvetica,sans-serif; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;One is, to customize the UIActionSheet.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #666666; font-family: Arial,Helvetica,sans-serif; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Second is, to add the label as the sub-view to the UIActionSheet, and set the default title to be nil. But if you do this, there are some other changes apart from adding the label as title. You need to set the frame of the buttons (of type ‘UIThirdPartButton’) inside the UIActionSheet. The code looks like something as follows:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #666666; font-family: Arial,Helvetica,sans-serif; line-height: 18px;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;UILabel *titleLabel =&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;[[UILabel&amp;nbsp;alloc]&amp;nbsp;initWithFrame:CGRectMake(0.0,&amp;nbsp;0.0,&amp;nbsp;320.0,&amp;nbsp;50.0)];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;titleLabel.font = [UIFont&amp;nbsp;boldSystemFontOfSize:16.0];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;titleLabel.textAlignment =&amp;nbsp;UITextAlignmentCenter;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;titleLabel.backgroundColor = [UIColor&amp;nbsp;clearColor];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;titleLabel.textColor = [UIColor&amp;nbsp;whiteColor];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;titleLabel.text =&amp;nbsp;k3PPTitle;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;[actionSheet&amp;nbsp;addSubview:titleLabel];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;[titleLabel&amp;nbsp;release];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;actionSheet.actionSheetStyle =&amp;nbsp;UIActionSheetStyleDefault;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;[actionSheet&amp;nbsp;showInView:self.view];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;CGRect actionSheetRect = actionSheet.frame;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;actionSheetRect.origin.y -=&amp;nbsp;40.0;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;actionSheetRect.size.height =&amp;nbsp;300.0;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;actionSheet.frame = actionSheetRect;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;for&amp;nbsp;(int&amp;nbsp;counter =&amp;nbsp;0; counter &amp;lt; [[actionSheet&amp;nbsp;subviews]&amp;nbsp;count]; counter++) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;UIView&amp;nbsp;*object = [[actionSheet&amp;nbsp;subviews]&amp;nbsp;objectAtIndex:counter];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;if&amp;nbsp;([object&amp;nbsp;class] ==&amp;nbsp;NSClassFromString(@”UIThreePartButton”)) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;CGRect&amp;nbsp;frame = object.frame;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; frame.origin.y&amp;nbsp;= frame.origin.y&amp;nbsp;+&amp;nbsp;30.0;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; object.frame&amp;nbsp;= frame;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/3208496910380640581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/how-to-change-of-default-title-font-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/3208496910380640581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/3208496910380640581'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/how-to-change-of-default-title-font-in.html' title='How to change of default title font in the UIActionSheet?'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-2990280174013025880</id><published>2012-01-18T01:27:00.002-08:00</published><updated>2012-01-23T08:03:14.848-08:00</updated><title type='text'>How to implement single/double click on the UITableView?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;entry&quot; style=&quot;clear: both; color: #666666; font-family: Arial,Helvetica,sans-serif; line-height: 1.3em;&quot;&gt;
&lt;div id=&quot;post-body-3670101510666167751&quot;&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;To get the touch/tap/move count on any control, there are certain methods in the UIResponder class.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;- (void)touchesBegan:(&lt;a href=&quot;http://www.blogger.com/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/Foundation/Classes/NSSet_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSSet&quot; style=&quot;color: #5f5f5f;&quot;&gt;NSSet&lt;/a&gt;&amp;nbsp;*)&lt;i&gt;touches&lt;/i&gt;&amp;nbsp;withEvent:(&lt;a href=&quot;http://www.blogger.com/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.docset/Contents/Resources/Documents/documentation/UIKit/Reference/UIEvent_Class/Reference/Reference.html#//apple_ref/doc/c_ref/UIEvent&quot; style=&quot;color: #5f5f5f;&quot;&gt;UIEvent&lt;/a&gt;&amp;nbsp;*)&lt;i&gt;event&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;- (void)touchesCancelled:(&lt;a href=&quot;http://www.blogger.com/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/Foundation/Classes/NSSet_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSSet&quot; style=&quot;color: #5f5f5f;&quot;&gt;NSSet&lt;/a&gt;&amp;nbsp;*)&lt;i&gt;touches&lt;/i&gt;&amp;nbsp;withEvent:(&lt;a href=&quot;http://www.blogger.com/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.docset/Contents/Resources/Documents/documentation/UIKit/Reference/UIEvent_Class/Reference/Reference.html#//apple_ref/doc/c_ref/UIEvent&quot; style=&quot;color: #5f5f5f;&quot;&gt;UIEvent&lt;/a&gt;&amp;nbsp;*)&lt;i&gt;event&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;- (void)touchesEnded:(&lt;a href=&quot;http://www.blogger.com/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/Foundation/Classes/NSSet_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSSet&quot; style=&quot;color: #5f5f5f;&quot;&gt;NSSet&lt;/a&gt;&amp;nbsp;*)&lt;i&gt;touches&lt;/i&gt;&amp;nbsp;withEvent:(&lt;a href=&quot;http://www.blogger.com/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.docset/Contents/Resources/Documents/documentation/UIKit/Reference/UIEvent_Class/Reference/Reference.html#//apple_ref/doc/c_ref/UIEvent&quot; style=&quot;color: #5f5f5f;&quot;&gt;UIEvent&lt;/a&gt;&amp;nbsp;*)&lt;i&gt;event&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;- (void)touchesMoved:(&lt;a href=&quot;http://www.blogger.com/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/Foundation/Classes/NSSet_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSSet&quot; style=&quot;color: #5f5f5f;&quot;&gt;NSSet&lt;/a&gt;&amp;nbsp;*)&lt;i&gt;touches&lt;/i&gt;&amp;nbsp;withEvent:(&lt;a href=&quot;http://www.blogger.com/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS4_2.iOSLibrary.docset/Contents/Resources/Documents/documentation/UIKit/Reference/UIEvent_Class/Reference/Reference.html#//apple_ref/doc/c_ref/UIEvent&quot; style=&quot;color: #5f5f5f;&quot;&gt;UIEvent&lt;/a&gt;&amp;nbsp;*)&lt;i&gt;event&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;To get the single/double click actions on UITableView, please follow the below steps:&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;1. Create a CustomTableViewCell, sub-class of the UITableViewCell. And override the above mentioned methods.&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;#import&amp;nbsp;”CustomTableViewCell.h”&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;@implementation&amp;nbsp;CustomTableViewCell&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;- (void)dealloc {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; [super&amp;nbsp;dealloc];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;- (void)drawRect:(CGRect)rect {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;CGContextRef&amp;nbsp;ctx =&amp;nbsp;UIGraphicsGetCurrentContext();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;// Use the same color and width as the default cell separator for now&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;CGContextSetRGBStrokeColor(ctx,&amp;nbsp;0.5,&amp;nbsp;0.5,&amp;nbsp;0.5,&amp;nbsp;1.0);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;CGContextSetLineWidth(ctx,&amp;nbsp;0.5);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;for&amp;nbsp;(int&amp;nbsp;i =&amp;nbsp;0; i &amp;lt; [columns&amp;nbsp;count]; i++) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;CGFloat&amp;nbsp;f = [((NSNumber*) [columns&amp;nbsp;objectAtIndex:i])&amp;nbsp;floatValue];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;CGContextMoveToPoint(ctx, f,&amp;nbsp;0);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;CGContextAddLineToPoint(ctx, f,&amp;nbsp;self.bounds.size.height);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;CGContextStrokePath(ctx);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; [super&amp;nbsp;drawRect:rect];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;- (void)addColumn:(CGFloat)position {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; [columns&amp;nbsp;addObject:[NSNumber&amp;nbsp;numberWithFloat:position]];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;- (void)touchesBegan:(NSSet&amp;nbsp;*)touches withEvent:(UIEvent&amp;nbsp;*)event {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;UITouch&amp;nbsp;*aTouch = [touches&amp;nbsp;anyObject];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;NSLog(@”touchesBegan tapCount = %d”, [aTouch&amp;nbsp;tapCount]);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;- (void)touchesCancelled:(NSSet&amp;nbsp;*)touches withEvent:(UIEvent&amp;nbsp;*)event {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;UITouch&amp;nbsp;*aTouch = [touches&amp;nbsp;anyObject];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;NSLog(@”touchesCancelled tapCount = %d”, [aTouch&amp;nbsp;tapCount]);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;- (void)touchesEnded:(NSSet&amp;nbsp;*)touches withEvent:(UIEvent&amp;nbsp;*)event {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;UITouch&amp;nbsp;*aTouch = [touches&amp;nbsp;anyObject];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;NSLog(@”touchesEnded tapCount = %d”, [aTouch&amp;nbsp;tapCount]);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;- (void)touchesMoved:(NSSet&amp;nbsp;*)touches withEvent:(UIEvent&amp;nbsp;*)event {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;UITouch&amp;nbsp;*aTouch = [touches&amp;nbsp;anyObject];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;NSLog(@”touchesMoved tapCount = %d”, [aTouch&amp;nbsp;tapCount]);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;&lt;i&gt;2. In the UITableView’s cellForRowAtIndexPath method, add the&amp;nbsp;&lt;/i&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;CustomTableViewCell instead of UITableViewCell.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;- (UITableViewCell&amp;nbsp;*)tableView:(UITableView&amp;nbsp;*)tableView&amp;nbsp;cellForRowAtIndexPath:(NSIndexPath&amp;nbsp;*)indexPath {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;NSString&amp;nbsp;*MyIdentifier = [NSString&amp;nbsp;stringWithFormat:@&quot;MyIdentifier %i&quot;, indexPath.row];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;CustomTableViewCell&amp;nbsp;*cell = (CustomTableViewCell&amp;nbsp;*)[tableView&amp;nbsp;dequeueReusableCellWithIdentifier:MyIdentifier];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;if&amp;nbsp;(cell ==&amp;nbsp;nil) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cell = [[[CustomTableViewCell&amp;nbsp;alloc]&amp;nbsp;initWithFrame:CGRectZero&amp;nbsp;reuseIdentifier:MyIdentifier]&amp;nbsp;autorelease];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;UILabel&amp;nbsp;*regNoLabel = [[UILabel&amp;nbsp;alloc]&amp;nbsp;initWithFrame:CGRectMake(20,&amp;nbsp;3,&amp;nbsp;150,&amp;nbsp;15)];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;//regNoLabel.text = [[self.resultArray objectAtIndex:indexPath.section] valueForKey:@”Ent_Regn_Nbr”];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;regNoLabel.text&amp;nbsp;=&amp;nbsp;@”Apple”;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;regNoLabel.font&amp;nbsp;= [UIFont&amp;nbsp;systemFontOfSize:12.0];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;[cell&amp;nbsp;addSubview:regNoLabel];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;[regNoLabel&amp;nbsp;release];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return&amp;nbsp;cell;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;When you test the application with this, you can observe the tap count in the logs.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div class=&quot;sharedaddy&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;clear&quot; style=&quot;clear: both; color: #666666; font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/2990280174013025880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/how-to-implement-singledouble-click-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/2990280174013025880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/2990280174013025880'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/how-to-implement-singledouble-click-on.html' title='How to implement single/double click on the UITableView?'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-4881027279355816015</id><published>2012-01-18T01:27:00.000-08:00</published><updated>2012-01-18T01:27:03.997-08:00</updated><title type='text'>Automatic Reference Counting in IOS5</title><content type='html'>&lt;br /&gt;
&lt;div style=&quot;color: #666666; font-family: Palatino, Georgia, Baskerville, serif; font-size: 14px; line-height: 18px;&quot;&gt;
Automatic Reference Counting (ARC) for Objective-C makes memory management the job of the compiler. By enabling ARC with the new Apple LLVM compiler, you will never need to type retain or release again, dramatically simplifying the development process, while reducing crashes and memory leaks. The compiler has a complete understanding of your objects, and releases each object the instant it is no longer used, so apps run as fast as ever, with predictable, smooth performance.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/4881027279355816015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/automatic-reference-counting-in-ios5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/4881027279355816015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/4881027279355816015'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/automatic-reference-counting-in-ios5.html' title='Automatic Reference Counting in IOS5'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-4408645798994217248</id><published>2012-01-18T01:26:00.002-08:00</published><updated>2012-01-23T08:05:05.116-08:00</updated><title type='text'>How to download a large file with the iPhone SDK and avoid memory usage issues?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #666666; font-family: Arial,Helvetica,sans-serif; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;I was facing some problem while downloading the large content:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Using the&amp;nbsp;&lt;code style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;NSURLConnection&lt;/code&gt;&amp;nbsp;class to download a large file in an iPhone application, but it crashes every so often because it’s using too much memory. I’m doing the usual&amp;nbsp;&lt;code style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;NSURLConnection&lt;/code&gt;&amp;nbsp;usage, to append the received data to a&amp;nbsp;&lt;code&gt;NSMutableData&lt;/code&gt;&amp;nbsp;object.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #666666; font-family: Arial,Helvetica,sans-serif; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Solution to the above problem is:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;In the delegate method connectionDidReceiveData, we can store the content in the file&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #666666; font-size: small; line-height: 18px;&quot;&gt;&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;code&gt;- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data{ &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/code&gt;
&lt;code&gt; filename = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;code&gt;NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:save_name]; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/code&gt;
&lt;code&gt; NSFileHandle *file1 = [NSFileHandle fileHandleForUpdatingAtPath: filename]; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/code&gt;
&lt;code&gt; [file1 writeData: data]; &amp;nbsp; &amp;nbsp;
 [file1 closeFile];&amp;nbsp;&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/4408645798994217248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/how-to-download-large-file-with-iphone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/4408645798994217248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/4408645798994217248'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/how-to-download-large-file-with-iphone.html' title='How to download a large file with the iPhone SDK and avoid memory usage issues?'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-9177313136457918229</id><published>2012-01-18T01:26:00.000-08:00</published><updated>2012-01-23T08:04:14.030-08:00</updated><title type='text'>6 steps for better designing of any application</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol style=&quot;color: #666666; font-family: Arial,Helvetica,sans-serif; line-height: 18px;&quot;&gt;
&lt;li style=&quot;line-height: 21px; list-style-position: outside; list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Structure&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px; list-style-position: outside; list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Navigation&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px; list-style-position: outside; list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Reduction&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px; list-style-position: outside; list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Appearance&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px; list-style-position: outside; list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Feedback&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px; list-style-position: outside; list-style-type: decimal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Optimization&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;color: #666666; font-family: Arial,Helvetica,sans-serif; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Structure to be defined by User Mental Model, the way a task is perceived by the end user.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/9177313136457918229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/6-steps-for-better-designing-of-any.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/9177313136457918229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/9177313136457918229'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/6-steps-for-better-designing-of-any.html' title='6 steps for better designing of any application'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3817992304881055766.post-5847226383676590944</id><published>2012-01-18T01:25:00.001-08:00</published><updated>2012-01-23T08:04:04.206-08:00</updated><title type='text'>Memory Management Tips!!!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;color: #666666; font-family: Arial,Helvetica,sans-serif; line-height: 18px;&quot;&gt;
&lt;li style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Respond to Memory Warnings&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Avoid Using Autoreleased Objects&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Use Lazy Loading and Reuse&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Avoid UIImage’s imageNamed:&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Build Custom Table Cells and Reuse Them Properly&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Override Setters Properly&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Beware of Delegation&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Use Instruments&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Use a Static Analysis Tool&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;line-height: 21px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Use NSZombieEnabled&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iphoneappsd.blogspot.com/feeds/5847226383676590944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/memory-management-tips.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/5847226383676590944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3817992304881055766/posts/default/5847226383676590944'/><link rel='alternate' type='text/html' href='http://iphoneappsd.blogspot.com/2012/01/memory-management-tips.html' title='Memory Management Tips!!!'/><author><name>kumar</name><uri>http://www.blogger.com/profile/04732353953646594369</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>