<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FlexiCoder Blog &#187; iPhone Development</title>
	<atom:link href="http://www.flexicoder.com/blog/index.php/category/iphone-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexicoder.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 12:24:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>CCLabelBMFont &#8211; not displaying</title>
		<link>http://www.flexicoder.com/blog/index.php/2011/05/cclabelbmfont-not-displaying/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2011/05/cclabelbmfont-not-displaying/#comments</comments>
		<pubDate>Fri, 13 May 2011 14:43:02 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[cocos2d]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=348</guid>
		<description><![CDATA[I hit a problem today where the CCLabelBMFont wasn&#8217;t rendering the text I wanted at all. I created the the fnt file using http://www.n4te.com/hiero/hiero.jnlp Turns out that as it creates the underlying png for some reason it saves it in a flipped format, therefore you need to load the png into your favourite graphics package [...]]]></description>
			<content:encoded><![CDATA[<p>I hit a problem today where the CCLabelBMFont wasn&#8217;t rendering the text I wanted at all. I created the the fnt file using http://www.n4te.com/hiero/hiero.jnlp</p>
<p>Turns out that as it creates the underlying png for some reason it saves it in a flipped format, therefore you need to load the png into your favourite graphics package and flip it vertically before using it in your project</p>
<p><a href="http://www.flexicoder.com/">See what I do</a></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2011/05/cclabelbmfont-not-displaying/&title=CCLabelBMFont+%26%238211%3B+not+displaying&text=I+hit+a+problem+today+where+the+CCLabelBMFont+wasn%26%238217%3Bt+rendering+the+text+I+wanted+at+all.+I+created+the+the+fnt+file+using+http%3A%2F%2Fwww.n4te.com%2Fhiero%2Fhiero.jnlp+Turns+out+that+as+it+creates+the...&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2011/05/cclabelbmfont-not-displaying/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AirPrint &#8211; direct to the Printer</title>
		<link>http://www.flexicoder.com/blog/index.php/2011/02/airprint-direct-to-the-printer/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2011/02/airprint-direct-to-the-printer/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 12:12:25 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iOS4]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=345</guid>
		<description><![CDATA[If you have an AirPrint enabled printer and an iPhone/iPad running iOS4.2 or above you can print directly to the printer without the need for both devices to be connected through the same WiFi access point. On your iOS device, go to your WiFi settings and in the list of networks you should see an [...]]]></description>
			<content:encoded><![CDATA[<p>If you have an AirPrint enabled printer and an iPhone/iPad running iOS4.2 or above you can print directly to the printer without the need for both devices to be connected through the same WiFi access point. On your iOS device, go to your WiFi settings and in the list of networks you should see an entry that relates to the printer (so long as you are in range), and hey presto it all works</p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2011/02/airprint-direct-to-the-printer/&title=AirPrint+%26%238211%3B+direct+to+the+Printer&text=If+you+have+an+AirPrint+enabled+printer+and+an+iPhone%2FiPad+running+iOS4.2+or+above+you+can+print+directly+to+the+printer+without+the+need+for+both+devices+to+be+connected+through+the+same+WiFi+access...&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2011/02/airprint-direct-to-the-printer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Localisation language names</title>
		<link>http://www.flexicoder.com/blog/index.php/2010/08/localisation-language-names/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2010/08/localisation-language-names/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 08:39:23 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[useful links]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=339</guid>
		<description><![CDATA[When creating a new localisation file Xcode expects you to supply the correct name for the file, the list of valid values is here Social Bookmarking]]></description>
			<content:encoded><![CDATA[<p>When creating a new localisation file Xcode expects you to supply the correct name for the file, the list of valid values is <a href="http://www.loc.gov/standards/iso639-2/php/English_list.php">here</a></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2010/08/localisation-language-names/&title=Localisation+language+names&text=When+creating+a+new+localisation+file+Xcode+expects+you+to+supply+the+correct+name+for+the+file%2C+the+list+of+valid+values+is+here...&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2010/08/localisation-language-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CFBundleiconfile does not have an extension</title>
		<link>http://www.flexicoder.com/blog/index.php/2010/07/cfbundleiconfile-does-not-have-an-extension/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2010/07/cfbundleiconfile-does-not-have-an-extension/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 15:11:31 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[useful links]]></category>
		<category><![CDATA[iOS4]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=335</guid>
		<description><![CDATA[Currently there is an issue with Apples Application Loader, although the documentation states that you can omit the file extension from the Icon File name, and this works when running locally, when you come to submit it to the app store it fails validation. At the moment you have to specify the names using the [...]]]></description>
			<content:encoded><![CDATA[<p>Currently there is an issue with Apples Application Loader, although the documentation states that you can omit the file extension from the Icon File name, and this works when running locally, when you come to submit it to the app store it fails validation.</p>
<p>At the moment you have to specify the names using the CFBundleIconFiles<br />
<img src="http://www.flexicoder.com/blog/wp-content/uploads/2010/07/Screen-shot-2010-07-28-at-16.09.49.png" alt="Screen shot 2010-07-28 at 16.09.49" title="Screen shot 2010-07-28 at 16.09.49" width="409" height="190" class="aligncenter size-full wp-image-336" /></p>
<p><a href="http://developer.apple.com/library/ios/#qa/qa2010/qa1686.html">This is also a useful link to the Apple site that explains what icons are need for what device</a></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2010/07/cfbundleiconfile-does-not-have-an-extension/&title=CFBundleiconfile+does+not+have+an+extension&text=Currently+there+is+an+issue+with+Apples+Application+Loader%2C+although+the+documentation+states+that+you+can+omit+the+file+extension+from+the+Icon+File+name%2C+and+this+works+when+running+locally%2C+when...&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2010/07/cfbundleiconfile-does-not-have-an-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Truly quit app under iOS4</title>
		<link>http://www.flexicoder.com/blog/index.php/2010/07/truly-quit-app-under-ios4/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2010/07/truly-quit-app-under-ios4/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 11:07:20 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iOS4]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=333</guid>
		<description><![CDATA[Great article that explains how to terminate your app so that it doesn&#8217;t go into suspend mode, basic details are here Multi-tasking can be great, but it has added some complexity to programming on the iPhone. For many apps there really is no advantage. For instance, does the “That’s What She Said” button really need [...]]]></description>
			<content:encoded><![CDATA[<p>Great <a href="http://maniacdev.com/2010/07/screw-multi-tasking-how-to-make-your-ios-4-apps-exit-for-real/">article</a> that explains how to terminate your app so that it doesn&#8217;t go into suspend mode, basic details are here</p>
<p>Multi-tasking can be great, but it has added some complexity to programming on the iPhone.  For many apps there really is no advantage. For instance, does the “That’s What She Said” button really need to stay in memory?</p>
<p>It’s some added complexity that programmers don’t need.. some of the more complex memory intensive apps will just exit anyways, and programming the app to suspend can be a highly complicated task.</p>
<p>Fortunately there is a simple way to make your iOS 4 apps terminate for real when the user taps the home button.</p>
<p>This is a simple process:</p>
<p>Open your info.plist file<br />
Add The Key UIApplicationExitsOnSuspend<br />
Set the new key to YES<br />
Now your applicationwillterminate: method will be run when the user taps the home key, and your app will exit for real.</p>
<p><a href="http://www.flexicoder.com/">See what I do</a></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2010/07/truly-quit-app-under-ios4/&title=Truly+quit+app+under+iOS4&text=Great+article+that+explains+how+to+terminate+your+app+so+that+it+doesn%26%238217%3Bt+go+into+suspend+mode%2C+basic+details+are+here+Multi-tasking+can+be+great%2C+but+it+has+added+some+complexity+to+programming...&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2010/07/truly-quit-app-under-ios4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Images onto the iPhone Simulator</title>
		<link>http://www.flexicoder.com/blog/index.php/2010/06/getting-images-onto-the-iphone-simulator/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2010/06/getting-images-onto-the-iphone-simulator/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 13:21:34 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[Simulator]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=325</guid>
		<description><![CDATA[To add your own pictures to the simulator, get the simulator running and then drag your image onto the simulator. This will cause the simulator to open it mobile safari. Then mouse down and hold on the image, you will then see the following prompt&#8230; Clicking save will then include your image. Social Bookmarking]]></description>
			<content:encoded><![CDATA[<p>To add your own pictures to the simulator, get the simulator running and then drag your image onto the simulator. This will cause the simulator to open it mobile safari. Then mouse down and hold on the image, you will then see the following prompt&#8230;<br />
<div id="attachment_326" class="wp-caption aligncenter" style="width: 347px"><img src="http://www.flexicoder.com/blog/wp-content/uploads/2010/06/Screen-shot-2010-06-04-at-14.15.47.png" alt="Upload image to simulator" title="Image to simulator" width="337" height="497" class="size-full wp-image-326" /><p class="wp-caption-text">Upload image to simulator</p></div></p>
<p>Clicking save will then include your image.</p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2010/06/getting-images-onto-the-iphone-simulator/&title=Getting+Images+onto+the+iPhone+Simulator&text=To+add+your+own+pictures+to+the+simulator%2C+get+the+simulator+running+and+then+drag+your+image+onto+the+simulator.+This+will+cause+the+simulator+to+open+it+mobile+safari.&tags=simulator" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2010/06/getting-images-onto-the-iphone-simulator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Payments from Apple &#8211; Company VAT Return</title>
		<link>http://www.flexicoder.com/blog/index.php/2010/06/payments-from-apple-company-vat-return/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2010/06/payments-from-apple-company-vat-return/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 13:22:40 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=323</guid>
		<description><![CDATA[Working out what you do with a payment from Apple, when you are lucky enough to get one, can be quite tricky for a VAT registered company, this is the information I&#8217;ve been able to gather so far, via the Apple Developers Forum (so thanks goes to them)&#8230;.. Apple act as an undisclosed agent. You [...]]]></description>
			<content:encoded><![CDATA[<p>Working out what you do with a payment from Apple, when you are lucky enough to get one, can be quite tricky for a VAT registered company, this is the information I&#8217;ve been able to gather so far, via the Apple Developers Forum (so thanks goes to them)&#8230;..</p>
<p>Apple act as an undisclosed agent. You supply your products to Apple (one supply line), who then market and supply them to consumers (another supply line). Apple charge VAT on their supply line, as you&#8217;d expect.</p>
<p>Apple&#8217;s commission is a markup in the price, which they then add VAT to. This is very important. At no point do Apple invoice you for commission. Because of this, under HMRC rules this isn&#8217;t deemed to be a supply of &#8220;agency services&#8221; from Apple to you (the agency services in question being the marketing and sale of Apps on iTunes). That&#8217;s the second supply line &#8211; Apple to the Consumer. You can then account for VAT on your supply to Apple as normal. Because you are supplying software to Apple&#8217;s EU subsidiary, HMRC&#8217;s place of supply regulations mean you&#8217;re outside the scope for VAT.</p>
<p>So:</p>
<p>You sell an app for £0.99 (it&#8217;s an easy number to use in this example, for simplicity)<br />
Apple charges the user £0.84 (plus VAT)<br />
Apple takes their commission (£0.25), except it&#8217;s technically a mark-up on price, not commission.<br />
This leaves £0.59, which is the cost of supply. This is what you would invoice Apple for (even if you&#8217;re only generating invoices for your own internal paperwork)<br />
As you supplied your product to Apple for £0.59, who then sold it on at a markup to the public, you were supplying directly to a business, and thus outside the scope of VAT.</p>
<p>Fortunately, the contract you have isn&#8217;t with Apple UK, but Apple Sàrl, based in Luxumberg. When a seller in one EU member state invoices a company in a different EU member state they can zero rate the VAT. You should still put VAT as an item on your invoices, but rate it at zero (ie, £0.00). As long as you use the  addresses below on your invoices, HMRC should be satisfied.</p>
<p>Really Important point: Because your iTunes income is coming from another member state, you need to declare it in Box 8 of your VAT return. If you have an accountant you don&#8217;t need to worry about this, you just need to make sure s/he is aware your App income is from within the EU but outside the UK.</p>
<p>Should you need an address and Luxumberg VAT number for your records, it&#8217;s as follows:</p>
<p>Billing Address:<br />
iTunes s.à r. l.<br />
8 rue Heinrich Heine<br />
L-1720 Luxembourg<br />
TVA/VAT No.: LU20165772</p>
<p>Invoicing Address:<br />
App Store Invoicing<br />
Apple Operations Europe<br />
iTunes s.à r. l.<br />
Hollyhill Industrial Estate<br />
Hollyhill<br />
Cork Ireland</p>
<p><a href="http://www.flexicoder.com/">See what I do</a> </p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2010/06/payments-from-apple-company-vat-return/&title=Payments+from+Apple+%26%238211%3B+Company+VAT+Return&text=Working+out+what+you+do+with+a+payment+from+Apple%2C+when+you+are+lucky+enough+to+get+one%2C+can+be+quite+tricky+for+a+VAT+registered+company%2C+this+is+the+information+I%26%238217%3Bve+been+able+to+gather+so...&tags=supply+line%2C+apple%2C+supply" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2010/06/payments-from-apple-company-vat-return/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>WWDC 2010 &#8211; Sessions I&#8217;m Attending</title>
		<link>http://www.flexicoder.com/blog/index.php/2010/06/wwdc-2010-sessions-im-attending/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2010/06/wwdc-2010-sessions-im-attending/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 08:16:48 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[WWDC10]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=320</guid>
		<description><![CDATA[Here is my initial selection of sessions I&#8217;ll be attending, there are still some &#8220;TBA&#8221; sessions so might change my mind!! Last year they supplied an app to keep a track of the events, I hope they do the same again this year. Keynote Developer Tools State of the Union Developer Safari, Internet &#038; Web [...]]]></description>
			<content:encoded><![CDATA[<p>Here is my initial selection of sessions I&#8217;ll be attending, there are still some &#8220;TBA&#8221; sessions so might change my mind!! Last year they supplied an app to keep a track of the events, I hope they do the same again this year.</p>
<p>Keynote<br />
Developer Tools State of the Union	Developer<br />
Safari, Internet &#038; Web State of the Union<br />
Graphics and Media State of the Union<br />
Game Design and Development for iPhone OS, Part 1<br />
Game Design and Development for iPhone OS, Part 2<br />
Adopting Multitasking on iPhone OS, Part 1<br />
Introduction to Game Center<br />
Game Center Techniques, Part 1<br />
Game Center Techniques, Part 2<br />
Apple Design Awards<br />
Stump the Experts<br />
Integrating Ads with iAd	Frameworks<br />
Model-View-Controller for iPhone OS<br />
Introducing Blocks and Grand Central Dispatch on iPhone<br />
Making Movies is Hard Fun: Building Tools for Telling Stories<br />
Automating User Interface Testing with Instruments<br />
Simplifying Touch Event Handling with Gesture Recognizers<br />
Advanced Gesture Recognition<br />
Incorporating the Camera and Photo Library in your App<br />
Using Core Location in iPhone OS 4 (Repeat)	Frameworks<br />
Core Animation in Practice, Part 1<br />
NASA &#038; Mobility<br />
Implementing Local and Push Notifications<br />
Advanced Performance Optimization on iPhone OS, Part 1<br />
Calendar Integration with Event Kit	Frameworks<br />
WWDC Bash at Yerba Buena Gardens<br />
Understanding Crash Reports on iPhone OS<br />
Adopting Multitasking on iPhone OS, Part 2 (Repeat)<br />
Advanced Performance Optimization on iPhone OS, Part 2<br />
Camera to Screen &#8211; Building CNN&#8217;s Globally Connected Digital Content Flow</p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2010/06/wwdc-2010-sessions-im-attending/&title=WWDC+2010+%26%238211%3B+Sessions+I%26%238217%3Bm+Attending&text=Here+is+my+initial+selection+of+sessions+I%26%238217%3Bll+be+attending%2C+there+are+still+some+%26%238220%3BTBA%26%238221%3B+sessions+so+might+change+my+mind%21%21&tags=game+center%2C+for+iphone%2C+the+union%2C+iphone" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2010/06/wwdc-2010-sessions-im-attending/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PanGesture with multiple subviews</title>
		<link>http://www.flexicoder.com/blog/index.php/2010/04/pangesture-with-multiple-subviews/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2010/04/pangesture-with-multiple-subviews/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 09:38:52 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPad]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=310</guid>
		<description><![CDATA[The following code snippet is based on the iPhone documentation for handling the pan gesture, although theres still used the translate method which has been replaced. The method also caters for panning all of the views subviews so that everything moves. - (IBAction)handlePanGesture:(UIPanGestureRecognizer *)sender { static CGPoint prevTranslate; CGPoint translate = [sender translationInView:self.OfficeImage]; UIView *subView; [...]]]></description>
			<content:encoded><![CDATA[<p>The following code snippet is based on the iPhone documentation for handling the pan gesture, although theres still used the translate method which has been replaced. The method also caters for panning all of the views subviews so that everything moves.</p>
<p><code></p>
<pre class="brush:csharp">
- (IBAction)handlePanGesture:(UIPanGestureRecognizer *)sender {
	static CGPoint prevTranslate;

    CGPoint translate = [sender translationInView:self.OfficeImage];
		UIView *subView;
	for(subView in self.view.subviews)
	{

		CGRect newFrame = subView.frame;
		newFrame.origin.x += (translate.x - prevTranslate.x);
		newFrame.origin.y += (translate.y - prevTranslate.y);
		subView.frame = newFrame;
	}

	prevTranslate = translate;

    if (sender.state == UIGestureRecognizerStateEnded)
        prevTranslate = CGPointMake(0, 0);
}
</pre>
<p></code></p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2010/04/pangesture-with-multiple-subviews/&title=PanGesture+with+multiple+subviews&text=The+following+code+snippet+is+based+on+the+iPhone+documentation+for+handling+the+pan+gesture%2C+although+theres+still+used+the+translate+method+which+has+been+replaced.&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2010/04/pangesture-with-multiple-subviews/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NSLog &#8211; debugging tool</title>
		<link>http://www.flexicoder.com/blog/index.php/2010/03/nslog-debugging-tool/</link>
		<comments>http://www.flexicoder.com/blog/index.php/2010/03/nslog-debugging-tool/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 13:13:26 +0000</pubDate>
		<dc:creator>flexicoder</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[useful links]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.flexicoder.com/blog/?p=306</guid>
		<description><![CDATA[Came across this useful blog that shows you can override the description method of an object and when you display object using NSLog it will show the extra info you&#8217;ve included! Social Bookmarking]]></description>
			<content:encoded><![CDATA[<p>Came across this useful <a href="http://iPhoneDeveloperTips.com/cocoa/overriding-nsobject-description-method.html">blog</a> that shows you can override the description method of an object and when you display object using NSLog it will show the extra info you&#8217;ve included!</p>
<br/><a href="http://www.socialmarker.com/?link=http://www.flexicoder.com/blog/index.php/2010/03/nslog-debugging-tool/&title=NSLog+%26%238211%3B+debugging+tool&text=Came+across+this+useful+blog+that+shows+you+can+override+the+description+method+of+an+object+and+when+you+display+object+using+NSLog+it+will+show+the+extra+info+you%26%238217%3Bve+included%21&tags=" target="_blank"><img src= "http://www.socialmarker.com/bookmark.gif" border="0" /></a><noscript><a href="http://www.socialmarker.com" >Social Bookmarking</a></noscript>]]></content:encoded>
			<wfw:commentRss>http://www.flexicoder.com/blog/index.php/2010/03/nslog-debugging-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

