<?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-4602316338438806651</id><updated>2026-10-16T15:14:20.339-07:00</updated><category term="quartz"/><category term="quartz core"/><category term="quartz tutorial"/><category term="iphone"/><category term="iphone user interactive chart lib"/><category term="MIMChartLib"/><category term="QuartzCore"/><category term="MIM chart Library"/><category term="iphone chart lib"/><category term="quartz core gradient"/><category term="iPad"/><category term="pie chart"/><category term="CGRectGetWidth"/><category term="cgrect intersection"/><category term="cgrectmake"/><category term="CGRectGetMaxX"/><category term="CGRectGetMaxY"/><category term="CGRectGetMinX"/><category term="CGRectGetMinY"/><category term="Objective-C"/><category term="CGRectContainsPoint"/><category term="NSDate"/><category term="XCode 4"/><category term="apple"/><category term="transition effect"/><category term="NSString"/><category term="app store"/><category term="cgrect contains point"/><category term="iOS 5"/><category term="CoreText"/><category term="Objective-C Tutorial"/><category term="bar chart"/><category term="iOS 4"/><category term="iphone 4"/><category term="iphone group bar chart"/><category term="mac"/><category term="opengl es"/><category term="slideshow"/><category term="CGContext"/><category term="CGRectIntersectsRect"/><category term="MacOS X"/><category term="NSArray"/><category term="Twitter"/><category term="UIBezierPath"/><category term="github"/><category term="iphone Wallgraph"/><category term="iphone line graph"/><category term="opengl es 2.0 tutorial"/><category term="provisioning portal"/><category term="xcode"/><category term="3ds max"/><category term="C++"/><category term="CGContextDrawLinearGradient"/><category term="CGContextRestoreGState"/><category term="CGContextSaveGState"/><category term="CGRectDivide"/><category term="Face Detection"/><category term="GLUT"/><category term="Internationalization"/><category term="NSDateFormatter"/><category term="NSDictionary"/><category term="NSMutableArray"/><category term="Pencil tool"/><category term="SLComposeViewControllerCompletionHandler"/><category term="UIButton"/><category term="UIColor Tutorial"/><category term="UIGestureRecognizer"/><category term="UILongPressGestureRecognizer"/><category term="UIPanGestureRecognizer"/><category term="UITableView"/><category term="WWDC 2011"/><category term="color picker"/><category term="compare"/><category term="draw line"/><category term="github tutorial"/><category term="iCloud"/><category term="iOS"/><category term="iOS Rich Text Editor"/><category term="insertRowsAtIndexPaths"/><category term="insertion"/><category term="iphone 5"/><category term="iphone wall graph"/><category term="load nib for UIView"/><category term="macbook"/><category term="mosaic effect"/><category term="multiple language support"/><category term="split keyboard"/><category term="uilabel"/><category term="upload app"/><category term=".m"/><category term=".mm"/><category term="1000s of UIImageView on UIScrollView"/><category term="102"/><category term="2 Enums having same values"/><category term="2D CD"/><category term="2D disk"/><category term="32 bit"/><category term="3D rotation"/><category term="3d"/><category term="3d shapes"/><category term="3ds max 2010"/><category term="64 bit"/><category term="7-zip"/><category term="ABAddressBookAddRecord"/><category term="ABAddressBookCreate"/><category term="ABPersonCreate"/><category term="Ad Hoc"/><category term="Add Image in iPad Simulator"/><category term="Alternative to Twitterfeed"/><category term="Android"/><category term="Angry"/><category term="Application Loader"/><category term="Bird"/><category term="Blogger"/><category term="CABasicAnimation."/><category term="CAShapeLayer"/><category term="CFAttributedStringSetAttribute"/><category term="CFMutableAttributedStringRef"/><category term="CFStringRef"/><category term="CGColorSpaceRef"/><category term="CGContext flip"/><category term="CGContextClip"/><category term="CGContextClosePath"/><category term="CGContextDrawRadialGradient"/><category term="CGContextRef"/><category term="CGRectContainsRect"/><category term="CGRectIntersection"/><category term="Cocoa"/><category term="Convert NSDate to NSString"/><category term="Copy items"/><category term="Core Image Framework"/><category term="CoreImage"/><category term="DashCode"/><category term="Date Components"/><category term="Delegate"/><category term="DigitalColor Meter"/><category term="EKEvent"/><category term="EKEventStore"/><category term="Enumerations"/><category term="Fetch address from ABRecordRef"/><category term="First Mac App"/><category term="Font family"/><category term="GCC"/><category term="GL Kit"/><category term="GLKit"/><category term="GameKit"/><category term="Gmail&#39;s new look"/><category term="Google +"/><category term="Google Feedburner"/><category term="Google URL Shortner"/><category term="Google plus"/><category term="HTML"/><category term="How to Save array of custom class in NSUserDefaults"/><category term="ImageEdgeInsets"/><category term="Instrument"/><category term="LEGO"/><category term="Like query"/><category term="Lisa Orrell"/><category term="Localization"/><category term="Localization of nib files"/><category term="MIM Chart Lib version Alpha  1.0"/><category term="MIM Chart Lib version Alpha 1.0"/><category term="MIMChart Library Update 1.1"/><category term="MacOS X Lion"/><category term="Microsoft Visual 2010"/><category term="Mobile template"/><category term="Mountain Lion OS"/><category term="N-ary Tree breadth traversal"/><category term="NSAssert"/><category term="NSAttributedString"/><category term="NSCalendar"/><category term="NSInternalInconsistencyException"/><category term="NSKeyedUnarchiver"/><category term="NSLog"/><category term="NSLog NSString"/><category term="NSLog char"/><category term="NSLog double"/><category term="NSLog float"/><category term="NSLog string"/><category term="NSLog upto 1 decimal place"/><category term="NSLog upto 2 decimal place"/><category term="NSNotification"/><category term="NSNumber"/><category term="NSScanner"/><category term="NSSortDescriptor"/><category term="NSSortDescriptor Example"/><category term="NSSortDescriptor NSDate"/><category term="NSSortDescriptor case insensitive"/><category term="NSSortDescriptor selector"/><category term="NSUserDefaults example"/><category term="NSUserDefaults tutorial"/><category term="NSValue"/><category term="New MAc oS"/><category term="Objective C"/><category term="Open GL"/><category term="Pen Tool"/><category term="Post Blogger Feed to Twitter"/><category term="Private variable"/><category term="Public Variable"/><category term="QLPreviewController"/><category term="QuickLook"/><category term="RGB to UIColor"/><category term="Rate"/><category term="Rich Text Editing"/><category term="SEL"/><category term="SLComposeViewController"/><category term="SLServiceTypeFacebook"/><category term="SLServiceTypeTwitter"/><category term="SQL query"/><category term="Setting bundle iphone"/><category term="Settings on iPhone"/><category term="Space"/><category term="Sqlite"/><category term="TED"/><category term="UIBarButtonItem"/><category term="UIBarButtonSystemItemFlexibleSpace"/><category term="UIBezierPath tutorial"/><category term="UIButton 101"/><category term="UIColor extract RGB components"/><category term="UIGestureRecognizerDelegate"/><category term="UIImageView"/><category term="UIKeyboard"/><category term="UILAertview frame size."/><category term="UINavigationButton"/><category term="UIPinchGestureRecognizer"/><category term="UIRotationGestureRecognizer"/><category term="UIScrollView"/><category term="UISegmentControl"/><category term="UITableViewCell"/><category term="UITableViewRowAnimationAutomatic"/><category term="UITapGestureRecognizer"/><category term="UIToolBar"/><category term="UIUserInterfaceIdiomPad"/><category term="UIViewAnimation"/><category term="User Language Setting"/><category term="XCode 4 nib tutorial"/><category term="XCode 4.3"/><category term="XCode 4.5"/><category term="_UIViewServiceErrorDomain"/><category term="_mycompanyname_"/><category term="ad-hoc distribution"/><category term="add event"/><category term="add more phone numbers"/><category term="add toolbar to keyboard"/><category term="alertview button frame"/><category term="alertview textfield"/><category term="animate"/><category term="anti-alias"/><category term="app build"/><category term="app id"/><category term="binary"/><category term="binary reject"/><category term="bitmap"/><category term="blue NavigationBar button"/><category term="bool"/><category term="bounding"/><category term="brush tool"/><category term="build"/><category term="bundle id"/><category term="capitalize first letter of NSString"/><category term="catch"/><category term="change format of NSDate"/><category term="chapter 1"/><category term="chart"/><category term="circle"/><category term="cluster chart"/><category term="cocos2d mac"/><category term="code signing"/><category term="color"/><category term="combine gestures"/><category term="commit"/><category term="compare CGPoint"/><category term="compare NSDate"/><category term="conversion"/><category term="convert NSString to NSDate"/><category term="corner radius"/><category term="customize keyboard"/><category term="customized  alertview"/><category term="day name in a date"/><category term="debug"/><category term="deep copy"/><category term="deleteRowsAtIndexPaths"/><category term="deletion"/><category term="developer account"/><category term="distribution"/><category term="distribution build"/><category term="distribution profile."/><category term="double tap"/><category term="doughnut"/><category term="enum"/><category term="exception handling objective C"/><category term="expand"/><category term="facebook"/><category term="facebook page"/><category term="finally"/><category term="find NSString contains only numbers."/><category term="find day for a date"/><category term="find iPhone language"/><category term="find specific characters in NSString"/><category term="fragmented disk"/><category term="fragmented pie chart"/><category term="frameworks"/><category term="gesture protocol"/><category term="gl.h"/><category term="glu.h"/><category term="glu32.lib"/><category term="gradient in context shapes"/><category term="gradient."/><category term="graph"/><category term="header"/><category term="horizontal flip"/><category term="iOS 3.2"/><category term="iOS 4.0"/><category term="iOS 5 framework"/><category term="iOS 6 sample code"/><category term="iPad HD"/><category term="iPad Rich Text Editor"/><category term="iPhone 3D Programming"/><category term="iPhone add event code"/><category term="iPhone class * does not fully implement the * protocol"/><category term="iPhone color wheel"/><category term="iPhone language change"/><category term="iTunes sync failed to start"/><category term="infinite loop"/><category term="inputAccessoryView"/><category term="installation"/><category term="integer"/><category term="ipad chart lib"/><category term="iphone app external setting page"/><category term="iphone bar chart"/><category term="iphone developer"/><category term="iphone gradient"/><category term="iphone localization"/><category term="iphone read csv file"/><category term="iphone read file"/><category term="iphone resource path"/><category term="iphone user interactive chart library"/><category term="isEqualTo"/><category term="itunes connect"/><category term="join character sets"/><category term="kCTFontAttributeName"/><category term="kCTForegroundColorAttributeName"/><category term="layer"/><category term="library"/><category term="line"/><category term="match strings in SQLite3"/><category term="memory  leaks"/><category term="minimum iOS device OS."/><category term="mix C++ with Objective-C"/><category term="mon"/><category term="month"/><category term="month in a date"/><category term="most simple way to localize"/><category term="multiple"/><category term="multiple ORDER BY"/><category term="mutable copy of ABMultiValueRef"/><category term="new iPad"/><category term="new iPad feature"/><category term="nib tutorial"/><category term="number of days in a month"/><category term="opengl"/><category term="opengl32.lib"/><category term="optional"/><category term="override loadView"/><category term="pattern brush"/><category term="pie Chart iPad"/><category term="pie chart iPhone"/><category term="piechart"/><category term="pixel data"/><category term="post notifications"/><category term="private method in Objective C"/><category term="programatically"/><category term="programmatically"/><category term="quadrant"/><category term="r0 files"/><category term="raw data"/><category term="rect"/><category term="redo undo"/><category term="reorder"/><category term="rotation  matrix"/><category term="rounded rect border"/><category term="rounded rect image"/><category term="safari"/><category term="save nsdate in coredata"/><category term="saving custom class in NSUserDefault"/><category term="screenshot"/><category term="segmentBar"/><category term="selected area screenshot"/><category term="selector"/><category term="setting"/><category term="shadow"/><category term="shrink tableview"/><category term="single tap"/><category term="social networks"/><category term="sort"/><category term="sortedArrayUsingSelector"/><category term="specifier-qualifier-list"/><category term="stars"/><category term="status bar hide"/><category term="sudo: port: command not found"/><category term="sun"/><category term="switch to Gmail&#39;s new look"/><category term="target audience"/><category term="text shrink"/><category term="textfield"/><category term="timestamp"/><category term="tips"/><category term="torrent"/><category term="touchesBegan"/><category term="transformation on CGContextRef"/><category term="try"/><category term="tue"/><category term="twellow"/><category term="twitter search"/><category term="typedef enum"/><category term="uitableview collapsible"/><category term="underline text"/><category term="upload"/><category term="vampire diaries"/><category term="vector image"/><category term="vertical flip"/><category term="viewDidLoad multiple times"/><category term="viewServiceDidTerminateWithError"/><category term="visual studio 2010"/><category term="wiggle animation"/><category term="willPresentAlertView"/><category term="windows 7"/><category term="winrar"/><title type='text'>Mobile and Social Network Technology</title><subtitle type='html'>This blog talks about iOS,Android,Mac,Cocoa,use of social networks, tips and tricks which can be used by you.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>229</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-1646350192546354398</id><published>2012-12-12T14:14:00.000-08:00</published><updated>2012-12-12T14:14:05.003-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cocos2d mac"/><category scheme="http://www.blogger.com/atom/ns#" term="textfield"/><title type='text'>Textfield on cocos2d Mac</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Surprisingly adding a textfield in cocos2d Mac isn&#39;t as simple as in cocos2d iOS. There are various suggestions by other coders on how to do this.&lt;br /&gt;
&lt;br /&gt;
This sample code tells you one of the several ways to deal with the textfield in cocos2d Mac.&lt;br /&gt;
&lt;a href=&quot;http://dl.dropbox.com/u/1396078/TextfieldProject.zip&quot;&gt;HERE is the download link.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this sample code, I have created an external window which opens up when the user hits the textfield.&lt;br /&gt;
Here is the UserInterface of nib file. (&lt;i&gt;TextFieldView.xib&lt;/i&gt;).&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivHL67VEjgaLMWZ7YLnFwjBkrUBGRRQTuJJYb52fIv8pGDGuGB3lTRmxPH64T0b0dJx5kO_NahvGOKBTlpULRcagV_KXOBp4xefei2eMN1GD_b3lNhVxSaD7cie0PrFAkNptu196z2dQ/s1600/Screen+Shot+2012-12-12+at+5.14.47+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;173&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivHL67VEjgaLMWZ7YLnFwjBkrUBGRRQTuJJYb52fIv8pGDGuGB3lTRmxPH64T0b0dJx5kO_NahvGOKBTlpULRcagV_KXOBp4xefei2eMN1GD_b3lNhVxSaD7cie0PrFAkNptu196z2dQ/s320/Screen+Shot+2012-12-12+at+5.14.47+PM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We have following connections on this window.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixR3yRnrzqgfin2oJeXIfgfZ_hW2YBCpL97WyQzE6crfoQ8tUq2UbTXOVUR4JpHz8XsdkauqXcGDATvjJwri4ihR-Wt4dZomBKRMbctzh4sXVS9BkiCTHAsHZzgdsdrKHlmKj6u_mIqA/s1600/Screen+Shot+2012-12-12+at+5.21.10+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixR3yRnrzqgfin2oJeXIfgfZ_hW2YBCpL97WyQzE6crfoQ8tUq2UbTXOVUR4JpHz8XsdkauqXcGDATvjJwri4ihR-Wt4dZomBKRMbctzh4sXVS9BkiCTHAsHZzgdsdrKHlmKj6u_mIqA/s1600/Screen+Shot+2012-12-12+at+5.21.10+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When I run the app, my window looks like following with textfield which is actually a touch responsive&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3e8388; font-family: Menlo; font-size: 11px;&quot;&gt;CCMenuItemImage&lt;/span&gt;&amp;nbsp;and on top of it sits a&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3e8388; font-family: Menlo; font-size: 11px;&quot;&gt;CCLabelTTF&amp;nbsp;&lt;/span&gt;which says Enter UserName. This string&quot;Enter UserName&quot; will be changed to whatever user enters in the Textfield popup.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfsny2qf1xNtYI2cHXk3PELpHuAnSXcOxfS9tEbA74qZU_FmkoTPpClUzngRyq_WH0F3jvyk_r-cn7d_Mrf_5fql_hf1MmbuL19ptQ9ETCeI1_mmbbahS_02BXqWSKKGp758CTR-eiBg/s1600/Screen+Shot+2012-12-12+at+5.15.04+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfsny2qf1xNtYI2cHXk3PELpHuAnSXcOxfS9tEbA74qZU_FmkoTPpClUzngRyq_WH0F3jvyk_r-cn7d_Mrf_5fql_hf1MmbuL19ptQ9ETCeI1_mmbbahS_02BXqWSKKGp758CTR-eiBg/s1600/Screen+Shot+2012-12-12+at+5.15.04+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When I click on the Enter Username with my mouse, it opens the popup with the textfield. Following code is executed to make the window pop up:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #3e8388; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;TextfieldProjectAppDelegate&lt;span style=&quot;color: black;&quot;&gt;* appDelegate = (&lt;/span&gt;TextfieldProjectAppDelegate&lt;span style=&quot;color: black;&quot;&gt;*)[[&lt;/span&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSApplication&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;sharedApplication&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;delegate&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #3e8388;&quot;&gt;tView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; = [[&lt;/span&gt;&lt;span style=&quot;color: #3e8388;&quot;&gt;TextFieldView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084;&quot;&gt;initWithWindowNibName&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;TextFieldView&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #7f4627;&quot;&gt;assert&lt;/span&gt; ([appDelegate &lt;span style=&quot;color: #235a5e;&quot;&gt;window&lt;/span&gt;]);&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #7f4627;&quot;&gt;assert&lt;/span&gt; ([&lt;span style=&quot;color: #3e8388;&quot;&gt;tView&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;window&lt;/span&gt;]);&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;[&lt;/span&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSApp&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;beginSheet&lt;span style=&quot;color: black;&quot;&gt;:[&lt;/span&gt;&lt;span style=&quot;color: #3e8388;&quot;&gt;tView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;window&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #490084;&quot;&gt;modalForWindow&lt;/span&gt;:[appDelegate &lt;span style=&quot;color: #235a5e;&quot;&gt;window&lt;/span&gt;]&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;modalDelegate&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;self&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #490084;&quot;&gt;didEndSelector&lt;/span&gt;:&lt;span style=&quot;color: #ce00a4;&quot;&gt;@selector&lt;/span&gt;(usernameSheetDidEnd:returnCode:contextInfo:)&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #490084;&quot;&gt;contextInfo&lt;/span&gt;:&lt;span style=&quot;color: #ce00a4;&quot;&gt;NULL&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDfsPbez5IZ66Db4zcwncnzsyhIJhZSMiASTWSLR8pzvEz0wdk_fNiKB4wgDjGHHQKXFLuVEoqo3s_VZDf8sJgmVzA1pYUHazidAPqx6Jo_UqbcuZ2-16QZZcsw1r2e5Bz10xhiSP8PQ/s1600/Screen+Shot+2012-12-12+at+5.15.13+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDfsPbez5IZ66Db4zcwncnzsyhIJhZSMiASTWSLR8pzvEz0wdk_fNiKB4wgDjGHHQKXFLuVEoqo3s_VZDf8sJgmVzA1pYUHazidAPqx6Jo_UqbcuZ2-16QZZcsw1r2e5Bz10xhiSP8PQ/s1600/Screen+Shot+2012-12-12+at+5.15.13+PM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We also need to define a selector which is where the control comes back when the popup is gone, hence we implement the following:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
- (&lt;span style=&quot;color: #ce00a4;&quot;&gt;void&lt;/span&gt;)usernameSheetDidEnd:(&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSWindow&lt;/span&gt; *)sheet returnCode:(&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSInteger&lt;/span&gt;)returnCode contextInfo:(&lt;span style=&quot;color: #ce00a4;&quot;&gt;void&lt;/span&gt; *)contextInfo {&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [sheet &lt;span style=&quot;color: #490084;&quot;&gt;orderOut&lt;/span&gt;:&lt;span style=&quot;color: #ce00a4;&quot;&gt;nil&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #e30009; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;NSLog&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;@&quot;name == %@&quot;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #3e8388;&quot;&gt;tView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #3e8388;&quot;&gt;username&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;//Need to update text on textfield&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #3e8388;&quot;&gt;CCLabelTTF&lt;/span&gt; *userName=(&lt;span style=&quot;color: #3e8388;&quot;&gt;CCLabelTTF&lt;/span&gt;*)[&lt;span style=&quot;color: #ce00a4;&quot;&gt;self&lt;/span&gt; &lt;span style=&quot;color: #235a5e;&quot;&gt;getChildByTag&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;106&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; userName.&lt;span style=&quot;color: #7e1bad;&quot;&gt;string&lt;/span&gt;=&lt;span style=&quot;color: #3e8388;&quot;&gt;tView&lt;/span&gt;.&lt;span style=&quot;color: #3e8388;&quot;&gt;username&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
When you are done entering the value in textfield popup, just hit the OK button. When you do that following method(implemented in &lt;i&gt;TextFieldView.m&lt;/i&gt; ) is executed. This method makes the popup go away. This is the selector method attached with OK button. You can view the connections in the Xib Interface Window in Xcode (already described above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
- (&lt;span style=&quot;color: #ce00a4;&quot;&gt;IBAction&lt;/span&gt;)usernameEntered:(&lt;span style=&quot;color: #ce00a4;&quot;&gt;id&lt;/span&gt;)sender {&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3e8388; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;username&lt;span style=&quot;color: black;&quot;&gt;=[&lt;/span&gt;nameField&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;stringValue&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;NSApp&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;endSheet&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;window&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/1646350192546354398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/12/textfield-on-cocos2d-mac.html#comment-form' title='21 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/1646350192546354398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/1646350192546354398'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/12/textfield-on-cocos2d-mac.html' title='Textfield on cocos2d Mac'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivHL67VEjgaLMWZ7YLnFwjBkrUBGRRQTuJJYb52fIv8pGDGuGB3lTRmxPH64T0b0dJx5kO_NahvGOKBTlpULRcagV_KXOBp4xefei2eMN1GD_b3lNhVxSaD7cie0PrFAkNptu196z2dQ/s72-c/Screen+Shot+2012-12-12+at+5.14.47+PM.png" height="72" width="72"/><thr:total>21</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-8445103436939755699</id><published>2012-11-22T11:32:00.000-08:00</published><updated>2012-11-22T11:32:28.089-08:00</updated><title type='text'>Conversion between CGPoint &amp; NSValue (Mac)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;To convert CGPoint to NSValue:&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7e03af; font-family: Menlo; font-size: 11px;&quot;&gt;NSValue &lt;/span&gt;&lt;span style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;XY&lt;/span&gt;&lt;span style=&quot;color: #490086; font-family: Menlo; font-size: 11px;&quot;&gt; = [&lt;/span&gt;&lt;span style=&quot;color: #7e03af; font-family: Menlo; font-size: 11px;&quot;&gt;NSValue&lt;/span&gt;&lt;span style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490086; font-family: Menlo; font-size: 11px;&quot;&gt;valueWithPoint&lt;/span&gt;&lt;span style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #490086; font-family: Menlo; font-size: 11px;&quot;&gt;CGPointMake&lt;/span&gt;&lt;span style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;(X, Y)];&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;To retrieve CGPoint from NSValue:&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;span style=&quot;color: #7e03af;&quot;&gt;CGPoint&lt;/span&gt; mPoint=[valueXY&amp;nbsp;&lt;span style=&quot;color: #490086;&quot;&gt;pointValue&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/8445103436939755699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/11/conversion-between-cgpoint-nsvalue-mac.html#comment-form' title='30 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/8445103436939755699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/8445103436939755699'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/11/conversion-between-cgpoint-nsvalue-mac.html' title='Conversion between CGPoint &amp; NSValue (Mac)'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>30</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-155063222227231182</id><published>2012-11-22T09:30:00.001-08:00</published><updated>2012-11-22T09:37:42.999-08:00</updated><title type='text'>Icons for Mac App</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This article also covers how to create .icns file which is used as icon for Mac Applications.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First,you need to create a folder with .iconset as suffix.&lt;br /&gt;
This folder will have following items with the dimensions mentioned and named as per screenshot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul class=&quot;simple&quot; style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; list-style: none outside; margin: 0px 0px 0px 2.5em; padding: 0px 0px 0.5em; text-align: -webkit-auto;&quot;&gt;
&lt;li style=&quot;margin-top: 1px;&quot;&gt;&lt;div style=&quot;display: inline; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
&lt;code style=&quot;color: #666666; font-family: Courier, Consolas, monospace;&quot;&gt;icon_16x16.png&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-top: 1px;&quot;&gt;&lt;div style=&quot;display: inline; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
&lt;code style=&quot;color: #666666; font-family: Courier, Consolas, monospace;&quot;&gt;icon_16x16@2x.png&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-top: 1px;&quot;&gt;&lt;div style=&quot;display: inline; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
&lt;code style=&quot;color: #666666; font-family: Courier, Consolas, monospace;&quot;&gt;icon_32x32.png&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-top: 1px;&quot;&gt;&lt;div style=&quot;display: inline; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
&lt;code style=&quot;color: #666666; font-family: Courier, Consolas, monospace;&quot;&gt;icon_32x32@2x.png&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-top: 1px;&quot;&gt;&lt;div style=&quot;display: inline; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
&lt;code style=&quot;color: #666666; font-family: Courier, Consolas, monospace;&quot;&gt;icon_128x128.png&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-top: 1px;&quot;&gt;&lt;div style=&quot;display: inline; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
&lt;code style=&quot;color: #666666; font-family: Courier, Consolas, monospace;&quot;&gt;icon_128x128@2x.png&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-top: 1px;&quot;&gt;&lt;div style=&quot;display: inline; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
&lt;code style=&quot;color: #666666; font-family: Courier, Consolas, monospace;&quot;&gt;icon_256x256.png&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-top: 1px;&quot;&gt;&lt;div style=&quot;display: inline; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
&lt;code style=&quot;color: #666666; font-family: Courier, Consolas, monospace;&quot;&gt;icon_256x256@2x.png&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-top: 1px;&quot;&gt;&lt;div style=&quot;display: inline; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
&lt;code style=&quot;color: #666666; font-family: Courier, Consolas, monospace;&quot;&gt;icon_512x512.png&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-top: 1px;&quot;&gt;&lt;div style=&quot;display: inline; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
&lt;code style=&quot;color: #666666; font-family: Courier, Consolas, monospace;&quot;&gt;icon_512x512@2x.png&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyeZV_6sS3lTi-M32SeQQeNQAoxTdMew6Wxk_ImHA_TO6XNruK7VK1FCNFqhli8PHsfeDEM1tBkxx45etgQY7IYTyi7eMUFGKINPbxHZq0w5sN8NpdDGIKk69yhce0j5Al7Gzlh-8CLQ/s1600/Screen+Shot+2012-11-22+at+10.30.53+AM.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyeZV_6sS3lTi-M32SeQQeNQAoxTdMew6Wxk_ImHA_TO6XNruK7VK1FCNFqhli8PHsfeDEM1tBkxx45etgQY7IYTyi7eMUFGKINPbxHZq0w5sN8NpdDGIKk69yhce0j5Al7Gzlh-8CLQ/s1600/Screen+Shot+2012-11-22+at+10.30.53+AM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;You go into the directory where you saved icon.iconset folder and then &amp;nbsp;run following command on Terminal to create icns file.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;gt; iconutil -c icns icon.iconset/&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;This will give you a single file as output named icon.icns in the same parent directory as icon.iconset, Add this file to resources of your application. Now i&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;n your project, you need to update the Icon name in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;Info.plist like in screenshot here.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh13YJ-6g4Mwq1sBLaddc3K7xvKoOvykS6RWt-8MYwycpW-2pg0UYTLvqhPBcXoh2EQdn8mjoCGYvqAry_E5UcwzOWyOuSy1ozWTbrfGhWZlkBxkcY6-6p5HuafNoq8G3RWRUtBocZng/s1600/Screen+Shot+2012-11-22+at+10.34.12+AM.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh13YJ-6g4Mwq1sBLaddc3K7xvKoOvykS6RWt-8MYwycpW-2pg0UYTLvqhPBcXoh2EQdn8mjoCGYvqAry_E5UcwzOWyOuSy1ozWTbrfGhWZlkBxkcY6-6p5HuafNoq8G3RWRUtBocZng/s1600/Screen+Shot+2012-11-22+at+10.34.12+AM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;Note: Apple documents say that you can add icon.iconset folder itself to your app&#39;s resources and Xcode 4.4 automatically creates .icns file for you. It also notes that &lt;b&gt;&quot;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;u&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; text-align: left;&quot;&gt;Don’t use Icon Composer—it can’t create high-resolution&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: white; font-family: Courier, Consolas, monospace; font-size: 13px; text-align: left;&quot;&gt;icns&lt;/code&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;u&gt;&amp;nbsp;files.&lt;/u&gt;&lt;/span&gt;&quot; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;text-align: left;&quot;&gt;. &lt;/span&gt;&lt;a href=&quot;http://developer.apple.com/library/mac/#documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;HERE IS THE LINK&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/155063222227231182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/11/icons-for-mac-app.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/155063222227231182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/155063222227231182'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/11/icons-for-mac-app.html' title='Icons for Mac App'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyeZV_6sS3lTi-M32SeQQeNQAoxTdMew6Wxk_ImHA_TO6XNruK7VK1FCNFqhli8PHsfeDEM1tBkxx45etgQY7IYTyi7eMUFGKINPbxHZq0w5sN8NpdDGIKk69yhce0j5Al7Gzlh-8CLQ/s72-c/Screen+Shot+2012-11-22+at+10.30.53+AM.png" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-1295329404448442981</id><published>2012-11-20T08:14:00.002-08:00</published><updated>2012-11-20T08:20:34.805-08:00</updated><title type='text'>Cocos2d For Mac</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;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;Create a folder say(Cocos2DGame) where you want to download a copy of &amp;nbsp; Cocos2d:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;On your Terminal,&lt;/span&gt;&lt;br /&gt;
&lt;code class=&quot;bash plain&quot; style=&quot;background-color: white; 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; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; min-height: inherit !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;&quot;&gt;&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;background-color: white; 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; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;&quot;&gt; &amp;gt; git clone git:&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;background-color: white; 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; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;&quot;&gt;//github&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;background-color: white; 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; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;&quot;&gt;.com&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;background-color: white; 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; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;&quot;&gt;/cocos2d/cocos2d-iphone&lt;/code&gt;&lt;code class=&quot;bash plain&quot; style=&quot;background-color: white; 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; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;&quot;&gt;.git&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;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; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 15px; margin: 0px !important; min-height: inherit !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;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;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; float: none !important; height: auto !important; left: auto !important; line-height: 15px; margin: 0px !important; min-height: inherit !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;&quot;&gt;
&lt;code class=&quot;bash plain&quot; style=&quot;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; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !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;&quot;&gt;&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif; font-size: small; line-height: normal; white-space: normal;&quot;&gt;After this command a copy of Cocos2d will exist in Cocos2DGame folder. You need to step into Cocos2DGame folder by doing&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 14px;&quot;&gt;&amp;gt;cd Cocos2DGame&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 1em; line-height: 1.1em;&quot;&gt;&amp;gt;git checkout develop&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;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; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 15px; margin: 0px !important; min-height: inherit !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;&quot;&gt;
&lt;code class=&quot;bash plain&quot; style=&quot;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; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !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;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;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; float: none !important; height: auto !important; left: auto !important; line-height: 15px; margin: 0px !important; min-height: inherit !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;&quot;&gt;
&lt;code class=&quot;bash plain&quot; style=&quot;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; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !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;&quot;&gt;&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif; font-size: small; line-height: normal; white-space: normal;&quot;&gt;You need to install the cocos2d Mac Template in XCode&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 1em; line-height: 1.1em;&quot;&gt;&amp;gt;sudo ./install-templates.sh&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;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; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 15px; margin: 0px !important; min-height: inherit !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;&quot;&gt;
&lt;code class=&quot;bash plain&quot; style=&quot;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; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: inherit !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;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;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; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 15px; margin: 0px !important; min-height: inherit !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;&quot;&gt;
&lt;span style=&quot;background-color: transparent; font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;Now when you start a new project in Xcode, you will see the installed Cocos2d for Mac .&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpcwWXC4HMPQ8rElsmsGohQID0bjXYmXAjq74-Rm4pGtPF9nSKlpYpzs0cO7nfPn6NINvovDH3ruULo4c7KNmFeAB8VhaQ4uNk56gc0IZ4TCJTFSO6uILX-4SPIPCL98BkOcd3641mTA/s1600/Screen+Shot+2012-11-20+at+11.13.07+AM.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpcwWXC4HMPQ8rElsmsGohQID0bjXYmXAjq74-Rm4pGtPF9nSKlpYpzs0cO7nfPn6NINvovDH3ruULo4c7KNmFeAB8VhaQ4uNk56gc0IZ4TCJTFSO6uILX-4SPIPCL98BkOcd3641mTA/s1600/Screen+Shot+2012-11-20+at+11.13.07+AM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: You need to install git on your Mac Machine before you can run those git commands given above.&lt;br /&gt;
&lt;br /&gt;
Download and Install dmg&lt;br /&gt;
http://code.google.com/p/git-osx-installer/downloads/list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/1295329404448442981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/11/cocos2d-for-mac.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/1295329404448442981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/1295329404448442981'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/11/cocos2d-for-mac.html' title='Cocos2d For Mac'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpcwWXC4HMPQ8rElsmsGohQID0bjXYmXAjq74-Rm4pGtPF9nSKlpYpzs0cO7nfPn6NINvovDH3ruULo4c7KNmFeAB8VhaQ4uNk56gc0IZ4TCJTFSO6uILX-4SPIPCL98BkOcd3641mTA/s72-c/Screen+Shot+2012-11-20+at+11.13.07+AM.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-1854643925671709139</id><published>2012-08-14T19:55:00.001-07:00</published><updated>2012-08-17T12:10:06.421-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="NSScanner"/><category scheme="http://www.blogger.com/atom/ns#" term="NSString"/><title type='text'>How to use NSScanner on NSString.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is quiet useful in terms of parsing a simple static webpage, also pick certain kind of words from the NSString.&lt;br /&gt;
&lt;br /&gt;
Lets say we have following snippet from a html file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSString&lt;/span&gt; *htmlString=&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;b&gt;&amp;lt; div id=&quot;topLeft&quot; class=&quot;news&quot; style=&quot;padding-top:3px&quot;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;b&gt;onMouseOver=&quot;style.color=&#39;white&#39;;style.backgroundColor=&#39;#F0ABFF&#39;&quot; onMouseOut=&quot;style.color=&#39;black&#39;;style.backgroundColor=&#39;#000000&#39;&quot;&lt;/b&gt;&lt;b&gt;&amp;gt;&lt;/b&gt;&lt;b&gt;&amp;lt;&lt;/b&gt;&lt;b&gt;a&amp;nbsp;&lt;/b&gt;&lt;b&gt;style=&quot;text-decoration:none;color:black&quot; onMouseOver=&quot;style.color=&#39;white&#39;&quot; onMouseOut=&quot;style.color=&#39;black&#39;&quot;href=&quot;reetu/test/news.htm&quot; target=&quot;_blank&quot;&lt;/b&gt;&lt;b&gt;&amp;gt;Latest News&lt;/b&gt;&lt;b&gt;&amp;lt;&lt;/b&gt;&lt;b&gt;/a&lt;/b&gt;&lt;b&gt;&amp;gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small; font-weight: normal;&quot;&gt;Now I want to extract the url, text and div id&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small; font-weight: normal;&quot;&gt;from this html file snippet. Following code will give you that.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small; font-weight: normal;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;NSScanner&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt; *rScanner = [&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSScanner&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;scannerWithString&lt;/span&gt;:string];&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSString&lt;/span&gt; *divID=&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;[rScanner &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #351c75;&quot;&gt;scanString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&amp;lt;div id=\&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #351c75;&quot;&gt;intoString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div id=&quot;\&quot; span=&quot;span&quot;&gt;
&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;color: #490084;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;[rScanner&amp;nbsp;&lt;span style=&quot;color: #490084;&quot;&gt;scanUpToString&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;class=\&quot;news\&quot;&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #490084;&quot;&gt;intoString&lt;/span&gt;:&amp;amp;courseID];&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;divID=[divID &lt;/span&gt;stringByReplacingOccurrencesOfString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;withString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;color: #490084;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;divID=[divID &lt;/span&gt;stringByReplacingOccurrencesOfString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;\&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;withString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #490084;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;divID=[divID &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084;&quot;&gt;stringByReplacingOccurrencesOfString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cc0000;&quot;&gt;@&quot;&amp;lt;divid=&quot;&lt;/span&gt;&lt;divid span=&quot;span&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;withString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&amp;nbsp;&lt;/span&gt;&lt;/divid&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #490084;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog&lt;/span&gt;(&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;divID=%@&quot;&lt;/span&gt;,&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;divID&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;divid span=&quot;span&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/divid&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #008c00; display: inline !important; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;/*Instead of above 3 lines you could also do [rScanner scanUpToString: instead of scanString:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7e1bad;&quot;&gt;NSString&lt;/span&gt; *rURL=&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&quot;&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;[rScanner &lt;/span&gt;scanUpToString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;href=\&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;intoString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;[rScanner &lt;span style=&quot;color: #490084;&quot;&gt;scanUpToString&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&amp;gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;intoString&lt;/span&gt;:&amp;amp;rURL];&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;rURL=[rURL &lt;/span&gt;stringByReplacingOccurrencesOfString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;href=\&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;withString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;rURL=[rURL &lt;/span&gt;stringByReplacingOccurrencesOfString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;target=\&quot;_blank\&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;withString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;rURL=[rURL &lt;/span&gt;stringByReplacingOccurrencesOfString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;\&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;withString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #490084;&quot;&gt;NSLog&lt;/span&gt;(&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;rURL=%@&quot;&lt;/span&gt;,rURL);&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;
&amp;nbsp; &amp;nbsp;NSString&lt;/span&gt; *rName=&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&quot;&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&amp;nbsp; &amp;nbsp;[rScanner &lt;span style=&quot;color: #490084;&quot;&gt;scanUpToString&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&amp;lt;/a&amp;gt;&quot; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #351c75;&quot;&gt;intoString&lt;/span&gt;:&amp;amp;rName];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084; font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; rName=[courseName &lt;/span&gt;stringByReplacingOccurrencesOfString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;withString&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #490084;&quot;&gt;&amp;nbsp; &amp;nbsp; NSLog&lt;/span&gt;(&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;rName=%@&quot;&lt;/span&gt;,rName);&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana, sans-serif; font-size: x-small;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It will print following results:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;b&gt;divID=topLeft&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;b&gt;rURL=reetu/test/news.htm&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;b&gt;rName=Latest News&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
Read More: &lt;a href=&quot;https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Strings/Articles/Scanners.html&quot;&gt;https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Strings/Articles/Scanners.html &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/1854643925671709139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/08/how-to-use-nsscanner-on-nsstring.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/1854643925671709139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/1854643925671709139'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/08/how-to-use-nsscanner-on-nsstring.html' title='How to use NSScanner on NSString.'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-4378111561427237905</id><published>2012-08-01T11:50:00.002-07:00</published><updated>2012-08-01T11:50:45.568-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="NSDictionary"/><title type='text'>Tips: How to find if NSDictionary has a key.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #ce00a4;&quot;&gt;if&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;&lt;/span&gt;[[myDiction&amp;nbsp;&lt;span style=&quot;color: #490084;&quot;&gt;allKeys&lt;/span&gt;] &lt;span style=&quot;color: #490084;&quot;&gt;containsObject&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;myKey&quot;&lt;/span&gt;])&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #e30009; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;NSLog&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;@&quot;It contains myKey&quot;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #e30009; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #e30009; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/4378111561427237905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/08/tips-how-to-find-if-nsdictionary-has-key.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/4378111561427237905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/4378111561427237905'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/08/tips-how-to-find-if-nsdictionary-has-key.html' title='Tips: How to find if NSDictionary has a key.'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-52343880919202927</id><published>2012-07-31T22:38:00.001-07:00</published><updated>2012-07-31T22:39:51.838-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="NSAttributedString"/><title type='text'>How to use NSAttributedString in iOS 6</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3e8388;&quot;&gt;infoString&lt;/span&gt;=&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;@&quot;This is an example of Attributed String&quot;&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3e8388;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
NSMutableAttributedString&lt;span style=&quot;color: black;&quot;&gt; *attString=[[&lt;/span&gt;NSMutableAttributedString&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;initWithString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #3e8388;&quot;&gt;infoString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSInteger&lt;/span&gt; _stringLength=[&lt;span style=&quot;color: #3e8388;&quot;&gt;infoString&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;length&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
UIColor&lt;span style=&quot;color: black;&quot;&gt; *_black=[&lt;/span&gt;UIColor&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;blackColor&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; *font=[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;fontWithName&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;Helvetica-Bold&quot;&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;size&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;30.0f&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSFontAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:font &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSForegroundColorAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:_black &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLxJbgugEA2lXW8PS8uYEwR3X7hHY0FcbGWM-XSWC-CCyvBY6FiQ61OaXoLXab6Rl7XxfH8c0-S2w8n3VXcOgrWjlePsM0vPVLJBXvFiO0mNdOZwRq3ecGk0wp7qTFz68mUz4qUuWGWQ/s1600/NSAttributedString_Example1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLxJbgugEA2lXW8PS8uYEwR3X7hHY0FcbGWM-XSWC-CCyvBY6FiQ61OaXoLXab6Rl7XxfH8c0-S2w8n3VXcOgrWjlePsM0vPVLJBXvFiO0mNdOZwRq3ecGk0wp7qTFz68mUz4qUuWGWQ/s1600/NSAttributedString_Example1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
UIColor&lt;span style=&quot;color: black;&quot;&gt; *_red=[&lt;/span&gt;UIColor&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;redColor&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; *font=[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;fontWithName&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;Helvetica-Bold&quot;&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;size&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;72.0f&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSFontAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:font &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSStrokeColorAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:_red &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSStrokeWidthAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:[&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSNumber&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;numberWithFloat&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;3.0&lt;/span&gt;] &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht-ZREKGzhb4kfQdTrUXm72KiQfcAdFT68I8vex00GoNRjgrRB4v_eaiQHgaHEMjMxgoipNKyE8IrssSEVxi0LeOlhaa9PXuJfBpcupk78Kg0dPOQOpqOa-wcaxpWL-qJYujr3IFJXnA/s1600/NSAttributedString_Example2.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;145&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht-ZREKGzhb4kfQdTrUXm72KiQfcAdFT68I8vex00GoNRjgrRB4v_eaiQHgaHEMjMxgoipNKyE8IrssSEVxi0LeOlhaa9PXuJfBpcupk78Kg0dPOQOpqOa-wcaxpWL-qJYujr3IFJXnA/s320/NSAttributedString_Example2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
UIColor&lt;span style=&quot;color: black;&quot;&gt; *_red=[&lt;/span&gt;UIColor&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;redColor&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; *font=[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;fontWithName&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;Helvetica-Bold&quot;&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;size&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;72.0f&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSFontAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:font &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSStrokeColorAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:_red &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSStrokeWidthAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:[&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSNumber&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;numberWithFloat&lt;/span&gt;:-&lt;span style=&quot;color: #4600dd;&quot;&gt;3.0&lt;/span&gt;] &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy8poKUDxVqgbA5yzGjuawO0IzlkV32LCihETGl-zmRXRMXYfRhRhQz0y3FW-tpYuAg3iXXSmPmQx4V8MnqwjFLBb7mhyphenhyphenDW3pnxMqjNSqkTI9x0nqTvvRb6AszDQ03VmWI_XNmeAPy9Q/s1600/NSAttributedString_Example3.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;135&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy8poKUDxVqgbA5yzGjuawO0IzlkV32LCihETGl-zmRXRMXYfRhRhQz0y3FW-tpYuAg3iXXSmPmQx4V8MnqwjFLBb7mhyphenhyphenDW3pnxMqjNSqkTI9x0nqTvvRb6AszDQ03VmWI_XNmeAPy9Q/s320/NSAttributedString_Example3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy8poKUDxVqgbA5yzGjuawO0IzlkV32LCihETGl-zmRXRMXYfRhRhQz0y3FW-tpYuAg3iXXSmPmQx4V8MnqwjFLBb7mhyphenhyphenDW3pnxMqjNSqkTI9x0nqTvvRb6AszDQ03VmWI_XNmeAPy9Q/s1600/NSAttributedString_Example3.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy8poKUDxVqgbA5yzGjuawO0IzlkV32LCihETGl-zmRXRMXYfRhRhQz0y3FW-tpYuAg3iXXSmPmQx4V8MnqwjFLBb7mhyphenhyphenDW3pnxMqjNSqkTI9x0nqTvvRb6AszDQ03VmWI_XNmeAPy9Q/s1600/NSAttributedString_Example3.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy8poKUDxVqgbA5yzGjuawO0IzlkV32LCihETGl-zmRXRMXYfRhRhQz0y3FW-tpYuAg3iXXSmPmQx4V8MnqwjFLBb7mhyphenhyphenDW3pnxMqjNSqkTI9x0nqTvvRb6AszDQ03VmWI_XNmeAPy9Q/s1600/NSAttributedString_Example3.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy8poKUDxVqgbA5yzGjuawO0IzlkV32LCihETGl-zmRXRMXYfRhRhQz0y3FW-tpYuAg3iXXSmPmQx4V8MnqwjFLBb7mhyphenhyphenDW3pnxMqjNSqkTI9x0nqTvvRb6AszDQ03VmWI_XNmeAPy9Q/s1600/NSAttributedString_Example3.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy8poKUDxVqgbA5yzGjuawO0IzlkV32LCihETGl-zmRXRMXYfRhRhQz0y3FW-tpYuAg3iXXSmPmQx4V8MnqwjFLBb7mhyphenhyphenDW3pnxMqjNSqkTI9x0nqTvvRb6AszDQ03VmWI_XNmeAPy9Q/s1600/NSAttributedString_Example3.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
UIColor&lt;span style=&quot;color: black;&quot;&gt; *_red=[&lt;/span&gt;UIColor&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;redColor&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIColor&lt;/span&gt; *_green=[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIColor&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;greenColor&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; *font=[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;fontWithName&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;Helvetica-Bold&quot;&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;size&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;72.0f&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSFontAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:font &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSForegroundColorAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:_green &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSStrokeColorAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:_red &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSStrokeWidthAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:[&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSNumber&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;numberWithFloat&lt;/span&gt;:-&lt;span style=&quot;color: #4600dd;&quot;&gt;3.0&lt;/span&gt;] &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFaucv_lKO62e2mLBPP79k6BXhve2tVVbUlqjruSboJUMmDDlDZ2uYd7Q8BazzsFM0oB6ZxYUTu6gfJOTD-OHRdefKQSjXnJg1ix5IQaXLVrinfgAIjEK-QIE1txiALje1IUtOkXvkaA/s1600/NSAttributedString_Example4.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;142&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFaucv_lKO62e2mLBPP79k6BXhve2tVVbUlqjruSboJUMmDDlDZ2uYd7Q8BazzsFM0oB6ZxYUTu6gfJOTD-OHRdefKQSjXnJg1ix5IQaXLVrinfgAIjEK-QIE1txiALje1IUtOkXvkaA/s320/NSAttributedString_Example4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFaucv_lKO62e2mLBPP79k6BXhve2tVVbUlqjruSboJUMmDDlDZ2uYd7Q8BazzsFM0oB6ZxYUTu6gfJOTD-OHRdefKQSjXnJg1ix5IQaXLVrinfgAIjEK-QIE1txiALje1IUtOkXvkaA/s1600/NSAttributedString_Example4.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFaucv_lKO62e2mLBPP79k6BXhve2tVVbUlqjruSboJUMmDDlDZ2uYd7Q8BazzsFM0oB6ZxYUTu6gfJOTD-OHRdefKQSjXnJg1ix5IQaXLVrinfgAIjEK-QIE1txiALje1IUtOkXvkaA/s1600/NSAttributedString_Example4.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFaucv_lKO62e2mLBPP79k6BXhve2tVVbUlqjruSboJUMmDDlDZ2uYd7Q8BazzsFM0oB6ZxYUTu6gfJOTD-OHRdefKQSjXnJg1ix5IQaXLVrinfgAIjEK-QIE1txiALje1IUtOkXvkaA/s1600/NSAttributedString_Example4.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFaucv_lKO62e2mLBPP79k6BXhve2tVVbUlqjruSboJUMmDDlDZ2uYd7Q8BazzsFM0oB6ZxYUTu6gfJOTD-OHRdefKQSjXnJg1ix5IQaXLVrinfgAIjEK-QIE1txiALje1IUtOkXvkaA/s1600/NSAttributedString_Example4.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFaucv_lKO62e2mLBPP79k6BXhve2tVVbUlqjruSboJUMmDDlDZ2uYd7Q8BazzsFM0oB6ZxYUTu6gfJOTD-OHRdefKQSjXnJg1ix5IQaXLVrinfgAIjEK-QIE1txiALje1IUtOkXvkaA/s1600/NSAttributedString_Example4.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
UIColor&lt;span style=&quot;color: black;&quot;&gt; *_green=[&lt;/span&gt;UIColor&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;greenColor&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; *font=[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;fontWithName&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;Helvetica-Bold&quot;&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;size&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;72.0f&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSShadow&lt;/span&gt; *shadowDic=[[&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSShadow&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;alloc&lt;/span&gt;] &lt;span style=&quot;color: #490084;&quot;&gt;init&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[shadowDic &lt;span style=&quot;color: #490084;&quot;&gt;setShadowBlurRadius&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;5.0&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[shadowDic &lt;span style=&quot;color: #490084;&quot;&gt;setShadowColor&lt;/span&gt;:[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIColor&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;grayColor&lt;/span&gt;]];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[shadowDic &lt;span style=&quot;color: #490084;&quot;&gt;setShadowOffset&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;CGSizeMake&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: #4600dd;&quot;&gt;3&lt;/span&gt;)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSFontAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:font &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSForegroundColorAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:_green &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSShadowAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:shadowDic &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD4qtQ_P_j06zz5v8gPlr4j6vn7DCEIBZbRH6qdTWMupF6zO6JqoYPktxdIn-QZqf-7mIrOROklOk5lUdfWpjx0TaBovydMQ9K7ZAL4dBIck52SHp9yW8ptjA4R5hH10PFl7epterNyQ/s1600/NSAttributedString_Example5.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD4qtQ_P_j06zz5v8gPlr4j6vn7DCEIBZbRH6qdTWMupF6zO6JqoYPktxdIn-QZqf-7mIrOROklOk5lUdfWpjx0TaBovydMQ9K7ZAL4dBIck52SHp9yW8ptjA4R5hH10PFl7epterNyQ/s1600/NSAttributedString_Example5.png&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD4qtQ_P_j06zz5v8gPlr4j6vn7DCEIBZbRH6qdTWMupF6zO6JqoYPktxdIn-QZqf-7mIrOROklOk5lUdfWpjx0TaBovydMQ9K7ZAL4dBIck52SHp9yW8ptjA4R5hH10PFl7epterNyQ/s1600/NSAttributedString_Example5.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD4qtQ_P_j06zz5v8gPlr4j6vn7DCEIBZbRH6qdTWMupF6zO6JqoYPktxdIn-QZqf-7mIrOROklOk5lUdfWpjx0TaBovydMQ9K7ZAL4dBIck52SHp9yW8ptjA4R5hH10PFl7epterNyQ/s1600/NSAttributedString_Example5.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD4qtQ_P_j06zz5v8gPlr4j6vn7DCEIBZbRH6qdTWMupF6zO6JqoYPktxdIn-QZqf-7mIrOROklOk5lUdfWpjx0TaBovydMQ9K7ZAL4dBIck52SHp9yW8ptjA4R5hH10PFl7epterNyQ/s1600/NSAttributedString_Example5.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD4qtQ_P_j06zz5v8gPlr4j6vn7DCEIBZbRH6qdTWMupF6zO6JqoYPktxdIn-QZqf-7mIrOROklOk5lUdfWpjx0TaBovydMQ9K7ZAL4dBIck52SHp9yW8ptjA4R5hH10PFl7epterNyQ/s1600/NSAttributedString_Example5.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
UIColor&lt;span style=&quot;color: black;&quot;&gt; *_red=[&lt;/span&gt;UIColor&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;redColor&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; *font=[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;fontWithName&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;Helvetica-Bold&quot;&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;size&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;72.0f&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSFontAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:font &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; [attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSForegroundColorAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:_red &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; [attString &lt;/span&gt;addAttribute&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSKernAttributeName&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;value&lt;span style=&quot;color: black;&quot;&gt;:[&lt;/span&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSNumber&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;numberWithInt&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #4600dd;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;range&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSMak&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfx_ZzZuhBGiy8ib_SHBUhSLNYJKebURSPgCzqK-9VUob2JGzyTCd3e0l2MeFcxIicgac5wbosvuEVyhCQ9gUTZ9uGEMbrZ7axUe655PKHSpn1Ybu6MMGpDGwiWm01DqsIPgiyhpNP8Q/s1600/NSAttributedString_Example6.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfx_ZzZuhBGiy8ib_SHBUhSLNYJKebURSPgCzqK-9VUob2JGzyTCd3e0l2MeFcxIicgac5wbosvuEVyhCQ9gUTZ9uGEMbrZ7axUe655PKHSpn1Ybu6MMGpDGwiWm01DqsIPgiyhpNP8Q/s1600/NSAttributedString_Example6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
UIColor&lt;span style=&quot;color: black;&quot;&gt; *_red=[&lt;/span&gt;UIColor&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;redColor&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; *font=[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;fontWithName&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;Helvetica-Bold&quot;&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;size&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;30.0f&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSFontAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:font &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSForegroundColorAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:_red &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSUnderlineStyleAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:[&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSNumber&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;numberWithInt&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;2&lt;/span&gt;] &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwUVC11UGnnUNK5HpG-cX_sYsiSoW8Sf-Bs8xDhB8d3-F5eZ7bpWEoDelEqJUX5t6j05EKdt62Be-0c08HfW_SYwYywOBGYC9KlTGjcbCgIH8YCEsLjqpTjjo8LflIIhPNRyO0FfAHnw/s1600/NSAttributedString_Example7.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwUVC11UGnnUNK5HpG-cX_sYsiSoW8Sf-Bs8xDhB8d3-F5eZ7bpWEoDelEqJUX5t6j05EKdt62Be-0c08HfW_SYwYywOBGYC9KlTGjcbCgIH8YCEsLjqpTjjo8LflIIhPNRyO0FfAHnw/s1600/NSAttributedString_Example7.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
UIColor&lt;span style=&quot;color: black;&quot;&gt; *_blue=[&lt;/span&gt;UIColor&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;blueColor&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIColor&lt;/span&gt; *_blueL=[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIColor&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;colorWithRed&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;green&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;blue&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;0.5&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;alpha&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;0.7&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; *font=[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIFont&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;fontWithName&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;Helvetica-Bold&quot;&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;size&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;30.0f&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSFontAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:font &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSForegroundColorAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:_blue &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, _stringLength)];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[attString &lt;span style=&quot;color: #490084;&quot;&gt;addAttribute&lt;/span&gt;:&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSBackgroundColorAttributeName&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;value&lt;/span&gt;:_blueL &lt;span style=&quot;color: #490084;&quot;&gt;range&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSMakeRange&lt;/span&gt;(&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;, &lt;span style=&quot;color: #4600dd;&quot;&gt;20&lt;/span&gt;)];&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqu4iq_u0ZydfNLWpynRxsEAoyyQkTrLnybB4g4YdLQegFRNXAK63rGV9_pOyFoWqxHMqVAljw8aYdGQ3vFrZdph504fS-Y-iFRA90Yj7k2V8KB2wm0K1h578k3W-EZfbYt0IzgWEjcA/s1600/NSAttributedString_Example8.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqu4iq_u0ZydfNLWpynRxsEAoyyQkTrLnybB4g4YdLQegFRNXAK63rGV9_pOyFoWqxHMqVAljw8aYdGQ3vFrZdph504fS-Y-iFRA90Yj7k2V8KB2wm0K1h578k3W-EZfbYt0IzgWEjcA/s1600/NSAttributedString_Example8.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/52343880919202927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/how-to-use-nsattributedstring-in-ios-6.html#comment-form' title='342 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/52343880919202927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/52343880919202927'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/how-to-use-nsattributedstring-in-ios-6.html' title='How to use NSAttributedString in iOS 6'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLxJbgugEA2lXW8PS8uYEwR3X7hHY0FcbGWM-XSWC-CCyvBY6FiQ61OaXoLXab6Rl7XxfH8c0-S2w8n3VXcOgrWjlePsM0vPVLJBXvFiO0mNdOZwRq3ecGk0wp7qTFz68mUz4qUuWGWQ/s72-c/NSAttributedString_Example1.png" height="72" width="72"/><thr:total>342</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-4693316110011058046</id><published>2012-07-26T21:36:00.003-07:00</published><updated>2012-07-26T21:36:52.518-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="UIScrollView"/><title type='text'>Tips: Hide scrollbars of UIScrollView</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #3f1281; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3f1281; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3f1281; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #538187;&quot;&gt;mScrollView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;setShowsHorizontalScrollIndicator&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #b70ea3;&quot;&gt;NO&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3f1281; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #538187;&quot;&gt;mScrollView&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;setShowsVerticalScrollIndicator&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #b70ea3;&quot;&gt;NO&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3f1281; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #3f1281; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/4693316110011058046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/tips-hide-scrollbars-of-uiscrollview.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/4693316110011058046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/4693316110011058046'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/tips-hide-scrollbars-of-uiscrollview.html' title='Tips: Hide scrollbars of UIScrollView'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-1164100371260493636</id><published>2012-07-24T20:44:00.002-07:00</published><updated>2012-07-24T20:45:27.368-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="animate"/><category scheme="http://www.blogger.com/atom/ns#" term="CABasicAnimation."/><category scheme="http://www.blogger.com/atom/ns#" term="CAShapeLayer"/><category scheme="http://www.blogger.com/atom/ns#" term="line"/><category scheme="http://www.blogger.com/atom/ns#" term="UIBezierPath"/><title type='text'>How to animate a line draw ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you want to draw a line pixel by pixel.&lt;br /&gt;
You will have to use combination of&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e1bad; font-family: Menlo; font-size: 11px;&quot;&gt;UIBezierPath,&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e1bad; font-family: Menlo; font-size: 11px;&quot;&gt;&amp;nbsp;CAShapeLayer,&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e1bad; font-family: Menlo; font-size: 11px;&quot;&gt;&amp;nbsp;CABasicAnimation.&lt;/span&gt;&amp;nbsp;You can &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394;&quot;&gt;&lt;u&gt;&lt;a href=&quot;http://dl.dropbox.com/u/1396078/AnimateLine.zip&quot;&gt;download the code here&lt;/a&gt;&lt;/u&gt;. &lt;/span&gt;The piece of code given below &amp;nbsp;animates a simple line drawn pixel by pixel from point&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #4600dd;&quot;&gt;50.0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #4600dd;&quot;&gt;0.0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;to point&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #4600dd;&quot;&gt;120.0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #4600dd;&quot;&gt;600.0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;UIBezierPath&lt;span style=&quot;color: black;&quot;&gt; *path = [&lt;/span&gt;UIBezierPath&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;bezierPath&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [path &lt;/span&gt;moveToPoint&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;CGPointMake&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #4600dd;&quot;&gt;50.0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #4600dd;&quot;&gt;0.0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [path &lt;/span&gt;addLineToPoint&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;CGPointMake&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #4600dd;&quot;&gt;120.0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #4600dd;&quot;&gt;600.0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;CAShapeLayer&lt;span style=&quot;color: black;&quot;&gt; *pathLayer = [&lt;/span&gt;CAShapeLayer&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;layer&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; pathLayer.&lt;span style=&quot;color: #7e1bad;&quot;&gt;frame&lt;/span&gt; = &lt;span style=&quot;color: #ce00a4;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: #7e1bad;&quot;&gt;view&lt;/span&gt;.&lt;span style=&quot;color: #7e1bad;&quot;&gt;bounds&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; pathLayer.&lt;span style=&quot;color: #7e1bad;&quot;&gt;path&lt;/span&gt; = path.&lt;span style=&quot;color: #7e1bad;&quot;&gt;CGPath&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; pathLayer.&lt;span style=&quot;color: #7e1bad;&quot;&gt;strokeColor&lt;/span&gt; = [[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIColor&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;redColor&lt;/span&gt;] &lt;span style=&quot;color: #490084;&quot;&gt;CGColor&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; pathLayer.&lt;span style=&quot;color: #7e1bad;&quot;&gt;fillColor&lt;/span&gt; = &lt;span style=&quot;color: #ce00a4;&quot;&gt;nil&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; pathLayer.&lt;span style=&quot;color: #7e1bad;&quot;&gt;lineWidth&lt;/span&gt; = &lt;span style=&quot;color: #4600dd;&quot;&gt;2.0f&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; pathLayer.&lt;/span&gt;lineJoin&lt;span style=&quot;color: black;&quot;&gt; = &lt;/span&gt;kCALineJoinBevel&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [&lt;span style=&quot;color: #ce00a4;&quot;&gt;self&lt;/span&gt;.&lt;span style=&quot;color: #7e1bad;&quot;&gt;view&lt;/span&gt;.&lt;span style=&quot;color: #7e1bad;&quot;&gt;layer&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;addSublayer&lt;/span&gt;:pathLayer];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;CABasicAnimation&lt;span style=&quot;color: black;&quot;&gt; *pathAnimation = [&lt;/span&gt;CABasicAnimation&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;animationWithKeyPath&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;strokeEnd&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; pathAnimation.&lt;span style=&quot;color: #7e1bad;&quot;&gt;duration&lt;/span&gt; = &lt;span style=&quot;color: #4600dd;&quot;&gt;2.0&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; pathAnimation.&lt;span style=&quot;color: #7e1bad;&quot;&gt;fromValue&lt;/span&gt; = [&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSNumber&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;numberWithFloat&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;0.0f&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; pathAnimation.&lt;span style=&quot;color: #7e1bad;&quot;&gt;toValue&lt;/span&gt; = [&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSNumber&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;numberWithFloat&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;1.0f&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [pathLayer &lt;span style=&quot;color: #490084;&quot;&gt;addAnimation&lt;/span&gt;:pathAnimation &lt;span style=&quot;color: #490084;&quot;&gt;forKey&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;strokeEnd&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/1164100371260493636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/how-to-animate-line-draw.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/1164100371260493636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/1164100371260493636'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/how-to-animate-line-draw.html' title='How to animate a line draw ?'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-2750619536448738289</id><published>2012-07-21T23:30:00.001-07:00</published><updated>2012-07-21T23:30:25.775-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="NSArray"/><title type='text'>convert NSArray in float[]</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSArray&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *c=[&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e1bad;&quot;&gt;NSArray&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #490084;&quot;&gt;arrayWithObjects&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;1&quot;&lt;/span&gt;,&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009;&quot;&gt;@&quot;8&quot;&lt;/span&gt;,&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009;&quot;&gt;@&quot;4&quot;&lt;/span&gt;,&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009;&quot;&gt;@&quot;2&quot;&lt;/span&gt;,&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #ce00a4;&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSEnumerator *enumerator;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;float&lt;/span&gt; * cArray;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;id&lt;/span&gt; obj;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;int&lt;/span&gt; index=&lt;span style=&quot;color: #4600dd;&quot;&gt;0&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;cArray&amp;nbsp;= (&lt;span style=&quot;color: #ce00a4;&quot;&gt;float&lt;/span&gt; *) &lt;span style=&quot;color: #490084;&quot;&gt;malloc&lt;/span&gt;(&lt;span style=&quot;color: #ce00a4;&quot;&gt;sizeof&lt;/span&gt;(&lt;span style=&quot;color: #ce00a4;&quot;&gt;float&lt;/span&gt;) * [c &lt;span style=&quot;color: #490084;&quot;&gt;count&lt;/span&gt;]);&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; enumerator = [c &lt;span style=&quot;color: #490084;&quot;&gt;objectEnumerator&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;while&lt;/span&gt;(&lt;/span&gt;obj&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp;= [enumerator &lt;span style=&quot;color: #490084;&quot;&gt;nextObject&lt;/span&gt;])&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;cArray&lt;span class=&quot;Apple-style-span&quot;&gt;[index] = [&lt;/span&gt;obj&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #490084;&quot;&gt;floatValue&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; index++;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/2750619536448738289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/convert-nsarray-in-float.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/2750619536448738289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/2750619536448738289'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/convert-nsarray-in-float.html' title='convert NSArray in float[]'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-5088622372450918239</id><published>2012-07-19T16:56:00.003-07:00</published><updated>2012-07-19T17:08:06.779-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ad Hoc"/><category scheme="http://www.blogger.com/atom/ns#" term="iTunes sync failed to start"/><category scheme="http://www.blogger.com/atom/ns#" term="XCode 4.5"/><title type='text'>Ad Hoc Build in XCode 4.3+ and XCode 4.5</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Things have changed a little bit for ad hoc. This post is for people who may face problem while trying to create adhoc. While trying to install .ipa on device through iTunes, it gives error &lt;span style=&quot;color: red;&quot;&gt;&quot;iTunes sync failed to start&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Make sure your mobile provisioning for ad-hoc and distribution certificate is installed before we proceed any further. You can go through&lt;u&gt; &lt;a href=&quot;http://soulwithmobiletechnology.blogspot.com/2011/03/how-to-create-distribution-build-with.html&quot;&gt;my old post&lt;/a&gt;,&lt;/u&gt; it is very detailed, just to refresh things like how to create certificate and other required things.&lt;br /&gt;
&lt;br /&gt;
Note: You can read captions on the image for more clarity.&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&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/AVvXsEjYRb1kn2CRTkQIMczZF89y-IOdB0mDqTszyJgtidIGx__UMoJ6xhNNpbpbmXwRHG3sNFNokOwY0VKlwuoqOEEfnVvwfOcc8nJaReDMc1-c6let_huJH55jb9YY6wKtBH239eBNlxc6wQ/s1600/Ad+Hoc+1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;294&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYRb1kn2CRTkQIMczZF89y-IOdB0mDqTszyJgtidIGx__UMoJ6xhNNpbpbmXwRHG3sNFNokOwY0VKlwuoqOEEfnVvwfOcc8nJaReDMc1-c6let_huJH55jb9YY6wKtBH239eBNlxc6wQ/s640/Ad+Hoc+1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;color: #741b47; text-align: center;&quot;&gt;Add Ad Hoc configuration by duplicating release (You can do that by pressing + sign)&lt;/td&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&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/AVvXsEjIZI1_Vi0pz675Ro7LVPl9TFepm4_fatVUtWS7XH6CFvDdGmsRvSfoohMnjbEnSoAr5Kd_2IKLnFyxKqNAhPZGR5NrRUxZLPLsuEiV-_LL1STq9RBkIqGEvDyDVDYMLaAJlc5jJYWtLA/s1600/Ad+Hoc+2.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;262&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIZI1_Vi0pz675Ro7LVPl9TFepm4_fatVUtWS7XH6CFvDdGmsRvSfoohMnjbEnSoAr5Kd_2IKLnFyxKqNAhPZGR5NrRUxZLPLsuEiV-_LL1STq9RBkIqGEvDyDVDYMLaAJlc5jJYWtLA/s640/Ad+Hoc+2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;color: #741b47;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;You need to add distribution signing profile for Ad Hoc as well as &lt;b&gt;Release&lt;/b&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&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/AVvXsEjNTPscKpQ6gm4LP-Sy-JIuxBMl33xqWuNxSVwDE8RxgpDQhydopHwxf6UijCrxGkdP-OmFgwo83pmIyF4bhxskQD48R8v-DYYNhkNGKATKUzcfxIFb_by6vW4OH5VvKsBlof-2qszofg/s1600/Ad+Hoc+3.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNTPscKpQ6gm4LP-Sy-JIuxBMl33xqWuNxSVwDE8RxgpDQhydopHwxf6UijCrxGkdP-OmFgwo83pmIyF4bhxskQD48R8v-DYYNhkNGKATKUzcfxIFb_by6vW4OH5VvKsBlof-2qszofg/s1600/Ad+Hoc+3.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;color: #741b47;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Now on top left corner of your XCode screen. Click on project Name like here I click on MIMChartLIb&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&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/AVvXsEjfTTlIy-6LAgduPiKT3ix5hhSBjHH-NgzTDlWDJ3Ezg_XGkcZmXLWVw2IKIfkaAFHRNROKIDEztqxf8uzj4-sh6wbRn7yfmlXXEXooljIQl4PSJNmhQjy7ig2At_7cpS9qq3R4l-x2qw/s1600/Ad+Hoc+4.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfTTlIy-6LAgduPiKT3ix5hhSBjHH-NgzTDlWDJ3Ezg_XGkcZmXLWVw2IKIfkaAFHRNROKIDEztqxf8uzj4-sh6wbRn7yfmlXXEXooljIQl4PSJNmhQjy7ig2At_7cpS9qq3R4l-x2qw/s1600/Ad+Hoc+4.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;color: #741b47;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;I get popup like this.Click on Edit Scheme.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&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/AVvXsEhJg2pj2RS347PvYoto3WLZmaJiAAfqaTKkQuRtkP9oJ4CXSlpCY_qrqtXacNvgpfNuJg1w1TfUHeui0b_3_jL72mtRh-GIOE1o19EVu5SIsLl2Xm72yWg0I8sawHU-fAjF0ODE3xKNmg/s1600/Ad+Hoc+5.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJg2pj2RS347PvYoto3WLZmaJiAAfqaTKkQuRtkP9oJ4CXSlpCY_qrqtXacNvgpfNuJg1w1TfUHeui0b_3_jL72mtRh-GIOE1o19EVu5SIsLl2Xm72yWg0I8sawHU-fAjF0ODE3xKNmg/s1600/Ad+Hoc+5.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;color: #741b47;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Go to Archieve(Highlighted cell on left tableview). On right side,Change Build Configuration to Ad Hoc.Click OK.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&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/AVvXsEjRLUvVdbA_QpQxkudXJmMhRQnQCiNZCrA3UCN1LJRGluHOKcT3TtZWNVzdQ9FUjaVWgnu5tvGbtgCLcUW5uFKq7ntgvYMiwpXnlfCcb2KwFT0tpCm0kqU45ZSCs168UAystfbrsOnORQ/s1600/Ad+Hoc+6.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRLUvVdbA_QpQxkudXJmMhRQnQCiNZCrA3UCN1LJRGluHOKcT3TtZWNVzdQ9FUjaVWgnu5tvGbtgCLcUW5uFKq7ntgvYMiwpXnlfCcb2KwFT0tpCm0kqU45ZSCs168UAystfbrsOnORQ/s1600/Ad+Hoc+6.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;color: #741b47;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Now go to Product &amp;gt; Archive&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&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/AVvXsEhNZAzNViQY0Z5R2xkZsknZG7lg0dnTRRUfj9Yr_VDE471oOY0dgjA_HgemHmt1PBBa7msJyPbsN8sE95sBoxxkPIUhbglil0KbobmzOuUw8qWY5hE-dI_HI39dAkOuCoc4C2nb6jCb-w/s1600/Ad+Hoc+7.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNZAzNViQY0Z5R2xkZsknZG7lg0dnTRRUfj9Yr_VDE471oOY0dgjA_HgemHmt1PBBa7msJyPbsN8sE95sBoxxkPIUhbglil0KbobmzOuUw8qWY5hE-dI_HI39dAkOuCoc4C2nb6jCb-w/s1600/Ad+Hoc+7.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;color: #741b47;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;It will ask you to sign with keys. Click Allow or Always Allow.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&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/AVvXsEjP82ZXLpV3OQpZlLeiiZdqIh_xtpb653REJroNjVwl5nLujB71IkPBBKunmaLGGZwtjLEZnIaqcqUCgTg2Qpt0mHKSC4q9XOESUeQR5e3wu2nG0yVM7YE7zwjw-Z6tLySwF62HzB8H7Q/s1600/Ad+Hoc+8.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;353&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP82ZXLpV3OQpZlLeiiZdqIh_xtpb653REJroNjVwl5nLujB71IkPBBKunmaLGGZwtjLEZnIaqcqUCgTg2Qpt0mHKSC4q9XOESUeQR5e3wu2nG0yVM7YE7zwjw-Z6tLySwF62HzB8H7Q/s640/Ad+Hoc+8.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;color: #741b47;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;After sometime, Organiser window will open displaying Archive. If not, You can open Organiser from Xcode Menu: Window&amp;gt;Organiser.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&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/AVvXsEhtLXAihd0wW4e8JwjWD_uBOnAVXQFFK44ZQuxoHrZpQMKEsswrpjDl6-R5jiiUHNMXhf7Jgi1EsoBhHENe4EEnxZHRoQTX8hJPYufGgxZJAAWihlsTMhwrctuU4EZquKxdXbv8DCPm0Q/s1600/Ad+Hoc+9.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtLXAihd0wW4e8JwjWD_uBOnAVXQFFK44ZQuxoHrZpQMKEsswrpjDl6-R5jiiUHNMXhf7Jgi1EsoBhHENe4EEnxZHRoQTX8hJPYufGgxZJAAWihlsTMhwrctuU4EZquKxdXbv8DCPm0Q/s1600/Ad+Hoc+9.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;color: #741b47;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Clicking on Distribute button on previous screen, opens this. Choose second option here.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&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/AVvXsEhv1SMcLzwnYk9ViY_lBCO0WHZb3LNHu4NKprCpajxq4zeUbEIv3lYxIj7wOosy3xG8z_MWrvB-sm42GO1gRo1PUT6YcUpz-Vk5seAPd3RXTNpY6An2NbBbpsYxSmTZGwM0Km0q4FoG3A/s1600/Ad+Hoc+10.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv1SMcLzwnYk9ViY_lBCO0WHZb3LNHu4NKprCpajxq4zeUbEIv3lYxIj7wOosy3xG8z_MWrvB-sm42GO1gRo1PUT6YcUpz-Vk5seAPd3RXTNpY6An2NbBbpsYxSmTZGwM0Km0q4FoG3A/s1600/Ad+Hoc+10.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;color: #741b47;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Next it asks for Code Signing Identity, Choose your Ad-Hoc distribution profile.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&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/AVvXsEjl9dIdx2dqESqjT4H-eUOKWoKLADuByrXbS9C4pU3Wsl8bFQMoxB-9HTuDHuloWfL7DbPSSAm_9fNGc9HCQRshz44YG1JLl05-XyHY60AoJWduVOmGd9ie32jieuw2iVedXKkIahUG-w/s1600/Ad+Hoc+11.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl9dIdx2dqESqjT4H-eUOKWoKLADuByrXbS9C4pU3Wsl8bFQMoxB-9HTuDHuloWfL7DbPSSAm_9fNGc9HCQRshz44YG1JLl05-XyHY60AoJWduVOmGd9ie32jieuw2iVedXKkIahUG-w/s1600/Ad+Hoc+11.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;color: #741b47;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;It will ask you to sign with the key Click Allow or Always Allow.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&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/AVvXsEi0NoBkpNavjN7R_N2VLfN7TWOLHajW9VoR4wM4pObYDzHMf2LNn-nKbkD5lzCOBJM1jJzPBFtX2eBoEhBtV47x1GEkFRhHKjVQiM9ixymouW-uWK0KFj0mcQltf3GAgJXE9AAyu0w9-Q/s1600/Ad+Hoc+12.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0NoBkpNavjN7R_N2VLfN7TWOLHajW9VoR4wM4pObYDzHMf2LNn-nKbkD5lzCOBJM1jJzPBFtX2eBoEhBtV47x1GEkFRhHKjVQiM9ixymouW-uWK0KFj0mcQltf3GAgJXE9AAyu0w9-Q/s1600/Ad+Hoc+12.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;color: #741b47;&quot;&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;After sometime, it will ask you where to save your .ipa file. Thats it ! You select your location and click Save.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/5088622372450918239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/ad-hoc-build-in-xcode-43-and-xcode-45.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/5088622372450918239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/5088622372450918239'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/ad-hoc-build-in-xcode-43-and-xcode-45.html' title='Ad Hoc Build in XCode 4.3+ and XCode 4.5'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYRb1kn2CRTkQIMczZF89y-IOdB0mDqTszyJgtidIGx__UMoJ6xhNNpbpbmXwRHG3sNFNokOwY0VKlwuoqOEEfnVvwfOcc8nJaReDMc1-c6let_huJH55jb9YY6wKtBH239eBNlxc6wQ/s72-c/Ad+Hoc+1.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-6829285048822837266</id><published>2012-07-17T15:11:00.003-07:00</published><updated>2012-07-17T15:11:24.741-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS 4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="QLPreviewController"/><category scheme="http://www.blogger.com/atom/ns#" term="QuickLook"/><title type='text'>Tutorial: How to use QLPreviewController to preview files.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
This tutorial will talk about implementation of preview feature of documents, images and files available on iOS 4.0 onwards. Apple reference document says:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font: normal normal normal 100%/normal &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0px;&quot;&gt;
A Quick Look preview controller can display previews for the following items:&lt;/div&gt;
&lt;ul class=&quot;ul&quot; style=&quot;list-style-image: initial; list-style-position: outside; list-style-type: disc; margin-bottom: 0.833em; margin-left: 1.35em; margin-right: 0px; margin-top: 0px; padding-bottom: 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;li class=&quot;li&quot; style=&quot;margin-top: 0.583em;&quot;&gt;&lt;div style=&quot;display: inline; font: normal normal normal 100%/normal &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
iWork documents&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;li&quot; style=&quot;margin-top: 0.583em;&quot;&gt;&lt;div style=&quot;display: inline; font: normal normal normal 100%/normal &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
Microsoft Office documents (Office ‘97 and newer)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;li&quot; style=&quot;margin-top: 0.583em;&quot;&gt;&lt;div style=&quot;display: inline; font: normal normal normal 100%/normal &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
Rich Text Format (RTF) documents&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;li&quot; style=&quot;margin-top: 0.583em;&quot;&gt;&lt;div style=&quot;display: inline; font: normal normal normal 100%/normal &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
PDF files&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;li&quot; style=&quot;margin-top: 0.583em;&quot;&gt;&lt;div style=&quot;display: inline; font: normal normal normal 100%/normal &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
Images&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;li&quot; style=&quot;margin-top: 0.583em;&quot;&gt;&lt;div style=&quot;display: inline; font: normal normal normal 100%/normal &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
Text files whose uniform type identifier (UTI) conforms to the&amp;nbsp;&lt;code style=&quot;color: #666666; font-family: Courier, Consolas, monospace; font-size: 13px;&quot;&gt;public.text&lt;/code&gt;&amp;nbsp;type (see&amp;nbsp;&lt;em style=&quot;font-family: &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; font-style: italic;&quot;&gt;&lt;a href=&quot;http://developer.apple.com/library/ios/documentation/Miscellaneous/Reference/UTIRef/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009257&quot; style=&quot;color: #3366cc; text-decoration: none;&quot; target=&quot;_self&quot;&gt;Uniform Type Identifiers Reference&lt;/a&gt;&lt;/em&gt;)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;li&quot; style=&quot;margin-top: 0.583em;&quot;&gt;&lt;div style=&quot;display: inline; font: normal normal normal 100%/normal &#39;Lucida Grande&#39;, Geneva, Helvetica, Arial, sans-serif; margin-bottom: 0.833em; margin-top: 0.667em;&quot;&gt;
Comma-separated value (csv) files&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
You need to add QuickLook.framework in your project. and import QuickLook/QuickLook.h&lt;br /&gt;
and add protocols&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e1bad; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;lt;&lt;/span&gt;QLPreviewControllerDataSource&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;QLPreviewControllerDelegate&lt;span style=&quot;color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e1bad; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e1bad; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
QLPreviewController&lt;span style=&quot;color: black;&quot;&gt; *previewController=[[&lt;/span&gt;QLPreviewController&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
previewController.&lt;span style=&quot;color: #7e1bad;&quot;&gt;delegate&lt;/span&gt;=&lt;span style=&quot;color: #ce00a4;&quot;&gt;self&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
previewController.&lt;span style=&quot;color: #7e1bad;&quot;&gt;dataSource&lt;/span&gt;=&lt;span style=&quot;color: #ce00a4;&quot;&gt;self&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;presentModalViewController&lt;span style=&quot;color: black;&quot;&gt;:previewController &lt;/span&gt;animated&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;YES&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[previewController.&lt;span style=&quot;color: #7e1bad;&quot;&gt;navigationItem&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;setRightBarButtonItem&lt;/span&gt;:&lt;span style=&quot;color: #ce00a4;&quot;&gt;nil&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;You need to add datasource methods for sure. Return more than 1 for&amp;nbsp;&lt;/span&gt;numberOfPreviewItemsInPreviewController&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;&amp;nbsp;if you want user to be able to preview next and previous file while in preview mode. Else return 1 if you want user to exclusively preview only selected file.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
- (&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSInteger&lt;/span&gt;)numberOfPreviewItemsInPreviewController:(&lt;span style=&quot;color: #7e1bad;&quot;&gt;QLPreviewController&lt;/span&gt; *)controller&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
- (&lt;span style=&quot;color: #ce00a4;&quot;&gt;id&lt;/span&gt; &amp;lt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;QLPreviewItem&lt;/span&gt;&amp;gt;)previewController:(&lt;span style=&quot;color: #7e1bad;&quot;&gt;QLPreviewController&lt;/span&gt; *)controller previewItemAtIndex:(&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSInteger&lt;/span&gt;)index&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;You may add delegate methods &amp;nbsp;optionally depending on your requirements. In Sample code, I have used these delegate methods to add the zooming effect where the preview seems to come out of the same button clicked by user.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
- (&lt;span style=&quot;color: #ce00a4;&quot;&gt;BOOL&lt;/span&gt;)previewController:(&lt;span style=&quot;color: #7e1bad;&quot;&gt;QLPreviewController&lt;/span&gt; *)controller shouldOpenURL:(&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSURL&lt;/span&gt; *)url forPreviewItem:(&lt;span style=&quot;color: #ce00a4;&quot;&gt;id&lt;/span&gt; &amp;lt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;QLPreviewItem&lt;/span&gt;&amp;gt;)item&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
- (&lt;span style=&quot;color: #7e1bad;&quot;&gt;CGRect&lt;/span&gt;)previewController:(&lt;span style=&quot;color: #7e1bad;&quot;&gt;QLPreviewController&lt;/span&gt; *)controller frameForPreviewItem:(&lt;span style=&quot;color: #ce00a4;&quot;&gt;id&lt;/span&gt; &amp;lt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;QLPreviewItem&lt;/span&gt;&amp;gt;)item inSourceView:(&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIView&lt;/span&gt; **)view&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
For more information, you can view the&lt;a href=&quot;http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Reference/QLPreviewController_Class/Reference/Reference.html&quot;&gt;&lt;u&gt; Apple reference document.&lt;/u&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://dl.dropbox.com/u/1396078/QLPreviewSample.zip&quot;&gt;Link of the sample code to download.&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/6829285048822837266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/tutorial-how-to-use-qlpreviewcontroller.html#comment-form' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/6829285048822837266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/6829285048822837266'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/tutorial-how-to-use-qlpreviewcontroller.html' title='Tutorial: How to use QLPreviewController to preview files.'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-3667870929656470499</id><published>2012-07-17T10:23:00.000-07:00</published><updated>2012-07-17T10:24:17.582-07:00</updated><title type='text'>Make a difference with your App.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is a great video&amp;nbsp; inspiring the developers to make an app which actually makes a difference !&amp;nbsp; &lt;a href=&quot;http://www.apple.com/ios/videos/#developers&quot;&gt;LINK&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.apple.com/ios/videos/#developers&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;401&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWnyvbB_s3OnEfpr1aqxyMRMvLl30Tk_fCnN1H3tmutx_XYFx8pyqAqXeBVYDkp-5vg4DQ-6vTrXo2_TO2v_FqqvJHC4qLp8Bo0TZbV41cXwmi2q8sPi7KqenhX1-0dVoNG__f8gfStQ/s640/Screen+Shot+2012-07-17+at+1.24.42+PM.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/3667870929656470499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/make-difference-with-your-app.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/3667870929656470499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/3667870929656470499'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/make-difference-with-your-app.html' title='Make a difference with your App.'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWnyvbB_s3OnEfpr1aqxyMRMvLl30Tk_fCnN1H3tmutx_XYFx8pyqAqXeBVYDkp-5vg4DQ-6vTrXo2_TO2v_FqqvJHC4qLp8Bo0TZbV41cXwmi2q8sPi7KqenhX1-0dVoNG__f8gfStQ/s72-c/Screen+Shot+2012-07-17+at+1.24.42+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-7688699505799989064</id><published>2012-07-16T17:34:00.003-07:00</published><updated>2012-07-16T17:35:57.847-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="_UIViewServiceErrorDomain"/><category scheme="http://www.blogger.com/atom/ns#" term="SLComposeViewControllerCompletionHandler"/><category scheme="http://www.blogger.com/atom/ns#" term="viewServiceDidTerminateWithError"/><title type='text'>Importance of SLComposeViewControllerCompletionHandler</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
You need to add the handler(&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #351c75; font-family: Menlo; font-size: 11px;&quot;&gt;SLComposeViewControllerCompletionHandler&lt;/span&gt;) otherwise you may get following error when you try to cancel the Facebook Post or post the Post:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceErrorDomain Code =1 &quot;The operation couldn&#39;t be completed. (_UIViewServiceErrorDomain error 1.)&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You need to create handler like following&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
SLComposeViewControllerCompletionHandler &lt;span style=&quot;color: #ce00a4;&quot;&gt;__block&lt;/span&gt; completionHandler=^(&lt;span style=&quot;color: #7e1bad;&quot;&gt;SLComposeViewControllerResult&lt;/span&gt; result)&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [fbController &lt;/span&gt;dismissViewControllerAnimated&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;YES&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;completion&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;switch&lt;/span&gt;(result){&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;case&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;SLComposeViewControllerResultCancelled&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;default&lt;/span&gt;:&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #490084;&quot;&gt;NSLog&lt;/span&gt;(&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;Cancelled.....&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;break&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;case&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;SLComposeViewControllerResultDone&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #490084;&quot;&gt;NSLog&lt;/span&gt;(&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;Posted....&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;break&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }};&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
and add this handler to SLComposeViewController&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
SLComposeViewController&lt;span style=&quot;color: black;&quot;&gt; *fbController=[&lt;/span&gt;SLComposeViewController&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;composeViewControllerForServiceType&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;SLServiceTypeFacebook&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;[fbController &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #490084;&quot;&gt;setCompletionHandler&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;:completionHandler];&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;and you can see the last post to see how to use it completely with the sample code.&lt;u&gt; &lt;a href=&quot;http://soulwithmobiletechnology.blogspot.com/2012/07/tutorial-how-to-use-inbuilt.html&quot;&gt;LINK&lt;/a&gt;.&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/7688699505799989064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/importance-of-slcomposeviewcontrollerco.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/7688699505799989064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/7688699505799989064'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/importance-of-slcomposeviewcontrollerco.html' title='Importance of SLComposeViewControllerCompletionHandler'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-1715922296104517590</id><published>2012-07-16T17:24:00.003-07:00</published><updated>2012-07-16T17:27:38.745-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS 6 sample code"/><category scheme="http://www.blogger.com/atom/ns#" term="SLComposeViewController"/><category scheme="http://www.blogger.com/atom/ns#" term="SLComposeViewControllerCompletionHandler"/><category scheme="http://www.blogger.com/atom/ns#" term="SLServiceTypeFacebook"/><category scheme="http://www.blogger.com/atom/ns#" term="SLServiceTypeTwitter"/><title type='text'>Tutorial: How to use inbuilt Facebook/Twitter  API  in iOS6.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
You need to add Social.framework in your project.&lt;br /&gt;
Add to your file following&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #7f4627;&quot;&gt;#import &quot;&lt;/span&gt;Social/Social.h&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009; font-family: Menlo;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times; font-size: small;&quot;&gt;You can create 3 type of service:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-family: Times; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
SLServiceTypeTwitter;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
SLServiceTypeFacebook;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
SLServiceTypeSinaWeibo;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
I have created service of Facebook.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
SLComposeViewController&lt;span style=&quot;color: black;&quot;&gt; *fbController=[&lt;/span&gt;SLComposeViewController&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;composeViewControllerForServiceType&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;SLServiceTypeFacebook&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #ce00a4;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;([&lt;/span&gt;SLComposeViewController&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;isAvailableForServiceType&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;SLServiceTypeFacebook&lt;span style=&quot;color: black;&quot;&gt;])&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;SLComposeViewControllerCompletionHandler &lt;span style=&quot;color: #ce00a4;&quot;&gt;__block&lt;/span&gt; completionHandler=^(&lt;span style=&quot;color: #7e1bad;&quot;&gt;SLComposeViewControllerResult&lt;/span&gt; result){&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [fbController &lt;/span&gt;dismissViewControllerAnimated&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;YES&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;completion&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;switch&lt;/span&gt;(result){&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;case&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;SLComposeViewControllerResultCancelled&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;default&lt;/span&gt;:&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;color: #e30009; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;NSLog&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;@&quot;Cancelled.....&quot;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;break&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;case&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;SLComposeViewControllerResultDone&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #490084;&quot;&gt;NSLog&lt;/span&gt;(&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;Posted....&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;break&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }};&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [fbController &lt;span style=&quot;color: #490084;&quot;&gt;addImage&lt;/span&gt;:[&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIImage&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;imageNamed&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;1.jpg&quot;&lt;/span&gt;]];&lt;/div&gt;
&lt;div style=&quot;color: #e30009; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [fbController &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;setInitialText&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;@&quot;Check out this article.&quot;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #e30009; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [fbController &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;addURL&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:[&lt;/span&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSURL&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;URLWithString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;@&quot;http://soulwithmobiletechnology.blogspot.com/&quot;&lt;span style=&quot;color: black;&quot;&gt;]];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [fbController &lt;span style=&quot;color: #490084;&quot;&gt;setCompletionHandler&lt;/span&gt;:completionHandler];&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;presentViewController&lt;span style=&quot;color: black;&quot;&gt;:fbController &lt;/span&gt;animated&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;YES&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;completion&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #ce00a4;&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
I have added image which will be posted with the message and URL on the Facebook page. Here is what the message looks like on FB.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH5Ez2wmHSkCuz81CgcfgtNlvFJqaIbwgOdraSdX8KBmwUYuao7Gw7MCLvzCbfpFulB-RE8eRkVkrefVVHO1rIfNqzHsy_tk1HqIZxrmHgH5Cb2kf3dX3Wb2r4DuNnGaE24U3-JJdhtw/s1600/Message+Posted+on+FB.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH5Ez2wmHSkCuz81CgcfgtNlvFJqaIbwgOdraSdX8KBmwUYuao7Gw7MCLvzCbfpFulB-RE8eRkVkrefVVHO1rIfNqzHsy_tk1HqIZxrmHgH5Cb2kf3dX3Wb2r4DuNnGaE24U3-JJdhtw/s400/Message+Posted+on+FB.png&quot; width=&quot;355&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
Following are some screenshots of the app running.&lt;br /&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;float: left; margin-right: 1em; text-align: left;&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/AVvXsEhpGN21qNbTKHoORroRP-GaU2aoOseO2RJrN78RLnK2Xuiq7KP4JbCims9HPsdaZLJSfOjhYtO_N43S0RoXiNVO4aI3uimJecJiWr_JYTdeC5HowgIWAym9RrDarq0oddLwJfrbGiroow/s1600/Facebook+iOS+6+_+1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;207&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpGN21qNbTKHoORroRP-GaU2aoOseO2RJrN78RLnK2Xuiq7KP4JbCims9HPsdaZLJSfOjhYtO_N43S0RoXiNVO4aI3uimJecJiWr_JYTdeC5HowgIWAym9RrDarq0oddLwJfrbGiroow/s320/Facebook+iOS+6+_+1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;If the Facebook account is not set up on device, it gives you this pop up.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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;float: right; margin-left: 1em; text-align: right;&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/AVvXsEiFDy0CxRzM9GvCAlRet4HtBUrsT5mSnlxLPn6HUrL7NTiMjjEZnY1HwyvxBqdw9DwSij6rIOxKYtlbkvBO8H2aht3vz8FrOCvnOghaoEqFt8F8lwh1h_GpzOgD_JUj87RmUCYV5mMvAA/s1600/Facebook+iOS+6+_+2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;162&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFDy0CxRzM9GvCAlRet4HtBUrsT5mSnlxLPn6HUrL7NTiMjjEZnY1HwyvxBqdw9DwSij6rIOxKYtlbkvBO8H2aht3vz8FrOCvnOghaoEqFt8F8lwh1h_GpzOgD_JUj87RmUCYV5mMvAA/s320/Facebook+iOS+6+_+2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;SLComposeViewController with added URL and Image.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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;float: left; margin-right: 1em; text-align: left;&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/AVvXsEj5LjwyVVVhPZ2BiyBZQlsNzX0z7S80WDWSb5wsfTozqbVWK0wRWkcL94gw9ubNibtILXbrinVqbr24fQEN3cImllz4Exq5plGFDmPBvsYV0bl6Ffvfiogau_ykTryLR_0aJfqrdlMZ9Q/s1600/Facebook+iOS+6+_+3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5LjwyVVVhPZ2BiyBZQlsNzX0z7S80WDWSb5wsfTozqbVWK0wRWkcL94gw9ubNibtILXbrinVqbr24fQEN3cImllz4Exq5plGFDmPBvsYV0bl6Ffvfiogau_ykTryLR_0aJfqrdlMZ9Q/s320/Facebook+iOS+6+_+3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;SLComposeViewController with added text,URL and image, &lt;br /&gt;
Also location has been set on the post &lt;br /&gt;
just like we can do on our Facebook page.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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;float: right; margin-left: 1em; text-align: right;&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/AVvXsEhBu0V7h1wI0XF9AVTbzothX9gLy4iJMGmRQctdJsI43LcOclvpmte4esLyoeY52oVDMAJklmhGhDGZrr2NKqpjKPf0uvspG1A0aLNlQJ-41shsm5NbOW6HGPqnhQl8e8gK7HSjFWDHhQ/s1600/Facebook+iOS+6+_+4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBu0V7h1wI0XF9AVTbzothX9gLy4iJMGmRQctdJsI43LcOclvpmte4esLyoeY52oVDMAJklmhGhDGZrr2NKqpjKPf0uvspG1A0aLNlQJ-41shsm5NbOW6HGPqnhQl8e8gK7HSjFWDHhQ/s320/Facebook+iOS+6+_+4.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;You can change the album in which you want to post this image.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&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;float: left; margin-right: 1em; text-align: left;&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/AVvXsEjDDbhOrohh8mYV58MkxRqQncZfyhkMSKXUQqUHJ_qh76rGegACH_s0RswF3dIY_WteC7y3V0xVfEOxi6TvccbvyVRnkdZAEdlnZkOD1Z-zdBQVJ0O0mo2ovk-9lCfWT2eHOluUC6Y2Rg/s1600/Facebook+iOS+6+_+5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;204&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDDbhOrohh8mYV58MkxRqQncZfyhkMSKXUQqUHJ_qh76rGegACH_s0RswF3dIY_WteC7y3V0xVfEOxi6TvccbvyVRnkdZAEdlnZkOD1Z-zdBQVJ0O0mo2ovk-9lCfWT2eHOluUC6Y2Rg/s320/Facebook+iOS+6+_+5.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;You can choose which group you want to display this post to.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;a href=&quot;http://dl.dropbox.com/u/1396078/SocialFrameworkTest.zip&quot;&gt;Link to download the sample code.&lt;/a&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/1715922296104517590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/tutorial-how-to-use-inbuilt.html#comment-form' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/1715922296104517590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/1715922296104517590'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/tutorial-how-to-use-inbuilt.html' title='Tutorial: How to use inbuilt Facebook/Twitter  API  in iOS6.'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH5Ez2wmHSkCuz81CgcfgtNlvFJqaIbwgOdraSdX8KBmwUYuao7Gw7MCLvzCbfpFulB-RE8eRkVkrefVVHO1rIfNqzHsy_tk1HqIZxrmHgH5Cb2kf3dX3Wb2r4DuNnGaE24U3-JJdhtw/s72-c/Message+Posted+on+FB.png" height="72" width="72"/><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-1462259590495322927</id><published>2012-07-12T09:34:00.002-07:00</published><updated>2012-07-12T09:37:16.170-07:00</updated><title type='text'>Mac OS Evolution</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1978 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces Apple DOS 3.1, the first operating system for the Apple computers in June. &lt;br /&gt;
&lt;br /&gt;
1984 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces System 1. &lt;br /&gt;
&lt;br /&gt;
1985 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces System 2. &lt;br /&gt;
&lt;br /&gt;
1986 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces System 3. &lt;br /&gt;
&lt;br /&gt;
1987 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces System 4. &lt;br /&gt;
&lt;br /&gt;
1988 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces System 6. &lt;br /&gt;
&lt;br /&gt;
1991 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces System 7 operating system May 13, 1991. &lt;br /&gt;
&lt;br /&gt;
1995 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; allows other computer companies to clone its computer by announcing its licensed the Macintosh operating system rights to Radius on January 4. &lt;br /&gt;
&lt;br /&gt;
1997 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces Mac OS 8. 1997Apple buys NeXT Software Inc. for $400 million and acquires Steve Jobs, Apples cofounder, as a consultant. &lt;br /&gt;
&lt;br /&gt;
1999 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces Mac OS 9. &lt;br /&gt;
&lt;br /&gt;
2001 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces Mac OS X 10.0 named &lt;b&gt;Cheetah&lt;/b&gt; and becomes available March 24, 2001. &lt;br /&gt;
&lt;br /&gt;
2001 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces Mac OS X 10.1 named &lt;b&gt;Puma&lt;/b&gt; and becomes available on September 25, 2001. &lt;br /&gt;
&lt;br /&gt;
2002 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces Mac OS X 10.2 named &lt;b&gt;Jaguar&lt;/b&gt; and becomes available on August 23, 2002. &lt;br /&gt;
&lt;br /&gt;
2003 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces Mac OS X 10.3 named &lt;b&gt;Panther&lt;/b&gt; October 25, 2003. &lt;br /&gt;
&lt;br /&gt;
2004 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces Mac OS X 10.4 named &lt;b&gt;Tiger&lt;/b&gt; at the WWDC on June 28, 2004. &lt;br /&gt;
&lt;br /&gt;
2007 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces Mac OS X 10.5 named &lt;b&gt;Leopard&lt;/b&gt; October 26, 2007. &lt;br /&gt;
&lt;br /&gt;
2008 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces Mac OS X 10.6 named &lt;b&gt;Snow Leopard&lt;/b&gt; and &lt;b&gt;MobileMe&lt;/b&gt; at the WWDC on June 9, 2008.&lt;br /&gt;
&lt;br /&gt;
2011 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces Mac OS X 10.7 named &lt;b&gt;Lion&lt;/b&gt; was released on July 20, 2011.&lt;br /&gt;
&lt;br /&gt;
2012 &lt;b&gt;&lt;span style=&quot;color: #444444;&quot;&gt;Apple&lt;/span&gt;&lt;/b&gt; introduces Mac OS X 10.8 named &lt;b&gt;Mountain Lion&lt;/b&gt; will be released&amp;nbsp; in July 2012.&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/1462259590495322927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/mac-os-evolution.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/1462259590495322927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/1462259590495322927'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/mac-os-evolution.html' title='Mac OS Evolution'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-493188181741986963</id><published>2012-07-10T21:14:00.005-07:00</published><updated>2012-07-10T21:15:43.114-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mountain Lion OS"/><category scheme="http://www.blogger.com/atom/ns#" term="New MAc oS"/><title type='text'>Features in new Mountain Lion OS.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Atmosphere is again hot with the anticipation of new Mac OS. Again, millions of 20 dollars will be added to trillion dollar Apple :) Lets take a quick look at the &amp;nbsp;feature list.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;iCloud is automatic and effortless now. Just sign in once with your Apple ID and iCloud is set up in all the apps that use it.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Reminder:&amp;nbsp; Set due dates and you’ll get alerts as deadlines approach. Set a 
location from your Mac, and your iPhone or iPad will remind you when you
 get there.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Notes: Its more noteworthy with photos, images, and attachments.Pin important notes to your desktop so they’re easy to get to.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;iMessage: You can send messages to anyone on an iPhone, iPad, or iPod touch 
running iOS 5, too.Send photos, videos, documents, and contacts — even send messages to a group.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;Notification Center just like iPad—for &amp;nbsp;any new email, a message, a software update or a calendar alert.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Power Nap is most awesome-It periodically updates Mail, Contacts, Calendar, Reminders, Notes, 
Photo Stream, Find My Mac, and Documents in the Cloud,downloads software updates and makes 
backups with Time Machine. While updating, the 
system sounds are silent and no lights or fans come on, so nothing 
disturbs you as reported on Apple&#39;s website.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Dictation -It converts your words into text.And it recognizes people from your contacts so it enters names accurately. Dictation supports English (U.S., UK, and Australia), French, German, and Japanese.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Share Button-There is Share button throughout OS X Mountain Lion.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Built-in Facebook support- You can share what’s up with&amp;nbsp;you right 
from the app you’re in. Post photos or links. Add comments and 
locations.OS X adds your Facebook friends and their profile photos to Contacts.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Built-in Twitter support-&amp;nbsp;OS X Mountain Lion is designed for tweeting. Sign in once and you’re all set up .You can tweet from Notification Center, too.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Game Center app - You can play anyone on a Mac, iPad, iPhone, and iPod touch.Just use your Game Center account from iOS or create one with your Apple ID. Then sign in and you’re in.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Gatekeeper -It helps protect you from downloading and installing malicious software on your Mac.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Safari-&amp;nbsp;When you open web pages on your iPhone or iPad, iCloud Tabs makes them available on your Mac, too.&amp;nbsp;So you can pick up browsing wherever you left off. &amp;nbsp;Safari saves entire web pages in your Reading List,not just the links.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;To read full list of 200+ features, &lt;a href=&quot;http://www.apple.com/osx/whats-new/features.html&quot;&gt;HERE is the link.&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/493188181741986963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/features-in-new-mountain-lion-os.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/493188181741986963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/493188181741986963'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/features-in-new-mountain-lion-os.html' title='Features in new Mountain Lion OS.'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-7057326408467888111</id><published>2012-07-10T18:42:00.003-07:00</published><updated>2012-07-10T18:42:31.925-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iPad"/><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="UIUserInterfaceIdiomPad"/><title type='text'>Running on iPhone or iPad ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Developing a universal app makes it a necessity to find out if the app is running on iPhone or iPad, accordingly you write your code block.&lt;br /&gt;
Here is the code:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #7f4627; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #ce00a4;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; (&lt;/span&gt;UI_USER_INTERFACE_IDIOM&lt;span style=&quot;color: black;&quot;&gt;() == &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;UIUserInterfaceIdiomPad&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
}&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #ce00a4;&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #7f4627;&quot;&gt;UI_USER_INTERFACE_IDIOM&lt;/span&gt;() == &lt;span style=&quot;color: #490084;&quot;&gt;UIUserInterfaceIdiomPhone&lt;/span&gt;)&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
}&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/7057326408467888111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/running-on-iphone-or-ipad.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/7057326408467888111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/7057326408467888111'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/running-on-iphone-or-ipad.html' title='Running on iPhone or iPad ?'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-6033262838637321219</id><published>2012-07-10T18:35:00.002-07:00</published><updated>2012-07-10T18:36:19.778-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="minimum iOS device OS."/><title type='text'>How to find OS version of iOS device.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *currentOS = [[&lt;/span&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIDevice&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;currentDevice&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;systemVersion&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
How to check if current OS is minimum version you need. Suppose minimum you need is 4.2&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *currentOS = [[&lt;/span&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;UIDevice&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;currentDevice&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;systemVersion&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #ce00a4;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; ([currentOS &lt;/span&gt;compare&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;4.2&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;options&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSNumericSearch&lt;span style=&quot;color: black;&quot;&gt;] != &lt;/span&gt;NSOrderedAscending&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #490084;&quot;&gt;NSLog&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009;&quot;&gt;@&quot;Yes, it is greater than or equal to 4.2&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/6033262838637321219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/how-to-find-os-version-of-ios-device.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/6033262838637321219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/6033262838637321219'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/how-to-find-os-version-of-ios-device.html' title='How to find OS version of iOS device.'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-8688816127340742888</id><published>2012-07-02T08:02:00.005-07:00</published><updated>2012-07-02T08:03:27.760-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="add event"/><category scheme="http://www.blogger.com/atom/ns#" term="EKEvent"/><category scheme="http://www.blogger.com/atom/ns#" term="EKEventStore"/><category scheme="http://www.blogger.com/atom/ns#" term="iPhone add event code"/><title type='text'>How to add Event in device Calender.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EKEventStore&lt;span style=&quot;color: black;&quot;&gt; *eventStore = [[&lt;/span&gt;EKEventStore&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7e1bad;&quot;&gt;EKEvent&lt;/span&gt; *event&amp;nbsp; = [&lt;span style=&quot;color: #7e1bad;&quot;&gt;EKEvent&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;eventWithEventStore&lt;/span&gt;:eventStore];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; event.&lt;span style=&quot;color: #7e1bad;&quot;&gt;title&lt;/span&gt; &amp;nbsp; &amp;nbsp; =&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009;&quot;&gt;@&quot;My Event Name&quot;&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; event.&lt;span style=&quot;color: #7e1bad;&quot;&gt;startDate&lt;/span&gt; =[&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e1bad;&quot;&gt;NSDate&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #490084;&quot;&gt;date&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; event.&lt;span style=&quot;color: #7e1bad;&quot;&gt;endDate&lt;/span&gt; &amp;nbsp; = [[&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSDate&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;alloc&lt;/span&gt;] &lt;span style=&quot;color: #490084;&quot;&gt;initWithTimeInterval&lt;/span&gt;:&lt;span style=&quot;color: #4600dd;&quot;&gt;60&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #490084;&quot;&gt;sinceDate&lt;/span&gt;:event.&lt;span style=&quot;color: #7e1bad;&quot;&gt;startDate&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [event &lt;/span&gt;setCalendar&lt;span style=&quot;color: black;&quot;&gt;:[eventStore &lt;/span&gt;defaultCalendarForNewEvents&lt;span style=&quot;color: black;&quot;&gt;]];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7e1bad;&quot;&gt;NSError&lt;/span&gt; *err;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [eventStore &lt;span style=&quot;color: #490084;&quot;&gt;saveEvent&lt;/span&gt;:event &lt;span style=&quot;color: #490084;&quot;&gt;span&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;EKSpanThisEvent&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;error&lt;/span&gt;:&amp;amp;err]; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
And don&#39;t forget to add&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #7f4627;&quot;&gt;#import &lt;/span&gt;&lt;eventkit eventkit.h=&quot;&quot;&gt;&amp;nbsp;&lt;/eventkit&gt;&lt;/span&gt;to your file and EventKit framework to your project.&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/8688816127340742888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/how-to-add-event-in-device-calender.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/8688816127340742888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/8688816127340742888'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/07/how-to-add-event-in-device-calender.html' title='How to add Event in device Calender.'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-660331978438782871</id><published>2012-06-28T20:58:00.002-07:00</published><updated>2012-06-28T21:01:26.938-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="save nsdate in coredata"/><title type='text'>Save NSDate in CoreData</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1. In your model file.&lt;br /&gt;
Create an entity MyDate with attribute datestring of datatype date(select it from dropdown).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Save your date&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;//Create date from the string&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black;&quot;&gt; *dateFormatter = [[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [dateFormatter &lt;span style=&quot;color: #490084;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;dd-MM-yyyy&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7e1bad;&quot;&gt;NSDate&lt;/span&gt; *date=[dateFormatter &lt;span style=&quot;color: #490084;&quot;&gt;dateFromString&lt;/span&gt;:&lt;span style=&quot;color: #3e8388;&quot;&gt;dateString_&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [dateFormatter &lt;span style=&quot;color: #490084;&quot;&gt;release&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; dateFormatter=&lt;span style=&quot;color: #ce00a4;&quot;&gt;nil&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;//Save the auditDate Now&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3e8388;&quot;&gt;MyDate&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; *obj = [&lt;/span&gt;&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSEntityDescription&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;insertNewObjectForEntityForName&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;MyDate&quot;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;inManagedObjectContext&lt;span style=&quot;color: black;&quot;&gt;:context];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp; &amp;nbsp; [&lt;/span&gt;obj&lt;span class=&quot;Apple-style-span&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #490084;&quot;&gt;setValue&lt;/span&gt;:date &lt;span style=&quot;color: #490084;&quot;&gt;forKey&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;datestring&quot;&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7e1bad;&quot;&gt;NSError&lt;/span&gt;* error = &lt;span style=&quot;color: #ce00a4;&quot;&gt;nil&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [context &lt;span style=&quot;color: #490084;&quot;&gt;save&lt;/span&gt;:&amp;amp;error];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ce00a4;&quot;&gt;if&lt;/span&gt; (error)&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #490084;&quot;&gt;NSLog&lt;/span&gt;(&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;%@&quot;&lt;/span&gt;, error);&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;3. Retrieve your date&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Times; font-size: medium; font: normal normal normal 11px/normal Menlo; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;When you &amp;nbsp;retrieve &amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3e8388;&quot;&gt;MyDate&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;objects, accessing value of key&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009;&quot;&gt;datestring&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;will return NSDate, you can convert that to NSString to display it on your screen.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; 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 class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/660331978438782871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/06/save-nsdate-in-coredata.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/660331978438782871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/660331978438782871'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/06/save-nsdate-in-coredata.html' title='Save NSDate in CoreData'/><author><name>Reetu Raj</name><uri>http://www.blogger.com/profile/08458984428135077241</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wWa4gjD86MMUGsQ5PVMXndck2viV3jxJR07SkLfTmLAKeVZv97zwRE0oASgVrq2ED-L2z5OEJerDShWZmclnnfFAtQm_vm_L7Hy6ij98cBwRh0nEpU6J5-aGfA6UvQ/s220/Screen+Shot+2012-02-17+at+7.17.54+PM.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4602316338438806651.post-603319849766801183</id><published>2012-06-28T08:09:00.000-07:00</published><updated>2012-06-28T21:00:05.683-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="number of days in a month"/><title type='text'>Get number of days in a month</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;color: #7e1bad; font-family: Menlo; font-size: 11px;&quot;&gt;NSDate&lt;span style=&quot;color: black;&quot;&gt; *today=[&lt;/span&gt;NSDate&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e1bad; font-family: Menlo; font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e1bad; font-family: Menlo; font-size: 11px;&quot;&gt;NSCalendar&lt;span style=&quot;color: black;&quot;&gt; *gregorian = [[&lt;/span&gt;NSCalendar&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;initWithCalendarIdentifier&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSGregorianCalendar&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #490084; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSRange&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; days = [gregorian &lt;/span&gt;rangeOfUnit&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSDayCalendarUnit&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;inUnit&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSMonthCalendarUnit&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;forDate&lt;span style=&quot;color: black;&quot;&gt;:date];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&lt;span style=&quot;color: #ce00a4;&quot;&gt;int&lt;/span&gt;&amp;nbsp;daysInGivenMonth=&amp;nbsp;days.&lt;span style=&quot;color: #7e1bad;&quot;&gt;length&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/603319849766801183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/06/get-number-of-days-in-month.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/603319849766801183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/603319849766801183'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/06/get-number-of-days-in-month.html' title='Get number of days in a month'/><author><name>D.Scott</name><uri>http://www.blogger.com/profile/12479588119455093007</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-4602316338438806651.post-8105694510067742304</id><published>2012-06-28T08:02:00.001-07:00</published><updated>2012-06-28T08:09:39.771-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="find day for a date"/><category scheme="http://www.blogger.com/atom/ns#" term="NSDate"/><title type='text'>Get first day of a month.</title><content type='html'>First we will build first date (01-xx-xxxx)of a given month.&lt;br /&gt;
Of course you can change 01 to anything like 12,26 or whatever date you want to find day of.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #ce00a4;&quot;&gt;int&amp;nbsp;&lt;/span&gt;month =&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #4600dd;&quot;&gt;4&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #ce00a4;&quot;&gt;int&amp;nbsp;&lt;/span&gt;year=&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #4600dd;&quot;&gt;2012&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
NSDateFormatter&lt;span style=&quot;color: black;&quot;&gt; *dateFormatter = [[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[dateFormatter &lt;span style=&quot;color: #490084;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;dd-MM-yyyy&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSDate&lt;/span&gt; *date=[dateFormatter &lt;span style=&quot;color: #490084;&quot;&gt;dateFromString&lt;/span&gt;:[&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSString&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;stringWithFormat&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;01-%i&lt;/span&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span style=&quot;color: #e30009;&quot;&gt;%i&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Menlo; font-size: 11px;&quot;&gt;,month,year]];&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[dateFormatter &lt;span style=&quot;color: #490084;&quot;&gt;release&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
dateFormatter=&lt;span style=&quot;color: #ce00a4;&quot;&gt;nil&lt;/span&gt;;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;Then&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;we will find day for the above date in Gregorian Calendar. You can choose the method give in &amp;nbsp;previous article where you create&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #7e1bad;&quot;&gt;NSDateFormatter&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;&amp;nbsp;with&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #e30009;&quot;&gt;@&quot;EEEE&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;,But if you are calendar specific, then following is the way.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Times; font-size: small;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
NSCalendar&lt;span style=&quot;color: black;&quot;&gt; *gregorian = [[&lt;/span&gt;NSCalendar&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;initWithCalendarIdentifier&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;:&lt;/span&gt;NSGregorianCalendar&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSDateComponents&lt;/span&gt; *weekdayComponents =[gregorian &lt;span style=&quot;color: #490084;&quot;&gt;components&lt;/span&gt;:&lt;span style=&quot;color: #490084;&quot;&gt;NSWeekdayCalendarUnit&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;fromDate&lt;/span&gt;:date];&lt;/div&gt;
&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #ce00a4;&quot;&gt;int&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;firstDay = [weekdayComponents &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;weekday&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;//1 for Sun,2 for Mon etc&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
[gregorian &lt;span style=&quot;color: #490084;&quot;&gt;release&lt;/span&gt;];&lt;/div&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/8105694510067742304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/06/get-first-day-of-month.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/8105694510067742304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/8105694510067742304'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/06/get-first-day-of-month.html' title='Get first day of a month.'/><author><name>D.Scott</name><uri>http://www.blogger.com/profile/12479588119455093007</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-4602316338438806651.post-8763596156970990973</id><published>2012-06-28T07:54:00.001-07:00</published><updated>2012-06-28T07:54:43.769-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="day name in a date"/><category scheme="http://www.blogger.com/atom/ns#" term="mon"/><category scheme="http://www.blogger.com/atom/ns#" term="NSDate"/><category scheme="http://www.blogger.com/atom/ns#" term="sun"/><category scheme="http://www.blogger.com/atom/ns#" term="tue"/><title type='text'>Get Day Name in NSDate</title><content type='html'>In this example we will find what day(Sun, Mon or Tue etc) is it for a given date.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;&amp;nbsp; &amp;nbsp; NSDate&lt;/span&gt; *today=[&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSDate&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;date&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black;&quot;&gt; *dateFormatter = [[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [dateFormatter &lt;span style=&quot;color: #490084;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;EEEE&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7e1bad;&quot;&gt;NSString&lt;/span&gt; *currentDay&amp;nbsp;= [dateFormatter &lt;span style=&quot;color: #490084;&quot;&gt;stringFromDate&lt;/span&gt;:today];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #e30009; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #490084;&quot;&gt;&amp;nbsp; &amp;nbsp; NSLog&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;@&quot;currentDay=%@&quot;&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;currentDay&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #e30009; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; //currentDay is 1 for Sun, 2 for Mon&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;

&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [dateFormatter &lt;span style=&quot;color: #490084;&quot;&gt;release&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/8763596156970990973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/06/get-day-name-in-nsdate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/8763596156970990973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/8763596156970990973'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/06/get-day-name-in-nsdate.html' title='Get Day Name in NSDate'/><author><name>D.Scott</name><uri>http://www.blogger.com/profile/12479588119455093007</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-4602316338438806651.post-4094455371828094455</id><published>2012-06-28T07:51:00.002-07:00</published><updated>2012-06-28T07:51:46.950-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="month"/><category scheme="http://www.blogger.com/atom/ns#" term="month in a date"/><category scheme="http://www.blogger.com/atom/ns#" term="NSDate"/><title type='text'>Get Month from NSDate</title><content type='html'>In this example we will take todays date and find the month in todays date.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #7e1bad;&quot;&gt;&amp;nbsp; &amp;nbsp; NSDate&lt;/span&gt; *today=[&lt;span style=&quot;color: #7e1bad;&quot;&gt;NSDate&lt;/span&gt; &lt;span style=&quot;color: #490084;&quot;&gt;date&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 13.0px;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #7e1bad; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black;&quot;&gt; *dateFormatter = [[&lt;/span&gt;NSDateFormatter&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;alloc&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #490084;&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [dateFormatter &lt;span style=&quot;color: #490084;&quot;&gt;setDateFormat&lt;/span&gt;:&lt;span style=&quot;color: #e30009;&quot;&gt;@&quot;M&quot;&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7e1bad;&quot;&gt;NSString&lt;/span&gt; *currentMonth = [dateFormatter &lt;span style=&quot;color: #490084;&quot;&gt;stringFromDate&lt;/span&gt;:today];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; //currentMonth will be 1 for Jan, 2 for Feb etc&lt;/div&gt;
&lt;div style=&quot;color: #008c00; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #e30009; font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&lt;span style=&quot;color: #490084;&quot;&gt;&amp;nbsp; &amp;nbsp; NSLog&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;@&quot;currentMonth=%@&quot;&lt;span style=&quot;color: black;&quot;&gt;,currentMonth);&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;

&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; [dateFormatter &lt;span style=&quot;color: #490084;&quot;&gt;release&lt;/span&gt;];&lt;/div&gt;
&lt;div style=&quot;font: 11.0px Menlo; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;--
Best Happens with Us in Mobile!
Nighsoft
(www.nighsoft.com)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://soulwithmobiletechnology.blogspot.com/feeds/4094455371828094455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/06/get-month-from-nsdate.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/4094455371828094455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4602316338438806651/posts/default/4094455371828094455'/><link rel='alternate' type='text/html' href='http://soulwithmobiletechnology.blogspot.com/2012/06/get-month-from-nsdate.html' title='Get Month from NSDate'/><author><name>D.Scott</name><uri>http://www.blogger.com/profile/12479588119455093007</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>