<?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>MacOSCoders &#187; IPhone</title>
	<atom:link href="http://www.macoscoders.com/tag/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.macoscoders.com</link>
	<description>My blog to talk on iPhone, Mac OS, Adobe Flex, AIR...</description>
	<lastBuildDate>Thu, 06 Oct 2011 11:09:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adobe abandons iPhone code tools</title>
		<link>http://www.macoscoders.com/2010/05/11/adobe-abandons-iphone-code-tools/</link>
		<comments>http://www.macoscoders.com/2010/05/11/adobe-abandons-iphone-code-tools/#comments</comments>
		<pubDate>Tue, 11 May 2010 09:34:06 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[iPhone SDK]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=412</guid>
		<description><![CDATA[Adobe has decided to stop developing software tools that allow  Apple&#8217;s iPhone and iPad to use its popular Flash technology.
The  decision reverses an earlier pledge in which it said it would help get  Flash working on the gadgets.
Closed tools
In mid-April,  Adobe released software  Creative Suite 5 that contained option to export [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Adobe has decided to stop developing software tools that allow  Apple&#8217;s iPhone and iPad to use its popular Flash technology.</strong></p>
<p>The  decision reverses an earlier pledge in which it said it would help get  Flash working on the gadgets.</p>
<p><!-- E SF --><strong>Closed tools</strong></p>
<p>In mid-April,  Adobe released software  Creative Suite 5 that contained option to export Flash applications into native iPhone applications. Shortly before the release, Apple updated the  terms and conditions of the license software developers must sign to  create iPhone and iPad applications. The revised terms placed  strict restrictions on what developers can use to create these  applications and effectively banned them from using 3rd party tools such as Creative Suite 5.</p>
<p>At the time Adobe wrote that it still  intended to deliver the feature. Now it has said it will halt  development of future export tools for Creative Suite.</p>
<p>&#8220;We  will still be shipping the ability to target the iPhone and iPad in  Flash CS5,&#8221; wrote Mike Chambers, Adobe&#8217;s principal product manager for  developer relations, on his blog. &#8220;However, we are not currently  planning any additional investments in that feature.&#8221; Mr Chambers  also commented on Apple&#8217;s revision of its terms and conditions. He  wrote: &#8220;&#8230;as developers for the iPhone have learned, if you want to  develop for the iPhone you have to be prepared for Apple to reject or  restrict your development at any time.&#8221;</p>
<p>Apple responded in a  statement to technology news site CNet in which it described Flash as  &#8220;closed and proprietary&#8221;. Apple preferred to support more open standards  which replicate everything Flash can do, added the statement.</p>
<p>Mr  Chambers wrote that now Adobe will concentrate on Google&#8217;s Android  smartphone software and ensure that its Flash technology works well with  that. &#8220;Fortunately,&#8221; he wrote, &#8220;the iPhone isn&#8217;t the only game  in town.&#8221;</p>
<div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2010/05/11/adobe-abandons-iphone-code-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Localizing Settings.bundle</title>
		<link>http://www.macoscoders.com/2010/04/12/localizing-settings-bundle/</link>
		<comments>http://www.macoscoders.com/2010/04/12/localizing-settings-bundle/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 09:21:50 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[IPhone]]></category>
		<category><![CDATA[iPhone Applications]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[internationalization]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[preference]]></category>
		<category><![CDATA[settings]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=403</guid>
		<description><![CDATA[For adding internationalization support to iPhone Settings.bundle, follow these steps:-
1. Close the Xcode IDE
2. Drag and duplicate the settings bundle onto the desktop (or wherever)
3. Open bundle contents by selecting &#8220;Show Package Contents&#8221; from the right click menu options
4. Drag Root.strings into the en.lproj folder
5. Duplicate the en.lproj folder and rename to whatever language you [...]]]></description>
			<content:encoded><![CDATA[<p>For adding internationalization support to iPhone Settings.bundle, follow these steps:-<br />
1. Close the Xcode IDE<br />
2. Drag and duplicate the settings bundle onto the desktop (or wherever)<br />
3. Open bundle contents by selecting &#8220;Show Package Contents&#8221; from the right click menu options<br />
4. Drag Root.strings into the en.lproj folder<br />
5. Duplicate the en.lproj folder and rename to whatever language you  want (using 2-letter code. Eg: fr.lproj for French)<br />
6. Replace the original settings bundle with the new one.<br />
7. Open Xcode IDE and the new files and folders should be there<br />
This methods works fine in the simulator  and on my iPhone device.</p>
<div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2010/04/12/localizing-settings-bundle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Features In iPhone OS 4.0</title>
		<link>http://www.macoscoders.com/2010/04/09/new-features-in-iphone-os-4-0/</link>
		<comments>http://www.macoscoders.com/2010/04/09/new-features-in-iphone-os-4-0/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 07:25:47 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPhone Applications]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[4.0]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[sdk]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=398</guid>
		<description><![CDATA[iPhone OS 4 is the next generation of the world&#8217;s most innovative mobile  operating system. Its unique capabilities and new technologies will  change what you thought was possible on a mobile platform. With a rich set of over 1500 new APIs, iPhone SDK for iPhone OS 4  provides you with an amazing [...]]]></description>
			<content:encoded><![CDATA[<p>iPhone OS 4 is the next generation of the world&#8217;s most innovative mobile  operating system. Its unique capabilities and new technologies will  change what you thought was possible on a mobile platform. With a rich set of over 1500 new APIs, iPhone SDK for iPhone OS 4  provides you with an amazing range of technologies to enhance the  functionality of your iPhone and iPod touch apps. iPhone Developer  Program members can visit the iPhone Dev Center to download the iPhone  SDK 4 beta now.</p>
<div>
<h3 id="multitasking">Multitasking</h3>
<p>iPhone OS 4 delivers seven new multitasking services that allow  your apps to perform tasks in the background while preserving battery  life and performance. These multitasking services include:</p>
<ul>
<li><strong>Background audio</strong> &#8211; Allows your app to play audio  continuously. So customers can listen to your app while they surf the  web, play games, and more.</li>
<li><strong>Voice over IP</strong> &#8211; Your VoIP apps can now be even better.  Users can now receive VoIP calls and have conversations while using  another app. Your users can even receive calls when their phones are  locked in their pocket.</li>
<li><strong>Background location</strong> &#8211; Navigation apps can now continue  to guide users who are listening to their iPods, or using other apps.  iPhone OS 4 also provides a new and battery efficient way to monitor  location when users move between cell towers. This is a great way for  your social networking apps to keep track of users and their friends&#8217;  locations.</li>
<li><strong>Push notifications</strong> &#8211; Receive alerts from your remote  servers even when your app isn&#8217;t running.</li>
<li><strong>Local notifications</strong> &#8211; Your app can now alert users of  scheduled events and alarms in the background, no servers required.</li>
<li><strong>Task finishing</strong> &#8211; If your app is in mid-task when your  customer leaves it, the app can now keep running to finish the task.</li>
<li><strong>Fast app switching</strong> &#8211; All developers should take  advantage of this. This will allow users to leave your app and come  right back to where they were when they left &#8211; no more having to reload  the app.</li>
</ul>
<p><span id="more-398"></span></div>
<div>
<div>
<div><img src="http://devimages.apple.com/technologies/iphone/images/80x80_icon2.png" alt="iAd" width="80" height="80" /></div>
<div>
<h3 id="iAd">iAd</h3>
<p>Apple&#8217;s new mobile advertising platform, combines the emotion  of TV ads with the interactivity of web ads. When users click on mobile  ads they are almost always taken out of their app to a web browser,  which loads the advertiser&#8217;s webpage. Users must then navigate back to  their app, and it is often difficult or impossible to return to exactly  where they left. iAd solves this problem by displaying full-screen video  and interactive ad content without ever leaving the app, and letting  users return to their app anytime they choose. iPhone OS 4 lets  developers easily embed iAd opportunities within their apps, and the ads  are dynamically and wirelessly delivered to the device. Apple will sell  and serve the ads, and developers will receive 60 percent of iAd  revenue.</p>
<div>
<h3 id="gamecenter">Game Center</h3>
<p>The iPhone OS 4 beta software and SDK includes a developer  preview of the GameKit APIs that allows you to create apps that will  work with Game Center, Apple&#8217;s new social gaming network. Your users can  invite friends to play a game, start a multiplayer game through  matchmaking, track their achievements, and compare their high scores on a  leader board. The APIs are available to you now and Game Center will be  available to iPhone and iPod touch users later this year.</p>
<div>
<h4>Calendar Access</h4>
<p>Apps can now create and edit events directly in the Calendar  app with Event Kit. Create recurring events, set up start and end times  and assign them to any calendar on the device.</p>
<div>
<h4>In-App SMS</h4>
<p>Compose SMS messages from within apps, similar to the Mail  compose sheet added in iPhone SDK 3.0.</p></div>
<div>
<h4>Photo Library Access</h4>
<p>Applications now have direct access to user photos and videos  with the Media Library APIs.</p></div>
<p><!-- /.column.first --></p>
<div>
<div>
<h4>Video playback &amp; Capture</h4>
<p>You now have full programmatic control over video playback and  capture, using new APIs in the AV Foundation framework.</p></div>
<div>
<h4>Map Kit Improvements</h4>
<p>Mapping applications can now include overlays that can  identify regions on a map. Draw routes with annotations for customized  directions and other functionalities.</p></div>
<div>
<h4>Quick Look</h4>
<p>Applications can now present previews of documents, like  attachments in Mail, using the new Quick Look APIs.</p>
<div>
<h4>Accelerate</h4>
<p>Gain access to a cookbook of hundreds of industry-standard  mathematical functions optimized for iPhone and iPod touch, including  functions for performing vector and matrix factorizations, multiplying  arrays of large integers and computing simultaneous linear equations.</p>
<h3 id="tools">ew in Tools</h3>
<p>With a wealth of new tools and refinements, you&#8217;ll find that  developing amazing iPhone and iPod touch apps is easier than ever  before.</p>
<div>
<h4>Automated testing</h4>
<p>Automate the testing of your application by scripting touch  events using the new UIAutomation Instrument.</p>
<h4>Performance and power analysis</h4>
<p>Collect finely-grained performance data and track the power  usage of your application using the new Time Profiler and Energy  Diagnostics Instruments for iPhone OS.</p>
<div>
<h3 id="compatibility">iPhone OS 4 Compatibility</h3>
<p>iPhone OS 4 will work with iPhone 3G, iPhone 3GS, and the  second- and third-generation iPod touch this summer, and with iPad in  the fall. Not all features are compatible with all devices. For example,  multitasking is available only with iPhone 3GS and the third-generation  iPod touch (32GB and 64GB models from late 2009).</p>
<h1>What we didn&#8217;t get from iPhone OS 4</h1>
<div>
<p>Have to look over  the common wish list items that appear to be lacking from the iPhone OS announcement.</p>
<ul>
<li><strong>Mass storage mode</strong>: We would&#8217;ve liked to see an easier way  to just drag and drop files from our computer to the iPhone without  having to go through a third-party app.</li>
<li><strong>Tethering with AT&amp;T</strong>: Yes, we know this is already  possible with the current OS, but AT&amp;T in the U.S. have not gotten  onboard with it yet (tethering is currently available in other countries  like Canada and the U.K.). We were hoping we would hear more about it  at the event, but no dice there.</li>
<li><strong>Audio profiles</strong>: It would have been nice if the iPhone had  different audio profiles for different environments that you could  easily switch between.</li>
<li><strong>Flash support in Safari</strong>: Yeah, this was a pie-in-the-sky  wish, but we know a lot of you out there wanted it.</li>
<li><strong>FM radio</strong>: Another one that was highly unlikely, but again, we  know there are some who want it.</li>
<li><strong>Wi-Fi syncing</strong>: We would&#8217;ve really liked it if we could sync  or back up our information on the iPhone over Wi-Fi instead of having to  plug in our USB cable.</li>
<li><strong>Built-in photo editing</strong>: We know you can get third-party photo  editors on the iPhone but it would be nice to have a built-in one as  well.</li>
<li><strong>Printer support</strong>: This is a little more relevant to the iPad,  but we also wished iPhone OS 4 would provide some printer driver  support, which would be very helpful for printing out documents and  notes.</li>
<li><strong>Multiple notification bar</strong>: On Android, there is a handy pull  down area where you can see all of your recent notifications, like for  your new messages or new voicemails. It would be nice to see that on the  iPhone as well.</li>
</ul>
<p>Was there anything  that you wanted out of iPhone OS 4.0 but didn&#8217;t get? Sound off in the  comments section below.</p>
<h2>Apple&#8217;s iPhone OS 4.0: Afterthoughts</h2>
<p>iPhone OS 4.0 license  makes third-party developers agree that they&#8217;ll  write apps  using Apple&#8217;s own programming tools, not ones provided by  other  companies &#8212; apparently including Adobe&#8217;s upcoming Packager  for iPhone, which converts Flash  applications into iPhone programs.  I, as an avid Mac OS X developer love this clause in the agreement.  I have seen lots of companies that were into developing website proclaiming themselves as iPhone developers and taking away the value out of the iPhone. In any  event, this remains a developing  story and I always know Steve Jobs won&#8217;t let Apple developer down.</p></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2009/05/17/iphone-apple-push-notification-service-apns/" rel="bookmark" class="wherego_title">iPhone Apple Push Notification Service (APNS)</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2010/04/09/new-features-in-iphone-os-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: &#8220;CGGStackRestore: gstack underflow&#8221;</title>
		<link>http://www.macoscoders.com/2009/11/02/error-cggstackrestore-gstack-underflow/</link>
		<comments>http://www.macoscoders.com/2009/11/02/error-cggstackrestore-gstack-underflow/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 07:55:24 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[XCode]]></category>
		<category><![CDATA[iPhone Applications]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[CGContextRestoreGState]]></category>
		<category><![CDATA[CGContextSaveGState]]></category>
		<category><![CDATA[CoreGraphics]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=383</guid>
		<description><![CDATA[Today while I was working with some CoreGraphics API&#8217;s, I encountered a error which I was seeing it for the first time. CG for dumping an error &#8220;CGGStackRestore: gstack underflow&#8221; in the console everytime I invoked a method that was doing some CG based operations. Googling around I found that in CoreGraphics, you can save [...]]]></description>
			<content:encoded><![CDATA[<p>Today while I was working with some CoreGraphics API&#8217;s, I encountered a error which I was seeing it for the first time. CG for dumping an error &#8220;CGGStackRestore: gstack underflow&#8221; in the console everytime I invoked a method that was doing some CG based operations. Googling around I found that in CoreGraphics, you can save (CGContextSaveGState) and restore (CGContextRestoreGState) the graphics state. When the  state is saved, a copy is put on the graphics state&#8217;s &#8220;stack&#8221;, and when  it is restored, the top state on the stack is removed and used. If we  restore the state more times than we save it and then when we try to remove  and use the top item of the stack, the stack is empty, causing a stack  &#8220;underflow&#8221; error. So just make sure you have enough save-restore state methods called and it will fix the issue.</p>
<div class="wp-caption aligncenter" style="width: 765px"><img title="CGGStackRestore" src="http://www.macoscoders.com/images/CGGStackRestore.jpg" alt="CGGStackRestore" width="755" height="59" /><p class="wp-caption-text">CGGStackRestore</p></div>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/11/02/error-cggstackrestore-gstack-underflow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coming Soon: Develop Native iPhone Application Using Actionscript</title>
		<link>http://www.macoscoders.com/2009/10/20/coming-soon-develop-native-iphone-application-using-actionscript/</link>
		<comments>http://www.macoscoders.com/2009/10/20/coming-soon-develop-native-iphone-application-using-actionscript/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 11:30:51 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[Rumours]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[iPhone Applications]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[iPhone Usage]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=370</guid>
		<description><![CDATA[With Flash Professional CS5, we can now build applications for iPhone and iPod touch using ActionScript 3. These applications can be delivered to iPhone and iPod touch users through the Apple App Store. A public beta of Flash Professional CS5 with prerelease support for building applications for iPhone is planned for later this year. At [...]]]></description>
			<content:encoded><![CDATA[<p>With Flash Professional CS5, we can now build applications for iPhone and iPod touch using ActionScript 3. These applications can be delivered to iPhone and iPod touch users through the Apple App Store. A public beta of Flash Professional CS5 with prerelease support for building applications for iPhone is planned for later this year. At MAX 2009, Adobe showed a number of applications and games for iPhone that have been built using a prerelease version of Flash Professional CS5. The tooling update allows developers to use Flash technologies to develop content for iPhone and iPod touch. Developers can write new code or reuse existing web content to build applications for iPhone. Because the source code and assets are reusable across the Flash Platform runtimes,—Adobe AIR and Flash Player—it also gives developers a way to more easily target other mobile and desktop environments.</p>
<p><span id="more-370"></span></p>
<div class="wp-caption alignnone" style="width: 567px"><img title="Flash CS5: Native iPhone Application Development" src="http://www.macoscoders.com/images/flashcs5.jpg" alt="Flash CS5: Native iPhone Application Development" width="557" height="130" /><p class="wp-caption-text">Flash CS5: Native iPhone Application Development</p></div>
<p>The new support for iPhone applications in the Flash Platform tooling will not allow iPhone users to browse web content built with Flash technology on iPhone, but it may allow developers to repackage existing web content as applications for iPhone if they choose to do so.Flash Player uses a just-in-time compiler and virtual machine within a browser plug-in to play back content on websites. Those technologies are not allowed on the iPhone at this time, so a Flash Player for iPhone is not being made available today. Flash Professional CS5 will enable developers to build applications for iPhone that are installed as native applications. Users will be able to access the apps after downloading them from Apple’s App Store and installing them on iPhone or iPod touch. Developers can deliver applications built with Flash Platform tooling just like any other iPhone application. This will require the developer to be a member of the iPhone Developer Program and follow the program guidelines. iPhone applications built with Flash Platform tools are compiled into standard, native iPhone executables, just like any other iPhone applicatio. Applications can be built targeting iPhone OS 3.0 and later.</p>
<p><strong>Update:</strong> Apple has bowled out Adobe&#8217;s effort to get iPhone application development on Flash platform with introduction of new clause in its iPhone SDK 4.0 license agreement which makes developing iPhone application using tools other than from Apple as illegal. Check more details about whats new in iPhone SDK 4.0 and its implications at <a title="New Features: iPhone SDK 4.0 " href="http://www.macoscoders.com/2010/04/09/new-features-in-iphone-os-4-0/" target="_self">http://www.macoscoders.com/2010/04/09/new-features-in-iphone-os-4-0/</a></p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2010/04/09/new-features-in-iphone-os-4-0/" rel="bookmark" class="wherego_title">New Features In iPhone OS 4.0</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/10/20/coming-soon-develop-native-iphone-application-using-actionscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XCode Error: &#8220;Loading Stack Frames&#8221;</title>
		<link>http://www.macoscoders.com/2009/10/09/xcode-error-loading-stack-frames/</link>
		<comments>http://www.macoscoders.com/2009/10/09/xcode-error-loading-stack-frames/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 07:08:16 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[frames.]]></category>
		<category><![CDATA[gdb]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[stack]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=349</guid>
		<description><![CDATA[Recently I encountered an new error for the first time in XCode. When my iPhone application under development crashed, instead of showing me the stack trace of where the application crashed, it threw an error &#8220;Loading Stack Frames&#8221; and was struck there indefinitely.  After researching about this for a while, I came to know my [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 307px"><img class=" " title="Xcode: Loading Stack Frames" src="http://www.macoscoders.com/images/LoadingStack.jpg" alt="Xcode: Loading Stack Frames" width="297" height="139" /><p class="wp-caption-text">Xcode: Loading Stack Frames</p></div>
<p>Recently I encountered an new error for the first time in XCode. When my iPhone application under development crashed, instead of showing me the stack trace of where the application crashed, it threw an error &#8220;Loading Stack Frames&#8221; and was struck there indefinitely.  After researching about this for a while, I came to know my application crashed because of a stack overflow due to a non-terminating recursion in your code, and gdb is now trying to load all the stack frames on the stack . Usually, the stack of a application doesn&#8217;t get deeper than 50 frames or so (and that&#8217;s already a quite deeply nested stack). My application stack had run into 104708 frames which was quite too high.I finally figured out that the crash was due to an race condition.</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2011/10/06/rip-steve-jobs/" rel="bookmark" class="wherego_title">RIP Steve Jobs</a></li><li><a href="http://www.macoscoders.com/2009/05/17/iphone-apple-push-notification-service-apns/" rel="bookmark" class="wherego_title">iPhone Apple Push Notification Service (APNS)</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/10/09/xcode-error-loading-stack-frames/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple releases iPhone OS SDK 3.1.2</title>
		<link>http://www.macoscoders.com/2009/10/09/apple-releases-iphone-os-sdk-312/</link>
		<comments>http://www.macoscoders.com/2009/10/09/apple-releases-iphone-os-sdk-312/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 03:19:07 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[dashcode]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[iPod]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=347</guid>
		<description><![CDATA[Apple on Thursday released an update for the iPhone SDK, bringing the current version of the SDK to 3.1.2.
The new SDK 3.1.2, which now includes Xcode 3.2.1, is available in versions that are compatible with Leopard and Snow Leopard for iPhone and iPod Touch developers.
The update contains general bug fixes for the SDK and Xcode. [...]]]></description>
			<content:encoded><![CDATA[<p>Apple on Thursday released an update for the iPhone SDK, bringing the current version of the SDK to 3.1.2.</p>
<p>The new SDK 3.1.2, which now includes Xcode 3.2.1, is available in versions that are compatible with Leopard and Snow Leopard for iPhone and iPod Touch developers.</p>
<p>The update contains general bug fixes for the SDK and Xcode. Dashcode is reported to now support the creation of Web applications that are optimized for Safari on the iPhone, PC, and Mac.</p>
<p>If you&#8217;ve used this new update, please tell us about your experiences with it in the comments.</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2009/06/08/error-the-executable-was-signed-with-invalid-entitlements/" rel="bookmark" class="wherego_title">Error: The executable was signed with invalid entitlements</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/10/09/apple-releases-iphone-os-sdk-312/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Titanium User Group Kick Off Meeting</title>
		<link>http://www.macoscoders.com/2009/09/08/titanium-user-group-kick-off-meeting/</link>
		<comments>http://www.macoscoders.com/2009/09/08/titanium-user-group-kick-off-meeting/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 18:58:01 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[IPhone]]></category>
		<category><![CDATA[Esberi]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[Titanium]]></category>
		<category><![CDATA[TUG]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=334</guid>
		<description><![CDATA[The first Titanium User Group meeting took place in Bangalore on 4th September 2009. The event was organized by Mohammad Khan (The guy in the blue T-Shirt in the snap)and others Of Esberi. The event started at 6:00PM and close to 15 people attended the event. It all began with an introduction to Titanium SDK [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 310px"><img title="Titanium Developer Meet, Bangalore" src="http://www.macoscoders.com/images/TUG_Meet_Bangalore.jpg" alt="Titanium Developer Meet, Bangalore" width="300" height="225" /><p class="wp-caption-text">Titanium Developer Meet, Bangalore</p></div>
<p>The first Titanium User Group meeting took place in Bangalore on 4th September 2009. The event was organized by Mohammad Khan (The guy in the blue T-Shirt in the snap)and others Of Esberi. The event started at 6:00PM and close to 15 people attended the event. It all began with an introduction to Titanium SDK and how to use the Titanium Developer tool to create applications for both iPhone and Android mobile platform. Since I already had played around using Titanium Developer tool, most of the stuff I heard there about using the tool was already known.</p>
<p>The meet was useful in that I got to learn what are the features and API&#8217;s provided by Titanium SDK to write applications for mobile. Some of the code samples shown at the meet were encouraging and I would say the code would be familiar to a person who had already worked on say Adobe Flex. Even for beginners, it&#8217;s not so tough to learn it.</p>
<p><span id="more-334"></span></p>
<p>There was an application demo by Chinmay, college graduate who had built an application using Titanium Developer tool for both iPhone and Android mobile. The application was basically interacting with a social networking website called brightkite (http://brightkite.com/) The application looked pretty good both in terms of its UI design and functionality. It showcased how users can use the GPS data from iPhone and Android mobiles to interact with BrightKite social networking website. Chinmay also explained us the problems that he faced developing his application and how he over came it to win an honour from Appcelerator. Congrats Chinmay for the award..!</p>
<p>Over all it was a great learning experience and got to meet lots of new people especially Mohammad Khan. Wish to see more of the user group meeting in the coming days.</p>
<p>&#8220;Code Strong&#8221; with Titanium Developer tool <img src='http://www.macoscoders.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<h2><strong>About Titanium Mobile</strong></h2>
<p><strong>You Can Build a Native App for That</strong></p>
<p>With Titanium, you get native access to device features like geo-location, local file system / database, photos, and touch / accelerometer controls. Your apps look great because they use native UI elements, styling, transitions, and they run great because we compile Titanium to native code for peak performance.</p>
<p><strong>At Web Dev Speed</strong></p>
<p>Your friends may talk about ‘provisioning this’ and ‘memory allocation that’ but meanwhile you’ve got 5 apps in the store to their 1. That’s because you’re building in Javascript, HTML, and CSS, so you’re running circles around the competition.</p>
<p><strong>Delivered Across Two Platforms</strong></p>
<p>The last thing you want worry about is cross-platform compatibility. That’s why we give you one platform for developing both iPhone and Android apps. The Titanium framework shares common APIs across devices and provides extensibility for each device’s unique capabilities.</p>
<p><strong>More details at:   http://www.appcelerator.com/products/titanium-mobile/<br />
</strong></p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2009/06/08/error-the-executable-was-signed-with-invalid-entitlements/" rel="bookmark" class="wherego_title">Error: The executable was signed with invalid entitlements</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/09/08/titanium-user-group-kick-off-meeting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Practices For Creating Video For iPhone</title>
		<link>http://www.macoscoders.com/2009/08/26/best-practices-for-creating-video-for-iphone/</link>
		<comments>http://www.macoscoders.com/2009/08/26/best-practices-for-creating-video-for-iphone/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 07:42:09 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[iPhone Applications]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[3G]]></category>
		<category><![CDATA[AAC]]></category>
		<category><![CDATA[edge]]></category>
		<category><![CDATA[h.264]]></category>
		<category><![CDATA[MPEG]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=321</guid>
		<description><![CDATA[Safari supports audio and video viewing in a webpage on the desktop and iPhone OS. You can use audio and video HTML elements or use the embed element to use the native application for video playback. In either case, you need to ensure that the video you create is optimized for the platform and different [...]]]></description>
			<content:encoded><![CDATA[<p>Safari supports audio and video viewing in a webpage on the desktop and iPhone OS. You can use <code>audio</code> and <code>video</code> HTML elements or use the <code>embed</code> element to use the native application for video playback. In either case, you need to ensure that the video you create is optimized for the platform and different bandwidths.</p>
<p>iPhone OS streams movies and audio using HTTP over EDGE, 3G, and Wi-Fi networks. iPhone OS uses a native application to play back video even when video is embedded in your webpages. Video automatically expands to the size of the screen and rotates when the user changes orientation. The controls automatically hide when they are not in use and appear when the user taps the screen. This is the experience the user expects when viewing all video on iPhone OS.</p>
<p><span id="more-321"></span></p>
<p>Safari on iPhone OS supports a variety of rich media, including QuickTime movies<span class="content_text">.</span> Safari on iPhone OS does not support Flash so don’t bring up JavaScript alerts that ask users to download Flash. Also, don’t use JavaScript movie controls to play back video since iPhone OS supplies its own controls.</p>
<p>Safari on the desktop supports the same audio and video formats as Safari on iPhone OS. However, if you use the <code>audio</code> and <code>video</code> HTML elements on the desktop, you can customize the play back controls. See <em><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariJSRef/index.html#//apple_ref/doc/uid/TP40001482" target="_top">Safari DOM Extensions Reference</a></em> for more details on the <code>HTMLMediaElement</code> class.</p>
<p>Follow these guidelines to deliver the best web audio and video experience in Safari on any platform:</p>
<ul class="ul">
<li class="li">Follow current best practices for embedding movies in webpages as described in <span class="content_text"><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW7">“Sizing Movies Appropriately,”</a></span> <span class="content_text"><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW8">“Don’t Let the Bit Rate Stall Your Movie,”</a></span> and <span class="content_text"><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW9">“Using Supported Movie Standards.”</a></span></li>
<li class="li">Use QuickTime Pro to encode H.264/AAC at appropriate sizes and bit rates for EDGE, 3G, and Wi-Fi networks, as described in <span class="content_text"><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW4">“Encoding Video for Wi-Fi, 3G, and EDGE.”</a></span></li>
<li class="li">Use reference movies so that iPhone OS automatically streams the best version of your content for the current network connection, as described in <span class="content_text"><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW5">“Creating a Reference Movie.”</a></span></li>
<li class="li">Use poster JPEGs (not poster frames in a movie) to display a preview of your embedded movie in webpages, as described in <span class="content_text"><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW10">“Creating a Poster Image for Movies.”</a></span></li>
<li class="li">Make sure the HTTP servers hosting your media files support byte-range requests, as described in <span class="content_text"><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW6">“Configuring Your Server.”</a></span></li>
<li class="li">If your site has a custom media player, also provide direct links to the media files. iPhone OS users can follow these links to play those files directly.</li>
</ul>
<p><a title="Sizing Movies Appropriately" name="//apple_ref/doc/uid/TP40006514-SW7"></a></p>
<h2 class="jump section2">Sizing Movies Appropriately</h2>
<p>In landscape orientation on iPhone OS, the screen is 480 x 320 pixels. Users can easily switch the view mode between scaled-to-fit (letterboxed) and full-screen (centered and cropped). You should use a size that preserves the aspect ratio of your content and fits within a 480 x 360 rectangle. 480 x 360 is a good choice for 4:3 aspect ratio content and 480 x 270 is a good choice for widescreen content as it keeps the video sharp in full-screen view mode. You can also use 640 x 360 or anamorphic 640 x 480 with pixel aspect ratio tagging for widescreen content.</p>
<p><a title="Donâ€™t Let the Bit Rate Stall Your Movie" name="//apple_ref/doc/uid/TP40006514-SW8"></a></p>
<h2 class="jump section2">Don’t Let the Bit Rate Stall Your Movie</h2>
<p>When viewing media over the network, the bit rate makes a crucial difference to the playback experience. If the network cannot keep up with the media bit rate, playback stalls. Encode your media for iPhone OS as described in <span class="content_text"><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW4">“Encoding Video for Wi-Fi, 3G, and EDGE”</a></span> and use a reference movie as described in <span class="content_text"><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW5">“Creating a Reference Movie.”</a></span></p>
<p><a title="Using Supported Movie Standards" name="//apple_ref/doc/uid/TP40006514-SW9"></a></p>
<h2 class="jump section2">Using Supported Movie Standards</h2>
<p>The following compression standards are supported:</p>
<ul class="ul">
<li class="li">H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. Note that B frames are not supported in the Baseline profile.</li>
<li class="li">MPEG-4 Part 2 video (Simple Profile)</li>
<li class="li">AAC-LC audio, up to 48 kHz</li>
</ul>
<p>Movie files with the extensions <code>.mov</code>, <code>.mp4</code>, <code>.m4v</code>, and <code>.3gp</code> are supported.</p>
<p>Any movies or audio files that can play on iPod play correctly on iPhone.</p>
<p>If you export your movies using QuickTime Pro 7.2, as described in <span class="content_text"><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW4">“Encoding Video for Wi-Fi, 3G, and EDGE,”</a></span> then you can be sure that they are optimized to play on iPhone OS.</p>
<p><a title="Encoding Video for Wi-Fi, 3G, and EDGE" name="//apple_ref/doc/uid/TP40006514-SW4"></a></p>
<h2 class="jump section2">Encoding Video for Wi-Fi, 3G, and EDGE</h2>
<p>Because users may be connected to the Internet via wired or wireless technology, using either Wi-Fi, 3G, or EDGE on iPhone OS, you need to provide alternate media for these different connection speeds. You can use QuickTime Pro, the QuickTime API, or any Apple applications that provide iPhone OS exporters to encode your video for Wi-Fi, 3G, and EDGE. This section contains specific instructions for exporting video using QuickTime Pro.</p>
<p>Follow these steps to export video using QuickTime Pro 7.2.1 and later:</p>
<ol class="ol">
<li class="li">Open your movie using QuickTime Player Pro.</li>
<li class="li">Choose File &gt; Export for Web.A dialog appears.</li>
<li class="li">Enter the file name prefix, location of your export, and set of versions to export as shown in <span class="content_text">Figure 8-1</span>.
<div class="item_figure"><a title="Figure 8-1Export movie panel" name="//apple_ref/doc/uid/TP40006514-SW14"></a><strong>Figure 8-1 </strong>Export movie panel</p>
<p><img class="alignleft" src="http://www.macoscoders.com/images/export_iphone_dialog.jpg" alt="Export movie panel" width="289" height="284" /></div>
</li>
<li class="li">Click Export.QuickTime Player Pro saves these versions of your QuickTime movie, along with a reference movie, poster image, and <code>ReadMe.html</code> file to the specified location. See the <code>ReadMe.html</code> file for instructions on embedding the generated movie in your webpage, including sample HTML.</li>
</ol>
<p><a title="Creating a Reference Movie" name="//apple_ref/doc/uid/TP40006514-SW5"></a></p>
<h2 class="jump section2">Creating a Reference Movie</h2>
<p>A reference movie contains a list of movie URLs, each of which has a list of tests, as show in <span class="content_text">Figure 8-2</span>. When opening the reference movie, a playback device or computer chooses one of the movie URLs by finding the last one that passes all its tests. Tests can check the capabilities of the device or computer and the speed of the network connection.</p>
<div class="figure"><a title="Figure 8-2Reference movie components" name="//apple_ref/doc/uid/TP40006514-SW3"></a><strong>Figure 8-2 </strong>Reference movie components</p>
<p><img src="http://www.macoscoders.com/images/qt_ref_movie_options.jpg" alt="Reference movie components" width="286" height="142" /></div>
<p>If you use QuickTime Pro 7.2.1 or later to export your movies for iPhone OS, as described in <span class="content_text"><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW4">“Encoding Video for Wi-Fi, 3G, and EDGE,”</a></span> then you already have a reference movie. Otherwise, you can use the MakeRefMovie tool to create reference movies. You can download the tool from:</p>
<ul class="simple">
<li><span class="content_text"><a class="browserLink" href="http://developer.apple.com/quicktime/quicktimeintro/tools">http://developer.apple.com/quicktime/quicktimeintro/tools</a></span></li>
</ul>
<p>Also, refer to the <em><a href="http://developer.apple.com/safari/library/samplecode/makeiPhoneRefMovie/index.html#//apple_ref/doc/uid/DTS10004417" target="_top">MakeiPhoneRefMovie</a></em> sample for a command-line tool that creates reference movies.</p>
<p>For more details on reference movies and instructions on how to set them up see “Applications and Examples” in <em><a href="http://developer.apple.com/safari/library/documentation/QuickTime/Conceptual/QTScripting_HTML/index.html#//apple_ref/doc/uid/TP40001525" target="_top">HTML Scripting Guide for QuickTime</a></em>.</p>
<p><a title="Creating a Poster Image for Movies" name="//apple_ref/doc/uid/TP40006514-SW10"></a></p>
<h2 class="jump section2">Creating a Poster Image for Movies</h2>
<p>The video is not decoded until the user enters movie playback mode. Consequently, when displaying a webpage with video, users may see a gray rectangle with a QuickTime logo until they tap the Play button. Therefore, use a poster JPEG as a preview of your movie. If you use QuickTime Pro 7.2.1 or later to export your movies, as described in <span class="content_text"><a href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW4">“Encoding Video for Wi-Fi, 3G, and EDGE,”</a></span> then a poster image is already created for you. Otherwise, follow these instructions to set a poster image.</p>
<p>If you are using the <code>&lt;video&gt;</code> element, specify a poster image by setting the <code>poster</code> attribute as follows:</p>
<div class="codesample clear">
<table border="0">
<tbody>
<tr>
<td scope="row">
<pre>&lt;video poster="poster.jpg" src="movie.m4v" ...&gt; &lt;/video&gt;</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>If you are using an <code>&lt;embed&gt;</code> HTML element, specify a poster image by setting the image for <code>src</code>, the movie for <code>href</code>, the media MIME type for <code>type</code>, and <code>myself</code> as the <code>target</code>:</p>
<div class="codesample clear">
<table border="0">
<tbody>
<tr>
<td scope="row">
<pre>&lt;embed src="poster.jpg" href="movie.m4v" type="video/x-m4v" target="myself" scale="1" ...&gt;</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>Make similar changes if you are using the <code>&lt;object&gt;</code> HTML element or JavaScript to embed movies in your webpage.</p>
<p>On the desktop, this image is displayed until the user clicks, at which time the movie is substituted.</p>
<p>For more information on including QuickTime Movies in webpages, see the tutorial <span class="content_text"><a class="urlLink" href="http://www.apple.com/quicktime/tutorials/embed.html" target="_blank">Including QuickTime In A Web Page</a></span>.</p>
<p><a title="Configuring Your Server" name="//apple_ref/doc/uid/TP40006514-SW6"></a></p>
<h2 class="jump section2">Configuring Your Server</h2>
<p>HTTP servers hosting media files for iPhone OS must support byte-range requests, which iPhone OS uses to perform random access in media playback. (Byte-range support is also known as content-range or partial-range support.) Most, but not all, HTTP 1.1 servers already support byte-range requests.</p>
<p>If you are not sure whether your media server supports byte-range requests, you can open the Terminal application in Mac OS X and use the <code>curl</code> command-line tool to download a short segment from a file on the server:</p>
<div class="codesample clear">
<table border="0">
<tbody>
<tr>
<td scope="row">
<pre>curl --range 0-99 http://example.com/test.mov -o /dev/null</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>If the tool reports that it downloaded 100 bytes, the media server correctly handled the byte-range request. If it downloads the entire file, you may need to update the media server. For more information on <code>curl</code>, see <em><!--a target="_top" -->Mac OS X Man Pages<!--/a--></em>.</p>
<p>Ensure that your HTTP server sends the correct MIME types for the movie filename extensions shown in <span class="content_text">Table 8-1</span>.</p>
<p><a title="Table 8-1File name extensions for MIME types" name="//apple_ref/doc/uid/TP40006514-SW2"></a></p>
<div class="tableholder">
<table class="graybox" border="0" cellspacing="0" cellpadding="5">
<caption class="tablecaption"><strong>Table 8-1 </strong>File name extensions for MIME types</caption>
<tbody>
<tr>
<th style="font-weight: bold;" align="left" scope="col">Extensions</th>
<th style="font-weight: bold;" align="left" scope="col">MIME type</th>
</tr>
<tr>
<td scope="row"><code>.mov</code></td>
<td>video/quicktime</td>
</tr>
<tr>
<td scope="row"><code>.mp4</code></td>
<td>video/mp4</td>
</tr>
<tr>
<td scope="row"><code>.m4v</code></td>
<td>video/x-m4v</td>
</tr>
<tr>
<td scope="row"><code>.3gp</code></td>
<td>video/3gpp</td>
</tr>
</tbody>
</table>
</div>
<p>Be aware that iPhone OS supports movies larger than 2 GB. However, some older web servers are not able to serve files this large. Apache 2 supports downloading files larger than 2 GB.</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2009/05/17/iphone-apple-push-notification-service-apns/" rel="bookmark" class="wherego_title">iPhone Apple Push Notification Service (APNS)</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/08/26/best-practices-for-creating-video-for-iphone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhone OS 3.0 Bug Leads to Disappearing Photos</title>
		<link>http://www.macoscoders.com/2009/08/21/iphone-os-30-bug-leads-to-disappearing-photos/</link>
		<comments>http://www.macoscoders.com/2009/08/21/iphone-os-30-bug-leads-to-disappearing-photos/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 09:27:12 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[.MISC]]></category>
		<category><![CDATA[camera roll]]></category>
		<category><![CDATA[missing images]]></category>
		<category><![CDATA[PhoneView]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=312</guid>
		<description><![CDATA[After moving to iPhone OS 3.0, from past few days i have been experiencing a strange bug. The camera photos, images saved from the web, or iPhone screenshots are not showing up in the Camera Roll. The iPhone&#8217;s Camera Roll keeps a correct cumulative count, and I have no problem transferring the images files to [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 526px"><img class=" " title="MISC Directory" src="http://www.macoscoders.com/images/Misc_dir.jpg" alt="MISC Directory" width="516" height="161" /><p class="wp-caption-text">MISC Directory</p></div>
<p>After moving to iPhone OS 3.0, from past few days i have been experiencing a strange bug. The camera photos, images saved from the web, or iPhone screenshots are not showing up in the Camera Roll. The iPhone&#8217;s Camera Roll keeps a correct cumulative count, and I have no problem transferring the images files to my MacBook  using iPhoto or Picasa.<span id="more-312"></span></p>
<p><span class="fullnode"> According to iLounge, the bug appears to pertain only to photos with the name IMG_10000 or higher.</span> As a result, iPhone OS 3.0&#8217;s built-in Photos application refuses to acknowledge the presence of these images or show them in the Camera Roll. The pictures are indeed still on the device but only that its not shown in the iPhone Camera Roll.</p>
<p>To fix this issue, download &#8216;PhoneView&#8217; software from</p>
<p>http://ecamm.com/mac/phoneview/</p>
<p>Launch the PhoneView application while your iPhone is connected, goto DISK-&gt;DCIM directory. There you will see a folder called &#8216;.MISC&#8217;. Delete that directory and then restart your iPhone. This should fix the issue. Let me know if it worked for you.</p>
<div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/08/21/iphone-os-30-bug-leads-to-disappearing-photos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone 3GS Battery Percentage Meter</title>
		<link>http://www.macoscoders.com/2009/07/28/iphone-3gs-battery-percentage-meter/</link>
		<comments>http://www.macoscoders.com/2009/07/28/iphone-3gs-battery-percentage-meter/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 17:42:26 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[battery level]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=305</guid>
		<description><![CDATA[iPhone 3GS now supports showing the battery charge level as a percentage rather than just the icon indicator.  Percentage indicator is really helpful. Most of the times I plug the charger to my macbook when it starts showing the battery level at less than 3%. And with iPhone I usually end up plugging the charger [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 276px"><img title="iPhone 3GS Battery Meter" src="http://www.macoscoders.com/images/iphone_3g_s_battery_meter.jpg" alt="iPhone 3GS Battery Meter" width="266" height="400" /><p class="wp-caption-text">iPhone 3GS Battery Meter</p></div>
<p>iPhone 3GS now supports showing the battery charge level as a percentage rather than just the icon indicator.  Percentage indicator is really helpful. Most of the times I plug the charger to my macbook when it starts showing the battery level at less than 3%. And with iPhone I usually end up plugging the charger only when it shuts down completely running out of battery.  The 10% battery remaining warning is too early.</p>
<p>Unfortunately Apple has put this new option only in new iPhone 3GS. Its not available for iPhone 3G or the 1st gen iPhone. Apple is so cruel.</p>
<p>I wonder what big pain would it cause to Apple to include that feature in all iPhone models. Apple acts crazy.</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/07/28/iphone-3gs-battery-percentage-meter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XCode: Could Not Support Development</title>
		<link>http://www.macoscoders.com/2009/06/20/xcode-could-not-support-development/</link>
		<comments>http://www.macoscoders.com/2009/06/20/xcode-could-not-support-development/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 18:33:56 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[iPhone Applications]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[Organizer]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=279</guid>
		<description><![CDATA[Today  when I started my work on an iPhone project, my XCode failed to mount my iPhone. The XCode organizer was showing an orange dot next to it instead of the usual green one. Organizer complained &#8220;Could Not Support Development&#8221;. I tried restarting my XCode, launched iTunes but in vain. iTunes was able to mount [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 335px"><img title="XCode: Could Not Support Development" src="http://www.macoscoders.com/images/Could_Not_Support_Development.jpg" alt="XCode: Could Not Support Development" width="325" height="125" /><p class="wp-caption-text">XCode: Could Not Support Development</p></div>
<p>Today  when I started my work on an iPhone project, my XCode failed to mount my iPhone. The XCode organizer was showing an orange dot next to it instead of the usual green one. Organizer complained &#8220;Could Not Support Development&#8221;. I tried restarting my XCode, launched iTunes but in vain. iTunes was able to mount my iPhone but XCode simply failed and I was not able to test my app&#8217;s on my phone. <span id="more-279"></span>Finally I restarted my iPhone and tried again. Bingooo..! it started working again. My iPhone was running the latest iPhone OS 3.0 GM developers build. See left for the screenshot of the error message that I got.</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2011/10/06/rip-steve-jobs/" rel="bookmark" class="wherego_title">RIP Steve Jobs</a></li><li><a href="http://www.macoscoders.com/2010/10/13/supporting-both-retina-display-and-normal-display/" rel="bookmark" class="wherego_title">Supporting both Retina Display and Normal Display</a></li><li><a href="http://www.macoscoders.com/2009/06/08/error-the-executable-was-signed-with-invalid-entitlements/" rel="bookmark" class="wherego_title">Error: The executable was signed with invalid entitlements</a></li><li><a href="http://www.macoscoders.com/2009/05/13/app-icons-messed-up-with-iphone-os-30-beta-5/" rel="bookmark" class="wherego_title">App Icons Messed Up With iPhone OS 3.0 Beta 5</a></li><li><a href="http://www.macoscoders.com/2009/06/11/add-background-image-to-uiview/" rel="bookmark" class="wherego_title">Add Background Image To UIView</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/06/20/xcode-could-not-support-development/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Error Starting Executable</title>
		<link>http://www.macoscoders.com/2009/06/18/error-starting-executable/</link>
		<comments>http://www.macoscoders.com/2009/06/18/error-starting-executable/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 08:06:40 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[IPhone]]></category>
		<category><![CDATA[iPhone Applications]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[Organizer]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=275</guid>
		<description><![CDATA[Quite a few times in our iPhone application development cycle we would encounter XCode error &#8220;Error Starting Executable &#8211; No provisioned iPhone OS device is connected.&#8221; even when we know the device is connected to the machine.   This error occurs when the connected device is not configured in the XCode-&#62;Organizer. Organizer would fail to [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 263px"><img title="Error Starting Executable" src="http://www.macoscoders.com/images/Error_Starting_Executable.jpg" alt="Error Starting Executable" width="253" height="80" /><p class="wp-caption-text">Error Starting Executable</p></div>
<p>Quite a few times in our iPhone application development cycle we would encounter XCode error &#8220;Error Starting Executable &#8211; No provisioned iPhone OS device is connected.&#8221; even when we know the device is connected to the machine.   This error occurs when the connected device is not configured in the XCode-&gt;Organizer. Organizer would fail to mount the device as the version of XCode installed on the developer machine may not support the version of iPhone OS installed on the device.</p>
<p><span id="more-275"></span>If you select the device in the Organizer, then XCode would list you the supported iPhone OS versions as well as the OS Version of the device. (An organe dot aganist the device in Organizer indicates it has not been mounted properly.)</p>
<div class="wp-caption alignleft" style="width: 323px"><img title="iPod_Unmounted_In_Organizer" src="http://www.macoscoders.com/images/iPod_Unmounted_In_Organizer.jpg" alt="iPod_Unmounted_In_Organizer" width="313" height="49" /><p class="wp-caption-text">iPod_Unmounted_In_Organizer</p></div>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2010/08/12/in-app-sms-in-iphone-os-4-0/" rel="bookmark" class="wherego_title">In-App SMS in iPhone OS 4.0</a></li><li><a href="http://www.macoscoders.com/2009/05/17/iphone-apple-push-notification-service-apns/" rel="bookmark" class="wherego_title">iPhone Apple Push Notification Service (APNS)</a></li><li><a href="http://www.macoscoders.com/2009/06/08/error-the-executable-was-signed-with-invalid-entitlements/" rel="bookmark" class="wherego_title">Error: The executable was signed with invalid entitlements</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/06/18/error-starting-executable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhone Online Mockup Creator</title>
		<link>http://www.macoscoders.com/2009/06/11/iphone-online-mockup-creator/</link>
		<comments>http://www.macoscoders.com/2009/06/11/iphone-online-mockup-creator/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 11:59:36 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Online Mockup]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=259</guid>
		<description><![CDATA[I found this web based iPhone  mockup creator.
Nice tool. Supports sharing the design creation with multiple users and collabrate on the mockup&#8230;.
Readers who viewed this page, also viewed:Supporting both Retina Display and Normal DisplayPowered by Where did they go from here?]]></description>
			<content:encoded><![CDATA[<p>I found this web based i<a title="iPhone MockUp" href="http://iphonemockup.lkmc.ch/" target="_blank">Phone  mockup creator.</a><br />
Nice tool. Supports sharing the design creation with multiple users and collabrate on the mockup&#8230;.</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2010/10/13/supporting-both-retina-display-and-normal-display/" rel="bookmark" class="wherego_title">Supporting both Retina Display and Normal Display</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/06/11/iphone-online-mockup-creator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My First Post Using Wordpress For iPhone</title>
		<link>http://www.macoscoders.com/2009/06/08/my-first-post-using-wordpress-for-iphone/</link>
		<comments>http://www.macoscoders.com/2009/06/08/my-first-post-using-wordpress-for-iphone/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 17:40:24 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[iPhone Applications]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/2009/06/08/my-first-post-using-wordpress-for-iphone/</guid>
		<description><![CDATA[This is my first post using iPhone 3.0 Wordpress application. This is awesome cool in that now I can blog when I am travelling. I will write more about this app as I begin to use more of it.
the first feedback would be I am missing all the formatting options that I take for granted [...]]]></description>
			<content:encoded><![CDATA[<p>This is my first post using iPhone 3.0 Wordpress application. This is awesome cool in that now I can blog when I am travelling. I will write more about this app as I begin to use more of it.</p>
<p>the first feedback would be I am missing all the formatting options that I take for granted on desktop version of wordpress. </p>
<div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/06/08/my-first-post-using-wordpress-for-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone SDK: How To Set Max Character length in UITextField</title>
		<link>http://www.macoscoders.com/2009/05/14/iphone-sdk-how-to-set-max-character-length-in-uitextfield/</link>
		<comments>http://www.macoscoders.com/2009/05/14/iphone-sdk-how-to-set-max-character-length-in-uitextfield/#comments</comments>
		<pubDate>Thu, 14 May 2009 11:55:44 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[iPhone Applications]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[NSRange]]></category>
		<category><![CDATA[replacementString]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[shouldChangeCharactersInRange]]></category>
		<category><![CDATA[UITextField]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=181</guid>
		<description><![CDATA[We can use the UITextField&#8217;s delegate method
- (BOOL)textField: (UITextField *)textField shouldChangeCharactersInRange: (NSRange)range replacementString: (NSString *)string

to set the maximum character length.
This can be done by doing the following:
#define MAX_LENGTH 10

- (BOOL)textField: (UITextField *)textField shouldChangeCharactersInRange: (NSRange)range replacementString: (NSString *)string
{
    if (textField.text.length &#62;= MAX_LENGTH &#38;&#38; range.length == 0)
    {
        return NO; 
    [...]]]></description>
			<content:encoded><![CDATA[<p>We can use the UITextField&#8217;s delegate method</p>
<pre class="prettyprint" style="padding-left: 30px;"><code><span class="pun">-</span><span class="pln"> </span><span class="pun">(</span><span class="pln">BOOL</span><span class="pun">)</span><span class="pln">textField</span><span class="pun">: (</span><span class="typ">UITextField</span><span class="pln"> </span><span class="pun">*)</span><span class="pln">textField shouldChangeCharactersInRange</span><span class="pun">: (</span><span class="typ">NSRange</span><span class="pun">)</span><span class="pln">range replacementString</span><span class="pun">: (</span><span class="typ">NSString</span><span class="pln"> </span><span class="pun">*)</span><span class="kwd">string
</span></code></pre>
<p>to set the maximum character length.</p>
<p>This can be done by doing the following:</p>
<pre class="prettyprint" style="padding-left: 30px;"><code><span class="com">#define MAX_LENGTH 10</span><span class="pln">

</span><span class="pun">-</span><span class="pln"> </span><span class="pun">(</span><span class="pln">BOOL</span><span class="pun">)</span><span class="pln">textField</span><span class="pun">: (</span><span class="typ">UITextField</span><span class="pln"> </span><span class="pun">*)</span><span class="pln">textField shouldChangeCharactersInRange</span><span class="pun">: (</span><span class="typ">NSRange</span><span class="pun">)</span><span class="pln">range replacementString</span><span class="pun">: (</span><span class="typ">NSString</span><span class="pln"> </span><span class="pun">*)</span><span class="kwd">string</span><span class="pln">
</span><span class="pun">{</span><span class="pln">
    </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">textField</span><span class="pun">.</span><span class="pln">text</span><span class="pun">.</span><span class="pln">length </span><span class="pun">&gt;=</span><span class="pln"> MAX_LENGTH </span><span class="pun">&amp;&amp;</span><span class="pln"> range</span><span class="pun">.</span><span class="pln">length </span><span class="pun">==</span><span class="pln"> </span><span class="lit">0</span><span class="pun">)</span><span class="pln">
    </span><span class="pun">{</span><span class="pln">
        </span><span class="kwd">return</span><span class="pln"> NO</span><span class="pun">;</span><span class="pln"> </span><span class="pln">
    </span><span class="pun">}</span><span class="pln">
    </span><span class="kwd">else</span><span class="pln">
    </span><span class="pun">{</span><span class="kwd">
        return</span><span class="pln"> YES</span><span class="pun">;
    }</span><span class="pln">
</span><span class="pun">}</span><span class="pln">
</span></code></pre>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2009/06/11/add-background-image-to-uiview/" rel="bookmark" class="wherego_title">Add Background Image To UIView</a></li><li><a href="http://www.macoscoders.com/2009/05/17/iphone-apple-push-notification-service-apns/" rel="bookmark" class="wherego_title">iPhone Apple Push Notification Service (APNS)</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/05/14/iphone-sdk-how-to-set-max-character-length-in-uitextfield/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>iPhone: Place A UIView On Top Of Other Views</title>
		<link>http://www.macoscoders.com/2009/05/14/iphone-place-a-uiview-on-top-of-other-views/</link>
		<comments>http://www.macoscoders.com/2009/05/14/iphone-place-a-uiview-on-top-of-other-views/#comments</comments>
		<pubDate>Thu, 14 May 2009 09:59:45 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[iPhone Applications]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[UIView]]></category>
		<category><![CDATA[zPosition]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=178</guid>
		<description><![CDATA[There might be need at several stages of iPhone application development to insert a new view on top of other views. This can be achieved by setting the zPosition value of the view in question. If a View has a zPosition that is bigger than another views zPosition it will appear on top of the [...]]]></description>
			<content:encoded><![CDATA[<p>There might be need at several stages of iPhone application development to insert a new view on top of other views. This can be achieved by setting the zPosition value of the view in question. If a View has a zPosition that is bigger than another views zPosition it will appear on top of the other view.</p>
<p style="padding-left: 30px;"><span id="more-178"></span>UIView *myView = [[UIView alloc] init];<br />
myView.layer.zPosition = X;</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2009/06/11/add-background-image-to-uiview/" rel="bookmark" class="wherego_title">Add Background Image To UIView</a></li><li><a href="http://www.macoscoders.com/2010/08/12/in-app-sms-in-iphone-os-4-0/" rel="bookmark" class="wherego_title">In-App SMS in iPhone OS 4.0</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/05/14/iphone-place-a-uiview-on-top-of-other-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>App Icons Messed Up With iPhone OS 3.0 Beta 5</title>
		<link>http://www.macoscoders.com/2009/05/13/app-icons-messed-up-with-iphone-os-30-beta-5/</link>
		<comments>http://www.macoscoders.com/2009/05/13/app-icons-messed-up-with-iphone-os-30-beta-5/#comments</comments>
		<pubDate>Wed, 13 May 2009 12:30:56 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPhone Applications]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[3.0]]></category>
		<category><![CDATA[app store]]></category>
		<category><![CDATA[battery]]></category>
		<category><![CDATA[beta 5]]></category>
		<category><![CDATA[drain]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[messed up]]></category>
		<category><![CDATA[missing]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[seed 5]]></category>
		<category><![CDATA[without]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=176</guid>
		<description><![CDATA[With the latest release of iPhone OS 3.0 seed 5, the icons of the applications are being messed up. This mostly occurs when we install updates to the applications from App store. Few applications will not have any icons altogether, few apps have icons of their neighbouring apps like shown in the figure. iPhone OS [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 202px"><img title="Messed Up Icons With iPhone OS 3.0 Beta 5" src="http://www.macoscoders.com/images/Messed_Up_Icons_With_Iphone_3_0_Beta_5.jpg" alt="Messed Up Icons With iPhone OS 3.0 Beta 5" width="192" height="288" /><p class="wp-caption-text">Messed Up Icons With iPhone OS 3.0 Beta 5</p></div>
<p>With the latest release of iPhone OS 3.0 seed 5, the icons of the applications are being messed up. This mostly occurs when we install updates to the applications from App store. Few applications will not have any icons altogether, few apps have icons of their neighbouring apps like shown in the figure. iPhone OS 3.0 beta 5 is lot more buggier than beta 4 or beta 3. Also I have observed beta 5 drains the battery very fast. My iPhone lost more than half of its power over night even without performing any tasks while lying idle. Seems Apple has purposefully made beta 5 buggy so that users are forced to move to the final version expected in the WWDC.</p>
<p>On the screenshot we can observe that, PingPongLite application doesnt have icon at all and NewsPro and Bloomberg have same icons.</p>
<p>However on a positive note, if we restart the iPhone, all icons are restored to their original application icons.</p>
<h2><span id="more-176"></span><strong></strong></h2>
<h2></h2>
<h2></h2>
<h2><strong>Update:</strong></h2>
<p>The messed up icons issue has been fixed with the latest iPhone OS 3.0 GM build. Also with the GM build my iPhone runs relatively for a longer duration on a full battery charge than what I used to get with beta 5. (But still I feel 3.0 is consuming too much of battery than 2.2.1)</p>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2010/06/07/tab-bar-icons/" rel="bookmark" class="wherego_title">Tab Bar Icons</a></li><li><a href="http://www.macoscoders.com/2010/06/07/opening-app-review-page-of-app-store/" rel="bookmark" class="wherego_title">Opening App Review Page Of App Store</a></li><li><a href="http://www.macoscoders.com/2009/05/17/iphone-apple-push-notification-service-apns/" rel="bookmark" class="wherego_title">iPhone Apple Push Notification Service (APNS)</a></li><li><a href="http://www.macoscoders.com/2009/06/08/error-the-executable-was-signed-with-invalid-entitlements/" rel="bookmark" class="wherego_title">Error: The executable was signed with invalid entitlements</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/05/13/app-icons-messed-up-with-iphone-os-30-beta-5/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Disabling &#8216;Action&#8217; Alert in UIWebView</title>
		<link>http://www.macoscoders.com/2009/05/05/disabling-action-alert-in-uiwebview/</link>
		<comments>http://www.macoscoders.com/2009/05/05/disabling-action-alert-in-uiwebview/#comments</comments>
		<pubDate>Tue, 05 May 2009 09:51:48 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[UIWebview]]></category>
		<category><![CDATA[webkitTouchCallout]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=173</guid>
		<description><![CDATA[If there is an &#60;a href&#62;&#60;/a&#62; tag in the html that is being loaded in an UIWebView, then touching that link for few seconds would trigger an alert showing &#8216;Action&#8217; or the alternate text provided for the link.
If we need to disable it, then we need to set
document.documentElement.style.webkitTouchCallout=&#8221;none&#8221;;
This can be called in the onload event [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 202px"><img title="UIWebview Action Alert" src="http://www.macoscoders.com/images/UiWebview_Action_Alert.jpg" alt="UIWebview Action Alert" width="192" height="288" /><p class="wp-caption-text">UIWebview Action Alert</p></div>
<p>If there is an &lt;a href&gt;&lt;/a&gt; tag in the html that is being loaded in an UIWebView, then touching that link for few seconds would trigger an alert showing &#8216;Action&#8217; or the alternate text provided for the link.</p>
<p>If we need to disable it, then we need to set</p>
<p>document.documentElement.style.webkitTouchCallout=&#8221;none&#8221;;</p>
<p>This can be called in the onload event of the html &lt;body&gt; tag which is being loaded in UIWebview. Put this piece of Javascript before the &lt;body&gt; tag</p>
<pre id="line1" style="padding-left: 30px;">&lt;html&gt;
&lt;<span class="start-tag">head</span>&gt;
&lt;<span class="start-tag">meta</span><span class="attribute-name"> http-equiv</span>=<span class="attribute-value">"content-type" </span><span class="attribute-name">content</span>=<span class="attribute-value">"text/html; charset=utf-8"</span><span class="error"><span class="attribute-name">/</span></span>&gt;
&lt;<span class="start-tag">title</span>&gt;Hide Action Alert In UIWebView&lt;/<span class="end-tag">title</span>&gt;

&lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript"</span>&gt;
function OnLoad()
{
   <span style="text-decoration: underline;">document.documentElement.style.webkitTouchCallout = "none";</span>
}
&lt;/script&gt;
&lt;<span class="start-tag">/head</span>&gt;
&lt;body onload="OnLoad()"/&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<div id="wherego_related"><h3>Readers who viewed this page, also viewed:</h3><ul><li><a href="http://www.macoscoders.com/2009/05/19/how-to-set-badge-value-of-an-tabbar-item/" rel="bookmark" class="wherego_title">How to set badge value of an TabBar Item</a></li><li><a href="http://www.macoscoders.com/2009/05/14/iphone-sdk-how-to-set-max-character-length-in-uitextfield/" rel="bookmark" class="wherego_title">iPhone SDK: How To Set Max Character length in UITextField</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/where-did-they-go-from-here/">Where did they go from here?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/05/05/disabling-action-alert-in-uiwebview/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Selecting Earlier Version Of SDK When iPhone SDK 3.0 Is Installed</title>
		<link>http://www.macoscoders.com/2009/05/05/selecting-earlier-version-of-sdk-when-iphone-sdk-30-is-installed/</link>
		<comments>http://www.macoscoders.com/2009/05/05/selecting-earlier-version-of-sdk-when-iphone-sdk-30-is-installed/#comments</comments>
		<pubDate>Tue, 05 May 2009 08:13:20 +0000</pubDate>
		<dc:creator>Anish Kumar</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[2.2.1]]></category>
		<category><![CDATA[3.0]]></category>
		<category><![CDATA[Active SDK]]></category>
		<category><![CDATA[IPhone]]></category>
		<category><![CDATA[iPhone OS]]></category>

		<guid isPermaLink="false">http://www.macoscoders.com/?p=167</guid>
		<description><![CDATA[The iPhone SDK 3.0 is great in offering tons of new features to developers to play with. It irresistable not to install it n use it. But we should be ready to make few sacrifices in using it. Firstly as the release notes says, iPhone OS 3.0 beta installed on iPhone can&#8217;t be revereted back [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 165px"><img title="iPhone OS Active SDK Targets Missing" src="http://www.macoscoders.com/images/Active_SDK_Targets_Missing.jpg" alt="iPhone OS Active SDK Targets Missing" width="155" height="153" /><p class="wp-caption-text">iPhone OS Active SDK Targets Missing</p></div>
<p>The iPhone SDK 3.0 is great in offering tons of new features to developers to play with. It irresistable not to install it n use it. But we should be ready to make few sacrifices in using it. Firstly as the release notes says, iPhone OS 3.0 beta installed on iPhone can&#8217;t be revereted back to a earlier version of OS. While this was a big issue for people who skipped reading the release notes n were excited to install iPhone OS 3.0 Seed 1. However the later versions of iPhone OS 3.0 Seed 3 and 4 seem to be pretty stable and near production quality expect for few problems like low battery backup. The other major issue I am facing with iPhone SDK 3.0 is not being able to set the Active Target to a earlier version of iPhone OS other than 3.0. XCode silently removes all the other available options from the &#8216;Active SDK&#8217; list and gives only iPhone OS 3.0. This can be annoying, but we cant blame Apple for this as they have warned this in their release notes. The image on the left shows the behaviour I am talking about.<span id="more-167"></span></p>
<div class="wp-caption alignright" style="width: 119px"><img title="Remove User Specific Files From XCode Project File" src="http://www.macoscoders.com/images/Remove_User_Specific_Files_From_XCode_Project.jpg" alt="Remove User Specific Files From XCode Project File" width="109" height="82" /><p class="wp-caption-text">Remove User Specific Files From XCode Project File</p></div>
<p>But as the saying &#8216;Where there is a will, there is way&#8217;, we can overcome this by following these steps:-</p>
<ol>
<li>Clean All Targets</li>
<li>Close the project</li>
<li>Right click on your XCode project file and select &#8216;Show Package Contents&#8217;</li>
<li>You will be presented with usually 3 files with two of the files carrying the system user name as shown in the figure. Delete those two files. (Don&#8217;t worry, Its safe to remove them.) And open your project again and you should be able to see the old SDK options back in your &#8216;Active SDK&#8217; list</li>
</ol>
<div class="wp-caption alignleft" style="width: 321px"><img title="Active SDK Regained" src="http://www.macoscoders.com/images/Active_SDK_Regained.jpg" alt="Active SDK Regained" width="311" height="157" /><p class="wp-caption-text">Active SDK Regained</p></div>
<div id="wherego_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://www.macoscoders.com/2009/05/05/selecting-earlier-version-of-sdk-when-iphone-sdk-30-is-installed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
array(0) {
}

