<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3007246010455875639</id><updated>2024-09-01T23:50:45.215-07:00</updated><title type='text'>hello xcode</title><subtitle type='html'>Learning xcode programming.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://helloxcode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-7668437777079574358</id><published>2012-07-12T23:24:00.002-07:00</published><updated>2012-07-12T23:24:14.859-07:00</updated><title type='text'>Learn HTML5 and JavaScript for iOS: Web Standards-based Apps for iPhone, iPad, and iPod touch</title><content type='html'>&lt;iframe src=&quot;http://rcm.amazon.com/e/cm?t=pointe&amp;o=1&amp;p=8&amp;l=as1&amp;asins=B0089NVR0C&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr&quot; style=&quot;width:120px;height:240px;&quot; scrolling=&quot;no&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
You have a great idea for a simple mobile web app. Or, you have a great idea for a complicated mobile web app. Either way,&lt;em&gt;Learn HTML5 and JavaScript for iOS&lt;/em&gt;&amp;nbsp;will help you build, fine-tune, and publish your app&amp;nbsp;for iPhone, iPad, or iPod touch.&amp;nbsp;&lt;strong&gt;Scott Preston&lt;/strong&gt;&amp;nbsp;will walk you through building a mobile web app from scratch using real-world examples. You&#39;ll learn about design considerations, mobile web frameworks, and HTML5 features like animation and graphics using Canvas. You&#39;ll also learn how to customize your app for a variety of platforms, and you&#39;ll explore testing and performance tips for your app.&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small; margin: 20px; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin: 0.5em 0em;&quot;&gt;Get an overview of HTML5, JavaScript, and mobile web frameworks&lt;/li&gt;
&lt;li style=&quot;margin: 0.5em 0em;&quot;&gt;Discover tips for iOS usability as well as performance&lt;/li&gt;
&lt;li style=&quot;margin: 0.5em 0em;&quot;&gt;Dig into features like images, animation, and even geolocation&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 1em; margin: 0px 0px 0.25em;&quot;&gt;
What you’ll learn&lt;/h3&gt;
&lt;ul style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small; margin: 20px; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin: 0.5em 0em;&quot;&gt;HTML5 features&lt;/li&gt;
&lt;li style=&quot;margin: 0.5em 0em;&quot;&gt;JavaScript and JavaScript frameworks overview&lt;/li&gt;
&lt;li style=&quot;margin: 0.5em 0em;&quot;&gt;How to design for usability&lt;/li&gt;
&lt;li style=&quot;margin: 0.5em 0em;&quot;&gt;How to work with Canvas&lt;/li&gt;
&lt;li style=&quot;margin: 0.5em 0em;&quot;&gt;How to customize your iOS app depending on device and operating system&lt;/li&gt;
&lt;li style=&quot;margin: 0.5em 0em;&quot;&gt;How to integrate with services like voice and messaging&lt;/li&gt;
&lt;li style=&quot;margin: 0.5em 0em;&quot;&gt;How to test and optimize your app&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 1em; margin: 0px 0px 0.25em;&quot;&gt;
Who this book is for&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
Web developers who want to move into mobile app development on iOS devices as well as mobile users and developers who want to develop cross-platform web apps.&lt;/div&gt;
&lt;h3 style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 1em; margin: 0px 0px 0.25em;&quot;&gt;
Table of Contents&lt;/h3&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: small;&quot;&gt;
&lt;div&gt;
1. Getting Started&lt;/div&gt;
&lt;div&gt;
2. HTML5 In Short&lt;/div&gt;
&lt;div&gt;
3. CSS3 &amp;amp; Styling&lt;/div&gt;
&lt;div&gt;
4. JavaScript for Mobile&lt;/div&gt;
&lt;div&gt;
5. Mobile Frameworks&lt;/div&gt;
&lt;div&gt;
6. Site Navigation &amp;amp; Usability &amp;amp; Touch Interactions&lt;/div&gt;
&lt;div&gt;
7. Geolocation &amp;amp; Google Maps&lt;/div&gt;
&lt;div&gt;
8. Animation &amp;amp; Effects&lt;/div&gt;
&lt;div&gt;
9. Canvas &amp;amp; Graphics&lt;/div&gt;
&lt;div&gt;
10. Video &amp;amp; Audio&lt;/div&gt;
&lt;div&gt;
11. Integrating with Native Services&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
12. Taking Apps Offline &amp;amp; Local Storage&lt;/div&gt;
&lt;div&gt;
13. Mobile Testing&lt;/div&gt;
&lt;div&gt;
14. Advanced Topics - Performance &amp;amp; Analytics &amp;amp; More&lt;/div&gt;
&lt;div&gt;
15. Going Native with PhoneGap&lt;/div&gt;
&lt;/div&gt;
&lt;br/&gt;
&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/7668437777079574358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/7668437777079574358'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2012/07/learn-html5-and-javascript-for-ios-web.html' title='Learn HTML5 and JavaScript for iOS: Web Standards-based Apps for iPhone, iPad, and iPod touch'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-91836019016216043</id><published>2012-01-31T06:48:00.000-08:00</published><updated>2012-01-31T06:52:21.056-08:00</updated><title type='text'>Beginning iOS 5 Development: Exploring the iOS SDK</title><content type='html'>&lt;h3 class=&quot;productDescriptionSource&quot; style=&quot;color: rgb(51, 51, 51); font-size: 1.23em; font-weight: normal; margin-top: 0.75em; margin-right: 0px; margin-bottom: 0.375em; margin-left: -15px; clear: left; font-family: verdana, arial, helvetica, sans-serif; text-align: -webkit-auto; background-color: rgb(255, 255, 255); &quot;&gt;Product Description&lt;/h3&gt;&lt;div class=&quot;productDescriptionWrapper&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; font-family: verdana, arial, helvetica, sans-serif; text-align: -webkit-auto; background-color: rgb(255, 255, 255); font-size: small; &quot;&gt;&lt;p&gt;The team that brought you the bestselling &lt;em&gt;Beginning iPhone 4 Development&lt;/em&gt; is back again for &lt;em&gt;Beginning iOS 5 Development&lt;/em&gt;, bringing this definitive guide up-to-date with Apple&#39;s latest and greatest iOS SDK, as well as with the latest version of Xcode.&lt;br /&gt;&lt;br /&gt;There&#39;s coverage of brand new technologies, with chapters on storyboards and iCloud, for example, as well as significant updates to existing chapters to bring them in line with all the changes that came with the iOS 5 SDK. You&#39;ll have everything you need to create your very own apps for the latest iOS devices, including the iPhone 4S, iPad 2, and the latest iPod touch. Every single sample program in the book has been rebuilt from scratch using Xcode 4.2 and the latest iOS 5-specific project templates and designed to take advantage of the latest Xcode features.&lt;br /&gt;&lt;br /&gt;Assuming only a minimal working knowledge of Objective-C, and written in a friendly, easy-to-follow style, &lt;em&gt;Beginning iOS 5 Development&lt;/em&gt; offers a complete soup-to-nuts course in iPhone, iPad, and iPod touch programming. The book starts with the basics, walking through the process of downloading and installing Xcode and the iOS 5 SDK, and then guides you though the creation of your first simple application.&lt;br /&gt;&lt;br /&gt;From there, you’ll learn how to integrate all the interface elements Apple touch users have come to know and love, such as buttons, switches, pickers, toolbars, and sliders. You’ll master a variety of design patterns, from the simplest single view to complex hierarchical drill-downs. The confusing art of table building will be demystified, and you’ll learn how to save your data using the iPhone file system. You’ll also learn how to save and retrieve your data using a variety of persistence techniques, including Core Data and SQLite. And there’s much more! You’ll learn to draw using Quartz 2D and OpenGL ES, add multitouch gestural support (pinches and swipes) to your applications, and work with the camera, photo library, accelerometer, and built-in GPS. You’ll discover the fine points of application preferences and learn how to localize your apps for multiple languages.&lt;/p&gt;&lt;ul style=&quot;margin-top: 1.12em; margin-right: 0px; margin-bottom: 1.12em; margin-left: 20px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;The iOS 5 update to the bestselling and most recommended book for Cocoa touch developers&lt;/li&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;Packed full of tricks, techniques, and enthusiasm for the new SDK from a developer perspective&lt;/li&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;Written in an accessible, easy-to-follow style&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;What you’ll learn&lt;/h3&gt;&lt;ul style=&quot;margin-top: 1.12em; margin-right: 0px; margin-bottom: 1.12em; margin-left: 20px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;Everything you need to know to develop your own bestselling iPhone and iPad apps&lt;/li&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;Best practices for optimizing your code and delivering great user experiences&lt;/li&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;How to create “universal” apps for both the iPhone and iPad&lt;/li&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;What is data persistence and why is it important&lt;/li&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;Get started with building cool, crisp User Interfaces&lt;/li&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;What and how to use Table Views&lt;/li&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;How to do graphics with Quartz and OpenGL ES&lt;/li&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;What geo app development features the new iOS 5 brings to the iPhone 4S&lt;/li&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;How to get your app in iCloud&lt;/li&gt;&lt;li style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 20px; &quot;&gt;And much much more...&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;Who this book is for&lt;/h3&gt;&lt;p&gt;Everyone who wants to start developing for iPhone, iPod touch, and iPad!&lt;/p&gt;&lt;p&gt;For the latest sourcecode, please head to www.iphonedevbook.com.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 style=&quot;font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; &quot;&gt;Table of Contents&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;Welcome to the Jungle&lt;/li&gt;&lt;li&gt;Appeasing the Tiki Gods&lt;/li&gt;&lt;li&gt;Handling Basic Interaction&lt;/li&gt;&lt;li&gt;More User Interface Fun&lt;/li&gt;&lt;li&gt;Autorotation and Autosizing&lt;/li&gt;&lt;li&gt;Multiview Applications&lt;/li&gt;&lt;li&gt;Tab Bars and Pickers&lt;/li&gt;&lt;li&gt;Introduction to Table Views&lt;/li&gt;&lt;li&gt;Navigation Controllers and Table Views&lt;/li&gt;&lt;li&gt;iPad Considerations&lt;/li&gt;&lt;li&gt;Application Settings and User Defaults&lt;/li&gt;&lt;li&gt;Basic Data Persistence&lt;/li&gt;&amp;lt;...&lt;div class=&quot;emptyClear&quot; style=&quot;clear: left; height: 0px; font-size: 0px; &quot;&gt;&lt;/div&gt;&lt;/ol&gt;&lt;/div&gt;&lt;h3 class=&quot;productDescriptionSource&quot; style=&quot;color: rgb(51, 51, 51); font-size: 1.23em; font-weight: normal; margin-top: 0.75em; margin-right: 0px; margin-bottom: 0.375em; margin-left: -15px; clear: left; font-family: verdana, arial, helvetica, sans-serif; text-align: -webkit-auto; background-color: rgb(255, 255, 255); &quot;&gt;About the Author&lt;/h3&gt;&lt;div class=&quot;productDescriptionWrapper&quot; style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; font-family: verdana, arial, helvetica, sans-serif; text-align: -webkit-auto; background-color: rgb(255, 255, 255); font-size: small; &quot;&gt;&lt;strong&gt;Dave Mark&lt;/strong&gt; is a longtime Mac developer and author who has written a number of books on Mac and iOS development, including &lt;em&gt;Beginning iPhone 4 Development&lt;/em&gt;(Apress, 2010), &lt;em&gt;More iPhone 3 Development&lt;/em&gt; (Apress, 2010), &lt;em&gt;Learn C on the Mac&lt;/em&gt; (Apress, 2008), &lt;em&gt;The Macintosh Programming Primer series&lt;/em&gt; (Addison-Wesley, 1992), and &lt;em&gt;Ultimate Mac Programming&lt;/em&gt; (Wiley, 1995). Dave loves the water and spends as much time as possible on it, in it, or near it. He lives with his wife and three children in Virginia.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Jack Nutting&lt;/strong&gt; has been using Cocoa since the olden days, long before it was even called Cocoa. He has used Cocoa and its predecessors to develop software for a wide range of industries and applications, including gaming, graphic design, online digital distribution, telecommunications, finance, publishing, and travel. When he is not working on Mac or iOS projects, he is developing web applications with Ruby on Rails. Nutting is a passionate proponent of Objective-C and the Cocoa frameworks. At the drop of a hat, he will speak at length on the virtues of dynamic dispatch and run time class manipulations to anyone who will listen (and even to some who won’t). Nutting is the primary author of &lt;em&gt;Learn Cocoa on the Mac&lt;/em&gt; (Apress, 2010) and &lt;em&gt;Beginning iPad Development for iPhone Developers&lt;/em&gt; (Apress, 2010). He blogs from time to time at Nuthole.com.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Jeff LaMarche&lt;/strong&gt; is a Mac and iOS developer with more than 20 years of programming experience. Jeff has written a number of iOS and Mac development books, including &lt;em&gt;Beginning iPhone 3 Development&lt;/em&gt; (Apress, 2009), &lt;em&gt;More iPhone 3 Development&lt;/em&gt; (Apress, 2010), and &lt;em&gt;Learn Cocoa on the Mac&lt;/em&gt; (Apress, 2010). Jeff is a principal at MartianCraft, an iOS and Android development house. He has written about &lt;st1:place st=&quot;on&quot;&gt;&lt;st1:city st=&quot;on&quot;&gt;Cocoa&lt;/st1:city&gt;&lt;/st1:place&gt; and Objective-C for &lt;em&gt;MacTech Magazine&lt;/em&gt;, as well as articles for Apple’s developer web site. Jeff also writes about iOS development for his widely-read blog at &lt;span class=&quot;URL&quot;&gt;http://iphonedevelopment.blogspot.com&lt;/span&gt;.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;iframe src=&quot;http://rcm.amazon.com/e/cm?t=pointe&amp;o=1&amp;p=8&amp;l=as1&amp;asins=B006LPJY3C&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr&quot; style=&quot;width:120px;height:240px;&quot; scrolling=&quot;no&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/91836019016216043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/91836019016216043'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2012/01/beginning-ios-5-development-exploring.html' title='Beginning iOS 5 Development: Exploring the iOS SDK'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-1814616096778451548</id><published>2011-03-30T05:07:00.000-07:00</published><updated>2011-03-30T05:08:54.270-07:00</updated><title type='text'>iPhone for Programmers: An App-Driven Approach</title><content type='html'>&lt;iframe src=&quot;http://rcm.amazon.com/e/cm?t=pointe&amp;amp;o=1&amp;amp;p=8&amp;amp;l=as1&amp;amp;asins=013705842X&amp;amp;ref=tf_til&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;width: 120px; height: 240px;&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The professional programmer’s DEITEL&lt;sup&gt;®&lt;/sup&gt; guide to iPhone app development using iPhone SDK 3.x, Xcode&lt;sup&gt;®&lt;/sup&gt;, Objective-C&lt;sup&gt;®&lt;/sup&gt; and Cocoa&lt;sup&gt;®&lt;/sup&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;More  than 1.5 billion iPhone apps were downloaded from Apple’s App Store in  just one year! This book gives you everything you’ll need to start  developing great iPhone apps quickly and–once you’ve joined Apple’s  fee-based iPhone Developer Program–to get them up and running on the App  Store. The book uses an app-driven approach–each new technology is  discussed in the context of 14 fully tested iPhone apps (7700 lines of  code), complete with syntax shading, code walkthroughs and sample  outputs. Apps you’ll develop include:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Welcome&lt;/li&gt;&lt;li&gt;Spot-On Game&lt;/li&gt;&lt;li&gt;Route Tracker&lt;/li&gt;&lt;li&gt;Tip Calculator&lt;/li&gt;&lt;li&gt;Cannon Game &lt;/li&gt;&lt;li&gt;Slideshow&lt;/li&gt;&lt;li&gt;Favorite Twitter&lt;sup&gt;®&lt;/sup&gt; Searches&lt;/li&gt;&lt;li&gt;Painter &lt;/li&gt;&lt;li&gt;Voice Recorder&lt;/li&gt;&lt;li&gt;Flag Quiz Game&lt;/li&gt;&lt;li&gt;Address Book&lt;/li&gt;&lt;li&gt;Twitter&lt;sup&gt;®&lt;/sup&gt; Discount Airfares&lt;/li&gt;&lt;/ul&gt;By Chapter 3 you’ll be building apps using Xcode&lt;sup&gt;®&lt;/sup&gt;, Cocoa&lt;sup&gt;®&lt;/sup&gt; and Interface Builder. You’ll learn object-oriented programming in Objective-C&lt;sup&gt;®&lt;/sup&gt; and build apps using the latest iPhone 3.x technologies including the Game Kit, iPod library access and more.&lt;br /&gt;&lt;br /&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;iPhone for Programmers include practical, example-rich coverage of:&lt;/p&gt;&lt;p style=&quot;margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;• iPhone SDK 3.x, XCode&lt;sup&gt;®&lt;/sup&gt;, Interface Builder&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;• Object-Oriented Programming in Objective-C&lt;sup&gt;®&lt;/sup&gt; and Cocoa&lt;sup&gt;®&lt;/sup&gt;&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;• Collections, GUI, Event Handling&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;• Controllers, Application Templates&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;• UIView, Multi-Touch™&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;• Core Audio, Core Animation, NSTimer&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;• Tables, UINavigationController&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;• Map Kit, Core Location, GPS, Compass&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;• Photos, iPod Library Access&lt;/p&gt; &lt;p style=&quot;margin: 0px;&quot;&gt;• Serialization&lt;/p&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/1814616096778451548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/1814616096778451548'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2011/03/iphone-for-programmers-app-driven.html' title='iPhone for Programmers: An App-Driven Approach'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-81963529966978853</id><published>2010-06-29T04:36:00.000-07:00</published><updated>2010-06-29T04:41:17.500-07:00</updated><title type='text'>iPhone SDK 4 is now available to ALL registered Apple Develoers</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://developer.apple.com/iphone/&quot;&gt;&lt;img style=&quot;float: right; margin: 0pt 0pt 10px 10px; cursor: pointer; width: 196px; height: 187px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7pwx9Fz_U13v7UdZlmySRIatjwBnIpGnK7hdiBI_kiBgooCKeHK5KXVcCoS-_dZ0j0sR6dm5MiHCAYkv3kTuwPg5dREXZKTaCfleEV84k5MrSKm7z6JkSFHhSnEojSeSW8WBGvqACgFg/s200/sdk_hero.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5488158960340368978&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;iOS 4 is the next generation of the world&#39;s most innovative mobile  operating system. Its unique capabilities and new technologies will  change what&#39;s possible on a mobile platform.&lt;br /&gt;&lt;br /&gt;&lt;h2 id=&quot;get&quot; class=&quot;high&quot;&gt;iPhone SDK 4&lt;/h2&gt;       &lt;p&gt;With a rich set of over 1500 new APIs, iPhone SDK for iOS 4  provides you with an amazing range of technologies to enhance the  functionality of your iPhone and iPod touch apps. Registered Apple  developers can visit the &lt;a href=&quot;http://developer.apple.com/iphone/&quot;&gt;iPhone Dev Center&lt;/a&gt; to download the iPhone SDK 4  now.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/81963529966978853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/81963529966978853'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/06/iphone-sdk-4-is-available-to-all.html' title='iPhone SDK 4 is now available to ALL registered Apple Develoers'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7pwx9Fz_U13v7UdZlmySRIatjwBnIpGnK7hdiBI_kiBgooCKeHK5KXVcCoS-_dZ0j0sR6dm5MiHCAYkv3kTuwPg5dREXZKTaCfleEV84k5MrSKm7z6JkSFHhSnEojSeSW8WBGvqACgFg/s72-c/sdk_hero.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-8042313392456305606</id><published>2010-06-07T13:33:00.000-07:00</published><updated>2010-06-07T13:34:13.805-07:00</updated><title type='text'>Apple Event - WWDC 10 - iPhone 4</title><content type='html'>&lt;object width=&quot;580&quot; height=&quot;360&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/CKilqiVwi0A&amp;hl=en_US&amp;fs=1&amp;border=1&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/CKilqiVwi0A&amp;hl=en_US&amp;fs=1&amp;border=1&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;580&quot; height=&quot;360&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;Apple CEO, Steve Jobs introduces iPhone 4 at the company&#39;s World Wide Developers Conference in San Francisco. Features include a new glass and steel design, a built in antenna and a higher resolution screen.&lt;br /&gt;&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/8042313392456305606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/8042313392456305606'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/06/apple-event-wwdc-10-iphone-4.html' title='Apple Event - WWDC 10 - iPhone 4'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-1630678341823632796</id><published>2010-06-07T13:19:00.000-07:00</published><updated>2010-06-07T13:20:11.167-07:00</updated><title type='text'>Apple iPhone 4 Intro.</title><content type='html'>&lt;object width=&quot;580&quot; height=&quot;360&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/DZA8uhNCi3c&amp;hl=en_US&amp;fs=1&amp;border=1&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/DZA8uhNCi3c&amp;hl=en_US&amp;fs=1&amp;border=1&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;580&quot; height=&quot;360&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/1630678341823632796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/1630678341823632796'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/06/apple-iphone-4-intro.html' title='Apple iPhone 4 Intro.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-223987513422662135</id><published>2010-04-23T02:16:00.000-07:00</published><updated>2010-04-23T02:18:49.156-07:00</updated><title type='text'>iPhone SDK 4 beta</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://developer.apple.com/technologies/iphone/whats-new.html&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 196px; height: 187px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJWTKM3uqxOPf7MPquqmmVsYcX51Q0u38UN-4-ielkJ_vN6yi9po85Iz78UNmiMQLbY_uU1i1CicWNu50jKPrZwykhvkwwd6h2L3s5Y-iXr-X-8KwunvhwwzWYmsAS1j36lABg5Oid9lE/s400/sdk_hero.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5463259879038336402&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;With a rich set of over 1500 new APIs, &lt;a href=&quot;http://developer.apple.com/technologies/iphone/whats-new.html&quot;&gt;iPhone SDK for iPhone OS 4&lt;/a&gt; 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.&lt;br /&gt;&lt;br /&gt;iPhone SDK 4 beta is available for download to members of the iPhone Developer Program.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/223987513422662135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/223987513422662135'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/04/iphone-sdk-4-beta.html' title='iPhone SDK 4 beta'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJWTKM3uqxOPf7MPquqmmVsYcX51Q0u38UN-4-ielkJ_vN6yi9po85Iz78UNmiMQLbY_uU1i1CicWNu50jKPrZwykhvkwwd6h2L3s5Y-iXr-X-8KwunvhwwzWYmsAS1j36lABg5Oid9lE/s72-c/sdk_hero.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-573639730964498799</id><published>2010-04-09T22:51:00.000-07:00</published><updated>2010-04-09T22:53:40.300-07:00</updated><title type='text'>Apple iPhone OS 4.0 : Multitasking</title><content type='html'>Apple iPhone OS 4.0 : Multitasking Part 1&lt;br /&gt;&lt;object height=&quot;360&quot; width=&quot;580&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/okDRh-I3TXU&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;border=1&quot;&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;embed src=&quot;http://www.youtube.com/v/okDRh-I3TXU&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;border=1&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; height=&quot;360&quot; width=&quot;580&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;Apple iPhone OS 4.0 : Multitasking Part 2&lt;br /&gt;&lt;object height=&quot;360&quot; width=&quot;580&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/z5OvKNtK_NQ&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;border=1&quot;&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;embed src=&quot;http://www.youtube.com/v/z5OvKNtK_NQ&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;border=1&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; height=&quot;360&quot; width=&quot;580&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;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: * Background audio - Allows your app to play audio continuously. So customers can listen to your app while they surf the web, play games, and more. * Voice over IP - 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. * Background location - 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&#39; locations. * Push notifications - Receive alerts from your remote servers even when your app isn&#39;t running. * Local notifications - Your app can now alert users of scheduled events and alarms in the background, no servers required. * Task finishing - If your app is in mid-task when your customer leaves it, the app can now keep running to finish the task. * Fast app switching - 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 - no more having to reload the app.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/573639730964498799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/573639730964498799'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/04/apple-iphone-os-40-multitasking.html' title='Apple iPhone OS 4.0 : Multitasking'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-161759600014358960</id><published>2010-04-09T03:30:00.000-07:00</published><updated>2010-04-09T03:31:36.311-07:00</updated><title type='text'>Apple iPhone OS 4.0 Unvieling at Apple Special Event, April 2010 : Introduction</title><content type='html'>&lt;object width=&quot;560&quot; height=&quot;340&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/9d_dTX0o5o4&amp;hl=zh_TW&amp;fs=1&amp;&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/9d_dTX0o5o4&amp;hl=zh_TW&amp;fs=1&amp;&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;560&quot; height=&quot;340&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;Apple has unveiled plans for the biggest and most exciting iPhone software update yet. iPhone OS 4 will include over 100 new user features for iPhone and iPod touch owners to enjoy. And for developers, a new software development kit (SDK) offers over 1500 new APIs to create apps that are even more powerful, innovative, and amazing. &lt;br /&gt;&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/161759600014358960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/161759600014358960'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/04/apple-iphone-os-40-unvieling-at-apple.html' title='Apple iPhone OS 4.0 Unvieling at Apple Special Event, April 2010 : Introduction'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-5896242065723361328</id><published>2010-02-12T12:08:00.000-08:00</published><updated>2010-02-12T12:12:33.556-08:00</updated><title type='text'>Load background image of Button using programing code</title><content type='html'>There is a method called viewDidLoad in the controller&#39;s super class. It will be called after our view loaded. We can override it to do something after the view had been loaded, such as load background image to a button.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic0z4nRZii-zee3FEFm3NCh9pHR2FwfYHnM1Oz1dHGxEFT1R1SpOvHwaVA7xcL3h7bu43uUS3Och2oYf8WKiwx_3sma6__LkZtYUgobBxlOJIhj9xzYFwV8znE6yoJkDd_-n331Qq1X34/s1600-h/ButtonBackgroundImage.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 208px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic0z4nRZii-zee3FEFm3NCh9pHR2FwfYHnM1Oz1dHGxEFT1R1SpOvHwaVA7xcL3h7bu43uUS3Och2oYf8WKiwx_3sma6__LkZtYUgobBxlOJIhj9xzYFwV8znE6yoJkDd_-n331Qq1X34/s400/ButtonBackgroundImage.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5437451418543599666&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Start a new iPhone OS Application using View-Based Application Template. Add a Button using Interface Builder. Assign the &lt;a href=&quot;http://helloxcode.blogspot.com/2009/12/tag-attribute.html&quot;&gt;Tag&lt;/a&gt; of the button, say 10.&lt;br /&gt;&lt;br /&gt;- Drag a image into the Resources folder. eg. Home.png, it will be our background image of the button.&lt;br /&gt;&lt;br /&gt;- Modify our ViewController.m, un-comment the method viewDidLoad and add the code below.&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;- (void)viewDidLoad {&lt;br /&gt;    UIImage *buttonImage_Home = [UIImage imageNamed:@&quot;Home.png&quot;];&lt;br /&gt; UIImage *stretchableButtonImageNormal = [buttonImage_Home stretchableImageWithLeftCapWidth:12 topCapHeight:0];&lt;br /&gt; UIButton *homeButton = (UIButton *)[self.view viewWithTag:10];&lt;br /&gt; [homeButton setBackgroundImage:stretchableButtonImageNormal forState:UIControlStateNormal];&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt; &lt;br/&gt;&lt;br /&gt;&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/5896242065723361328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/5896242065723361328'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/02/load-background-image-of-button-using.html' title='Load background image of Button using programing code'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic0z4nRZii-zee3FEFm3NCh9pHR2FwfYHnM1Oz1dHGxEFT1R1SpOvHwaVA7xcL3h7bu43uUS3Och2oYf8WKiwx_3sma6__LkZtYUgobBxlOJIhj9xzYFwV8znE6yoJkDd_-n331Qq1X34/s72-c/ButtonBackgroundImage.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-7321223963130329882</id><published>2010-01-30T12:27:00.001-08:00</published><updated>2010-01-30T12:27:54.192-08:00</updated><title type='text'>ipad development</title><content type='html'>&lt;object width=&quot;500&quot; height=&quot;405&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/t3a1AVoCO5w&amp;hl=en_US&amp;fs=1&amp;border=1&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/t3a1AVoCO5w&amp;hl=en_US&amp;fs=1&amp;border=1&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;500&quot; height=&quot;405&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;
&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/7321223963130329882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/7321223963130329882'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/01/ipad-development.html' title='ipad development'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-3841288678746979497</id><published>2010-01-27T13:15:00.000-08:00</published><updated>2010-01-27T13:17:50.550-08:00</updated><title type='text'>Download iPhone SDK 3.2 beta today, start developing iPad Apps.</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirsKubn_vFpFkdhKuKsordFC0_JXC1HMd85n0lhQDY2VMLzU4HTbf9apjGfvEYdiGcYFlqqxU5WGJp7JwVT8R98QixlcPazzfpRVMVYMZ0EGjGm2xkZjEzGh9KYbwstcA-HSVsjoS8faE/s1600-h/sdk-image-globe-20100127.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirsKubn_vFpFkdhKuKsordFC0_JXC1HMd85n0lhQDY2VMLzU4HTbf9apjGfvEYdiGcYFlqqxU5WGJp7JwVT8R98QixlcPazzfpRVMVYMZ0EGjGm2xkZjEzGh9KYbwstcA-HSVsjoS8faE/s320/sdk-image-globe-20100127.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;iPhone Developer Program members can download iPhone SDK 3.2 beta today, start developing the next generation of innovative applications for new Apple iPad.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font: 16.0px Lucida Grande; line-height: 24.0px; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;b&gt;iPhone SDK 3.2 beta&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #262626; font: 14.0px Lucida Grande; line-height: 21.0px; margin: 0.0px 0.0px 60.0px 124.0px;&quot;&gt;iPhone SDK 3.2 beta contains all the tools you need to start developing and optimizing iPhone OS applications for&amp;nbsp;iPad.&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 16.0px Lucida Grande; line-height: 24.0px; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;b&gt;iPad Simulator&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #262626; font: 14.0px Lucida Grande; line-height: 21.0px; margin: 0.0px 0.0px 60.0px 124.0px;&quot;&gt;The iPad Simulator lets you build and run your iPad application on your Mac, allowing you to lay out your user interface for the larger screen size, test your app’s memory usage, and shorten the debug cycle in the design process.&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 16.0px Lucida Grande; line-height: 24.0px; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;b&gt;iPad Programming Guide&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #262626; font: 14.0px Lucida Grande; line-height: 21.0px; margin: 0.0px 0.0px 60.0px 124.0px;&quot;&gt;iPad provides new opportunities to create Multi-Touch iPhone OS applications on a larger display than ever. The iPad Programming Guide introduces new features available for iPad and how to implement those features in your applications.&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 16.0px Lucida Grande; line-height: 24.0px; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;b&gt;iPad Human Interface Guidelines&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #262626; font: 14.0px Lucida Grande; line-height: 21.0px; margin: 0.0px 0.0px 60.0px 124.0px;&quot;&gt;Design an incredible user interface and user experience for your iPad application by following the iPad Human Interface Guidelines. Learn how to effectively use the new views and controls available to you to deliver unforgettable applications to your&amp;nbsp;customers.&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 16.0px Lucida Grande; line-height: 24.0px; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;b&gt;iPad Sample Code&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #262626; font: 14.0px Lucida Grande; line-height: 21.0px; margin: 0.0px 0.0px 60.0px 124.0px;&quot;&gt;Get started developing innovative universal applications for iPad, iPhone and iPod touch by downloading iPad sample code. Each sample code project is buildable and provides an example of how to accomplish a task for a specific&amp;nbsp;technology.&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font: 16.0px Lucida Grande; line-height: 24.0px; margin: 0.0px 0.0px 0.0px 0.0px;&quot;&gt;&lt;b&gt;Preparing Universal Applications&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: #262626; font: 14.0px Lucida Grande; line-height: 21.0px; margin: 0.0px 0.0px 60.0px 124.0px;&quot;&gt;Developers can now start planning for universal applications, allowing them to take full advantage of the technologies found on iPad, iPhone, and iPod touch with a single binary.&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Lucida Grande&#39;, &#39;Lucida Sans Unicode&#39;, Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h4 style=&quot;color: black; font-size: 16px; font-style: normal; font-weight: bold; line-height: 1.5; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;/h4&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.apple.com/ipad/sdk/&quot;&gt;Learn More...&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/3841288678746979497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/3841288678746979497'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/01/download-iphone-sdk-32-beta-today-start.html' title='Download iPhone SDK 3.2 beta today, start developing iPad Apps.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirsKubn_vFpFkdhKuKsordFC0_JXC1HMd85n0lhQDY2VMLzU4HTbf9apjGfvEYdiGcYFlqqxU5WGJp7JwVT8R98QixlcPazzfpRVMVYMZ0EGjGm2xkZjEzGh9KYbwstcA-HSVsjoS8faE/s72-c/sdk-image-globe-20100127.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-1043968558833556783</id><published>2010-01-11T02:00:00.000-08:00</published><updated>2010-01-11T02:01:17.295-08:00</updated><title type='text'>AlertView</title><content type='html'>The creation and usage of Alert is very similar to Action Sheet.&lt;br /&gt;
&lt;br /&gt;
Here, a AlertView will be shown if user click NO in the Action Sheet, to prompt user that the application is kept running.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8fqxv35AfDtf0hHwqEo1aicRnb9oBVjC3FzvjKAsFseMg53foUkucVawKEAW68ccTpu4kekn8Gtw1OPfOriQSnkdgFfNoXHeTEi6W-1ymUJVZ6EZAPtIJNLpCzBElg71ylanuWcfuhWo/s1600-h/Alert_01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8fqxv35AfDtf0hHwqEo1aicRnb9oBVjC3FzvjKAsFseMg53foUkucVawKEAW68ccTpu4kekn8Gtw1OPfOriQSnkdgFfNoXHeTEi6W-1ymUJVZ6EZAPtIJNLpCzBElg71ylanuWcfuhWo/s320/Alert_01.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
- (void)actionSheet:(UIActionSheet *)actionSheet 
didDismissWithButtonIndex:(NSInteger)buttonIndex 
{ 
    if (buttonIndex == [actionSheet destructiveButtonIndex]) 
    { 
  exit(0);
    } 
 else
 {
  &lt;b&gt;UIAlertView *alert =[[UIAlertView alloc]
        initWithTitle:@&quot;No Exit&quot;
        message:@&quot;Application keep running&quot;
        delegate:self
        cancelButtonTitle:@&quot;OK&quot;
        otherButtonTitles:nil];
  [alert show];
  [alert release];&lt;/b&gt;
 }
} 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br /&gt;
&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/1043968558833556783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/1043968558833556783'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/01/alertview.html' title='AlertView'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8fqxv35AfDtf0hHwqEo1aicRnb9oBVjC3FzvjKAsFseMg53foUkucVawKEAW68ccTpu4kekn8Gtw1OPfOriQSnkdgFfNoXHeTEi6W-1ymUJVZ6EZAPtIJNLpCzBElg71ylanuWcfuhWo/s72-c/Alert_01.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-7955793973515155857</id><published>2010-01-09T14:26:00.000-08:00</published><updated>2010-01-09T14:31:37.691-08:00</updated><title type='text'>ActionSheet</title><content type='html'>In this exercise, we will implement a ActionSheet on the last exercise &quot;&lt;a href=&quot;http://helloxcode.blogspot.com/2010/01/programmatically-quit-iphone-os.html&quot;&gt;Programmatically quit a iPhone OS application&lt;/a&gt;&quot;, to double confirm exiting after the button pressed, and before exit the application.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqXJz5dXinEZHqdaC9JzF74gIJhXH5rGfMU7_K6xW6BYbL_f0XlyABpqC9J_FLaTy5dMEM12bm-yu5XZcpSnma-mXdu1-rrqZ8G4rWiWGFqgVvEBCegeUCC80HYfm3OfZP0KBP3pYCj28/s1600-h/ActionSheet01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqXJz5dXinEZHqdaC9JzF74gIJhXH5rGfMU7_K6xW6BYbL_f0XlyABpqC9J_FLaTy5dMEM12bm-yu5XZcpSnma-mXdu1-rrqZ8G4rWiWGFqgVvEBCegeUCC80HYfm3OfZP0KBP3pYCj28/s320/ActionSheet01.jpg&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWUX9dRGVhF_AHeJIiSf7eNJv-Gt1Z2qrhEywPk0fzkgpNV4yKTrP17qonaTwWC_Y22ozNCLPXL6VjQkh2LOLdVkp9D6-bA8we4e2PCfB5EikQ5sg7bq2C__Bp8mAooWsEaYYSzTxKzvc/s1600-h/ActionSheet02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWUX9dRGVhF_AHeJIiSf7eNJv-Gt1Z2qrhEywPk0fzkgpNV4yKTrP17qonaTwWC_Y22ozNCLPXL6VjQkh2LOLdVkp9D6-bA8we4e2PCfB5EikQ5sg7bq2C__Bp8mAooWsEaYYSzTxKzvc/s320/ActionSheet02.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Action sheets are used to force the user to make a choice between two or more items. It comes up from the bottom of the screen and displays a series of buttons for &lt;br /&gt;
the user to select.&lt;br /&gt;
&lt;br /&gt;
Modify the header file, iPhoneExitViewController.h.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;
#import &amp;lt;UIKit/UIKit.h&amp;gt;

@interface iPhoneExitViewController : UIViewController &amp;lt;UIActionSheetDelegate&amp;gt;{

}
- (IBAction)exitButtonPressed:(id)sender;
@end
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Modify iPhoneExitViewController.m to implement the IBAction exitButtonPressed, and actionSheet.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;
@implementation iPhoneExitViewController
- (IBAction)exitButtonPressed:(id)sender{
 UIActionSheet *actionSheet = [[UIActionSheet alloc] 
                                  initWithTitle:@&quot;Confirm to Exit?&quot; 
                                  delegate:self 
                                  cancelButtonTitle:@&quot;No!&quot; 
                                  destructiveButtonTitle:@&quot;Yes&quot; 
                                  otherButtonTitles:nil]; 
    [actionSheet showInView:self.view]; 
    [actionSheet release]; 
}

- (void)actionSheet:(UIActionSheet *)actionSheet 
didDismissWithButtonIndex:(NSInteger)buttonIndex 
{ 
    if (buttonIndex == [actionSheet destructiveButtonIndex]) 
    { 
        exit(0);
    } 
} 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
For sure, you have to create the UI to include a Exit button using Interface Builder, and connect the IBAction to the Exit button. Refer the article &quot;&lt;a href=&quot;http://helloxcode.blogspot.com/2009/12/general-steps-to-implement-and-connect.html&quot;&gt;General steps to implement and connect a IBAction&lt;/a&gt;&quot;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/7955793973515155857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/7955793973515155857'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/01/actionsheet.html' title='ActionSheet'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqXJz5dXinEZHqdaC9JzF74gIJhXH5rGfMU7_K6xW6BYbL_f0XlyABpqC9J_FLaTy5dMEM12bm-yu5XZcpSnma-mXdu1-rrqZ8G4rWiWGFqgVvEBCegeUCC80HYfm3OfZP0KBP3pYCj28/s72-c/ActionSheet01.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-8726870191061557763</id><published>2010-01-03T10:26:00.000-08:00</published><updated>2010-01-03T10:29:04.459-08:00</updated><title type='text'>Programmatically quit a iPhone OS application</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHceIJMgdmL_TEhmbaTtPCTjmVKPCAfZNd7wZZ69fXz5uvywGmqOZqECar83e0AOm9z_1JJr0JEu9SsxK0asprykdOZfU0nqu3JmTz_ABQSl5oDkt7zKxMm-LXMsgnNAKV65_4jamU9D4/s1600-h/exit.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHceIJMgdmL_TEhmbaTtPCTjmVKPCAfZNd7wZZ69fXz5uvywGmqOZqECar83e0AOm9z_1JJr0JEu9SsxK0asprykdOZfU0nqu3JmTz_ABQSl5oDkt7zKxMm-LXMsgnNAKV65_4jamU9D4/s320/exit.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;According to &lt;i&gt;iPhone OS Reference Library&lt;/i&gt; Q&amp;amp;A, &lt;a href=&quot;http://developer.apple.com/iphone/library/qa/qa2008/qa1561.html&quot;&gt;Q: How do I programmatically quit my iPhone OS application?&lt;/a&gt; There is no API provided for gracefully terminating an iPhone application.&lt;br /&gt;
&lt;br /&gt;
Alternatively, we can use exit(0) to force the iPhone application to terminate.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
@implementation iPhoneExitViewController&lt;br /&gt;
- (IBAction)exitButtonPressed:(id)sender{&lt;br /&gt;
exit(0);&lt;br /&gt;
}&lt;br /&gt;
&lt;/b&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/8726870191061557763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/8726870191061557763'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/01/programmatically-quit-iphone-os.html' title='Programmatically quit a iPhone OS application'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHceIJMgdmL_TEhmbaTtPCTjmVKPCAfZNd7wZZ69fXz5uvywGmqOZqECar83e0AOm9z_1JJr0JEu9SsxK0asprykdOZfU0nqu3JmTz_ABQSl5oDkt7zKxMm-LXMsgnNAKV65_4jamU9D4/s72-c/exit.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-1260913432654379473</id><published>2010-01-03T09:37:00.000-08:00</published><updated>2010-01-03T09:40:31.631-08:00</updated><title type='text'>iPhone OS Reference Library</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://developer.apple.com/iphone/library/navigation/index.html&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW-GGzx4Iw63FEzD_JREFHfhoDjfW6FcavbUyMdMX9tXs3LZhV6qRhZ6PZRN-cwQgQW8f1zWm3LHIGYup-b7JmhkAM9Lp-Yfus7TrO0jUU5q-fEXBJKB6sl9h4Q6aReaLP8v4nFrXPNUs/s320/books_phone.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;a href=&quot;http://developer.apple.com/iphone/library/navigation/index.html&quot;&gt;iPhone OS Reference Library&lt;/a&gt;&lt;br /&gt;
The iPhone OS Reference Library is your bookshelf for detailed information essential to iPhone OS application development.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/1260913432654379473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/1260913432654379473'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2010/01/iphone-os-reference-library.html' title='iPhone OS Reference Library'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW-GGzx4Iw63FEzD_JREFHfhoDjfW6FcavbUyMdMX9tXs3LZhV6qRhZ6PZRN-cwQgQW8f1zWm3LHIGYup-b7JmhkAM9Lp-Yfus7TrO0jUU5q-fEXBJKB6sl9h4Q6aReaLP8v4nFrXPNUs/s72-c/books_phone.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-6101118223694402343</id><published>2009-12-29T14:27:00.000-08:00</published><updated>2009-12-29T14:27:28.863-08:00</updated><title type='text'>Introduction to Coding Guidelines for Cocoa</title><content type='html'>Developing a Cocoa framework, plug-in, or other executable with a public API requires some approaches and conventions that are different from those used in application development. This is where API naming conventions come in handy, to make the interfaces consistent and clear. There are also programming techniques that are special to—or of greater importance with—frameworks, such as versioning, binary compatibility, error-handling, and memory management. This topic includes information on both Cocoa naming conventions and recommended programming practices for frameworks.&lt;br /&gt;
&lt;br /&gt;
Link: &lt;a href=&quot;http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html&quot;&gt;Introduction to Coding Guidelines for Cocoa &lt;/a&gt;&lt;br /&gt;
&lt;br/&gt;&lt;br /&gt;
&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/6101118223694402343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/6101118223694402343'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2009/12/introduction-to-coding-guidelines-for.html' title='Introduction to Coding Guidelines for Cocoa'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-5784721297274516733</id><published>2009-12-29T14:06:00.000-08:00</published><updated>2009-12-29T14:06:24.592-08:00</updated><title type='text'>googledocs-cocoa-sample: Example iPhone project showing how to use GData API for Google Docs from Objective-C.</title><content type='html'>&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaT9d9zY3u6B37FaECD0BRGiHCWP1GSk6MbufeU2zs8JL7hQoYwXi_0eGRdp5SK8BPTgUK5YugmLoYm8hB1uqQHsobWaBLvk1rIewEv1t92H0JT7gtAmciWUIXfWnfMwlKC6dhGvGliBI/s320/glogo.png&quot; /&gt;This sample iPhone application demonstrates how to use the GData API Objective-C library to log in, upload, download and rename files in Google Docs, including support for documents inside multiple levels of folders.&lt;br /&gt;
&lt;br /&gt;
There are two ways to use the code.&lt;br /&gt;
&lt;br /&gt;
First, the GoogleDocs.m/.h can be used as-is and plugged into an iPhone app. It should also work in a Mac OS X Cocoa app with little or no changes needed.&lt;br /&gt;
&lt;br /&gt;
Second, GoogleDocs.m/.h shows an example of how to use various aspects of the GData Objective-C API. By seeing how this code works, a developer can learn the underlying API to create their own interface.&lt;br /&gt;
&lt;br /&gt;
Additionally, the code demonstrates a method for packing up binary/non-user editable data files and uploading them as HTML files, then downloading and decoding the original content.&lt;br /&gt;
&lt;br /&gt;
The sample application fully exercises the included interface in an app that will run on an iPhone, iPod Touch and the iPhone Simulator.&lt;br /&gt;
&lt;br /&gt;
link: &lt;a href=&quot;http://code.google.com/p/googledocs-cocoa-sample/&quot;&gt;googledocs-cocoa-sample Project Home&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/5784721297274516733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/5784721297274516733'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2009/12/googledocs-cocoa-sample-example-iphone.html' title='googledocs-cocoa-sample: Example iPhone project showing how to use GData API for Google Docs from Objective-C.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaT9d9zY3u6B37FaECD0BRGiHCWP1GSk6MbufeU2zs8JL7hQoYwXi_0eGRdp5SK8BPTgUK5YugmLoYm8hB1uqQHsobWaBLvk1rIewEv1t92H0JT7gtAmciWUIXfWnfMwlKC6dhGvGliBI/s72-c/glogo.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-3545407411837933517</id><published>2009-12-28T13:13:00.000-08:00</published><updated>2009-12-28T13:13:58.119-08:00</updated><title type='text'>Tag Attribute</title><content type='html'>Tag is a property of UIView objects, includeing views an controls. It&#39;s a number assigned to any UIView object, and will keep no change in you application.&lt;br /&gt;
&lt;br /&gt;
For example, if you have more than one object, which trigger the same action method, how can you identify the actual source of the event? Tag is a good solution. As shown in my previouse exercise &quot;Change UIView.backgroundColor using UIColor&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt; UISlider *sliderRed = (UISlider *)[self.view viewWithTag:10];
 UISlider *sliderGreen = (UISlider *)[self.view viewWithTag:11];
 UISlider *sliderBlue = (UISlider *)[self.view viewWithTag:12];
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW2EfLv5aav8yL9tolEJO3jLX8_KPiO3A9jAbEt9pDRHKbJZiZmtIODrjsl_3ILx_k740E3bLmz_gb1ziT-W3zrti131NLdCKInYm4p9JB0XuufPtIsN6btyfwPlms6ZDKIZp8Gz5zbHQ/s1600-h/Tag.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW2EfLv5aav8yL9tolEJO3jLX8_KPiO3A9jAbEt9pDRHKbJZiZmtIODrjsl_3ILx_k740E3bLmz_gb1ziT-W3zrti131NLdCKInYm4p9JB0XuufPtIsN6btyfwPlms6ZDKIZp8Gz5zbHQ/s320/Tag.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;b&gt;Assign Tag using Interface Builder&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In Interface Builder with the UIView object select, there is a Tag property in the Inspector pane, as shown in the figure. You can enter the value you want. And also you can check this Tag value in your code to identify the object.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/3545407411837933517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/3545407411837933517'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2009/12/tag-attribute.html' title='Tag Attribute'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW2EfLv5aav8yL9tolEJO3jLX8_KPiO3A9jAbEt9pDRHKbJZiZmtIODrjsl_3ILx_k740E3bLmz_gb1ziT-W3zrti131NLdCKInYm4p9JB0XuufPtIsN6btyfwPlms6ZDKIZp8Gz5zbHQ/s72-c/Tag.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-3529172334525371403</id><published>2009-12-27T02:33:00.000-08:00</published><updated>2009-12-27T02:33:30.111-08:00</updated><title type='text'>General steps to define and connect a IBOutlet</title><content type='html'>In Xcode development, controller class refer to object in xib using a special kind of instance variable, outlet. Outlet are declared with a special keyword, IBOutlet.&lt;br /&gt;
&lt;br /&gt;
Typically, the declaration of an outet is look like this:&lt;br /&gt;
@property (nonatomic, retain) IBOutlet UILabel *outlet;&lt;br /&gt;
&lt;br /&gt;
As a example, the text of a Label will be changed in our controller class.&lt;br /&gt;
&lt;br /&gt;
modify the header file, in form of xxxViewController.h, to add declaration of the outlet.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;@interface exampleViewController : UIViewController {
 &lt;b&gt;UILabel *outlet&lt;/b&gt;
}
&lt;b&gt;@property (nonatomic, retain) IBOutlet UILabel *outlet&lt;/b&gt;;
- (IBAction)actionMethod:(id)sender;
@end
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj52ePbo7BQNrKdszKVZtkCBU5kB8noJPqH9WZLGXx1nP-S4q3ZlATQN-Ym_JD3ET28Wqkm6-53thbY0go_fUQc8E8WobVeL7CTgmq5Nh6YYA6RUE_H2297hLk13kt52rNCgaW_mRPDX38/s1600-h/IBOutlet_a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj52ePbo7BQNrKdszKVZtkCBU5kB8noJPqH9WZLGXx1nP-S4q3ZlATQN-Ym_JD3ET28Wqkm6-53thbY0go_fUQc8E8WobVeL7CTgmq5Nh6YYA6RUE_H2297hLk13kt52rNCgaW_mRPDX38/s320/IBOutlet_a.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Modify inside definition file, xxxViewController.m, to access the object using the outlet.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;@implementation exampleViewController
&lt;b&gt;@synthesize outlet;&lt;/b&gt;
-(IBAction)actionMethod:(id)sender{
 &lt;b&gt;outlet.text = @&quot;Access using outlet&quot;;&lt;/b&gt;
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
and have to release it in the method dealloc&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;
- (void)dealloc {
    &lt;b&gt;[outlet release];&lt;/b&gt;
    [super dealloc];
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZWetTmrDriFGi6AtMbLWQYP-0pDD4Giof3gspAWoCkzdG9zg6vHm18p2ju2PQmgr_3ksWzjRD6pziXA02FrMbOumED9EVzTCXzJJcApzfJ3cybs1BYxgHZ7pEVdr4Sn4km7-dl4bAOPA/s1600-h/IBOutlet_b.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZWetTmrDriFGi6AtMbLWQYP-0pDD4Giof3gspAWoCkzdG9zg6vHm18p2ju2PQmgr_3ksWzjRD6pziXA02FrMbOumED9EVzTCXzJJcApzfJ3cybs1BYxgHZ7pEVdr4Sn4km7-dl4bAOPA/s320/IBOutlet_b.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Save your works.&lt;br /&gt;
&lt;br /&gt;
Connect IBOutlet in INterface Builder:&lt;br /&gt;
&lt;br /&gt;
Double click on the xxxViewController.xib in Groups &amp;amp; Files pane, under Resources folder, to start Interface Builder.&lt;br /&gt;
&lt;br /&gt;
Drag the object you want from Library to View pane, if you haven&#39;t placed it. &lt;br /&gt;
&lt;br /&gt;
Hold down the Control key and drag (or drag by right button on mouse) the File&#39;s Owner in xib to over the object in View. &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSd8x-VsBf11re1l23MnOU1Nd8xapDpiFu3-q0Y5AdNwYBmwa4KQj5Y9Qmm7oxP8lCL8hh8MwoDk2GKfzVLIMqoTpsSFehfBZ27XWQ8_prOJJbujC_w8YcHaRikwMVPS8jNUGAafwMx3M/s1600-h/IBOutlet_01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSd8x-VsBf11re1l23MnOU1Nd8xapDpiFu3-q0Y5AdNwYBmwa4KQj5Y9Qmm7oxP8lCL8hh8MwoDk2GKfzVLIMqoTpsSFehfBZ27XWQ8_prOJJbujC_w8YcHaRikwMVPS8jNUGAafwMx3M/s320/IBOutlet_01.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Release mouse button, the available outlets will be listed, select the outlet you want to connect.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSmlRTLgGeSYFxGIsjlkJ2F2nBHZsLgn1CRaC9L6UAaCYPdF7y0fAbUZ7F8-zNG_DriAdrbhLbCAYUxGPzpjKcYgyal8henZk1HiM8cqWI0tueBLjdPDcEeqsAD0xYTpwZRIHDV2HT8vU/s1600-h/IBOutlet_02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSmlRTLgGeSYFxGIsjlkJ2F2nBHZsLgn1CRaC9L6UAaCYPdF7y0fAbUZ7F8-zNG_DriAdrbhLbCAYUxGPzpjKcYgyal8henZk1HiM8cqWI0tueBLjdPDcEeqsAD0xYTpwZRIHDV2HT8vU/s320/IBOutlet_02.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
that&#39;s.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/3529172334525371403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/3529172334525371403'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2009/12/general-steps-to-define-and-connect.html' title='General steps to define and connect a IBOutlet'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj52ePbo7BQNrKdszKVZtkCBU5kB8noJPqH9WZLGXx1nP-S4q3ZlATQN-Ym_JD3ET28Wqkm6-53thbY0go_fUQc8E8WobVeL7CTgmq5Nh6YYA6RUE_H2297hLk13kt52rNCgaW_mRPDX38/s72-c/IBOutlet_a.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-7969436703077113549</id><published>2009-12-27T01:34:00.000-08:00</published><updated>2009-12-27T01:34:55.283-08:00</updated><title type='text'>General steps to implement and connect a IBAction</title><content type='html'>In Xcode development, interface objects (such as button, slider...) are &quot;placed&quot; using Interface Builder (IB). It will generate a event (such as Touch Up) to trigger a action method in the controller class.&lt;br /&gt;
&lt;br /&gt;
Action Methods are declared with a special keyword, IBAction, which tells Interface Builder that tis is a action method, and can be triggered by a control objects. Typically, the declaration of an action method is look like this:&lt;br /&gt;
- (IBAction)actionMethod:(id)sender;&lt;br /&gt;
&lt;br /&gt;
As a example, a button will be used to generate a Touch Up event, to trigger a action method, actionMethod() in controller class.&lt;br /&gt;
&lt;br /&gt;
modify the header file, in form of xxxViewController.h, to add declaration of the Action Method.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;@interface xxxViewController : UIViewController {
}
&lt;b&gt;- (IBAction)actionMethod:(id)sender;&lt;/b&gt;
@end 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9Whz4emMQVt46mpHkqyHN6cYfu9lOnCMagJ4ncYJenXkd-TWtRMKkRXc-lZO8Kmvim0HBBgi1G6QtZfOycePJvw6EONISn6x1jdOOqpG1eI4jpICGXTDFVGCGuxouvomzzzUxVVmnxa8/s1600-h/IBAction_a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9Whz4emMQVt46mpHkqyHN6cYfu9lOnCMagJ4ncYJenXkd-TWtRMKkRXc-lZO8Kmvim0HBBgi1G6QtZfOycePJvw6EONISn6x1jdOOqpG1eI4jpICGXTDFVGCGuxouvomzzzUxVVmnxa8/s320/IBAction_a.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Define the body of the Action Method inside definition file, xxxViewController.m.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;#import &quot;helloiphoneViewController.h&quot;

@implementation helloiphoneViewController
&lt;b&gt;-(IBAction)actionMethod:(id)sender{
 //do something...
}&lt;/b&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhmsxPAHnfov48qFoA988U5ssOJn-OBpCSXNsYmcESq_RZvSNkPSWmELKac7f3MaRQrT_uRVhediFxS6OFBIsV6hyphenhyphenEHyIFlMoBdhfau6isb9jICpbOgVF87AEkak2QA1hRAmtaTG2NrlE/s1600-h/IBAction_b.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhmsxPAHnfov48qFoA988U5ssOJn-OBpCSXNsYmcESq_RZvSNkPSWmELKac7f3MaRQrT_uRVhediFxS6OFBIsV6hyphenhyphenEHyIFlMoBdhfau6isb9jICpbOgVF87AEkak2QA1hRAmtaTG2NrlE/s320/IBAction_b.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Save your works.&lt;br /&gt;
&lt;br /&gt;
Connect IBAction in INterface Builder:&lt;br /&gt;
&lt;br /&gt;
Double click on the xxxViewController.xib in Groups &amp;amp; Files pane, under Resources folder, to start Interface Builder.&lt;br /&gt;
&lt;br /&gt;
Drag the control you want from Library to View pane, if you haven&#39;t placed it. &lt;br /&gt;
&lt;br /&gt;
Open the Connection Inspector from Tools on top menu.&lt;br /&gt;
&lt;br /&gt;
Click on to select the control object you want to connect the IBAction.&lt;br /&gt;
&lt;br /&gt;
A list of available events will be listed inside the Connection Inspector. Select the event you expect to trigger the action, drag the circle on the right of it, to over File&#39;s Owner on xib pane.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkkWGJ7IcIwtoeXtiNGOjuvBO-Msyfag4Ui_8qKINA0DMYgxYGIJ3Q9-cf_nj5EMf_YGtlHWHKwH7bQeAKHcYGgEhe6SPrMcRrL1UHm7mjwl65zLZPBKnmXAM6CN7dl_W6TWwbvmHDX2c/s1600-h/IBAction_01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkkWGJ7IcIwtoeXtiNGOjuvBO-Msyfag4Ui_8qKINA0DMYgxYGIJ3Q9-cf_nj5EMf_YGtlHWHKwH7bQeAKHcYGgEhe6SPrMcRrL1UHm7mjwl65zLZPBKnmXAM6CN7dl_W6TWwbvmHDX2c/s320/IBAction_01.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Release mouse button, the available action methods will be listed, click to select the right one.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHhh194643IIcDiBIHkj0J-yZhfagEOYOx_WzF1E3eoRHU1kgtAP47LCPQEIOQiu8gjCR3I9tB_22yDChyphenhyphen2Eu7KhuBHmHoxyAY_DBMeNX8F_Ex2AJ58Tpn5Xx54AAjp_4iLW3GeUOV_T8/s1600-h/IBAction_02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHhh194643IIcDiBIHkj0J-yZhfagEOYOx_WzF1E3eoRHU1kgtAP47LCPQEIOQiu8gjCR3I9tB_22yDChyphenhyphen2Eu7KhuBHmHoxyAY_DBMeNX8F_Ex2AJ58Tpn5Xx54AAjp_4iLW3GeUOV_T8/s320/IBAction_02.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Connection Inspector will be updated to have the new connection.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdjF9HQueUr7fy-di9BvfvZ5XzxLBcU-frKt2Hzqm3Dct2ujhT9XkM3eaT_LXJ04wUMjWWE-buTjOsGL9GyuLTUExh78vzI5J3cWTpUieQfxPCLG_lzhGDhOmt78wVr2YuqecMXx8WPfs/s1600-h/IBAction_03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdjF9HQueUr7fy-di9BvfvZ5XzxLBcU-frKt2Hzqm3Dct2ujhT9XkM3eaT_LXJ04wUMjWWE-buTjOsGL9GyuLTUExh78vzI5J3cWTpUieQfxPCLG_lzhGDhOmt78wVr2YuqecMXx8WPfs/s320/IBAction_03.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Save your works.&lt;br /&gt;
&lt;br /&gt;
that&#39;s.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/7969436703077113549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/7969436703077113549'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2009/12/general-steps-to-implement-and-connect.html' title='General steps to implement and connect a IBAction'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9Whz4emMQVt46mpHkqyHN6cYfu9lOnCMagJ4ncYJenXkd-TWtRMKkRXc-lZO8Kmvim0HBBgi1G6QtZfOycePJvw6EONISn6x1jdOOqpG1eI4jpICGXTDFVGCGuxouvomzzzUxVVmnxa8/s72-c/IBAction_a.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-8620785750760781227</id><published>2009-12-24T09:18:00.000-08:00</published><updated>2009-12-24T09:18:45.119-08:00</updated><title type='text'>Change UIView.backgroundColor using UIColor</title><content type='html'>In this exercise, I will create a simple iPhone application with three sliders to change the background color.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8EeRscNALTHoDYgvYkmUsnUuQZQDcJEEtq13xIHC_5Wn6Eze4JKLirLiuFdzP3l-KhLmnrqLvuXQY2leiRGDufhNYnecoBMeR8_ev8rQ-QC8lCgfDmnTFndR68C4FY7pZNdlln45aYqg/s1600-h/bg_00.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8EeRscNALTHoDYgvYkmUsnUuQZQDcJEEtq13xIHC_5Wn6Eze4JKLirLiuFdzP3l-KhLmnrqLvuXQY2leiRGDufhNYnecoBMeR8_ev8rQ-QC8lCgfDmnTFndR68C4FY7pZNdlln45aYqg/s320/bg_00.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
It will have three sliders on screen, with Tag 10, 11 and 12, to control the colors of red, green blue. At start-up, all the initiate values are set to 0, also the background will be in black. Whenever any slider&#39;s value changed, the values of all the sliders will be read and update UIView.backgroundColor accordingly.&lt;br /&gt;
&lt;br /&gt;
- Create a iPhone Application using View-base Application template, xcodeBackgroundColor.&lt;br /&gt;
&lt;br /&gt;
- Modify xcodeBackgroundColorViewController.h to have a (IBAction)sliderChanged:(id)sender. &lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;
#import &amp;lt;UIKit/UIKit.h&amp;gt;

@interface xcodeBackgroundColorViewController : UIViewController {

}
- (IBAction)sliderChanged:(id)sender;
@end
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
- Modify xcodeBackgroundColorViewController.m to implement (IBAction)sliderChanged:(id)sender.&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;
#import &quot;xcodeBackgroundColorViewController.h&quot;

@implementation xcodeBackgroundColorViewController
- (IBAction)sliderChanged:(id)sender { 
    UISlider *sliderRed = (UISlider *)[self.view viewWithTag:10];
 UISlider *sliderGreen = (UISlider *)[self.view viewWithTag:11];
 UISlider *sliderBlue = (UISlider *)[self.view viewWithTag:12];
 CGFloat red = sliderRed.value;
 CGFloat green = sliderGreen.value;
 CGFloat blue = sliderBlue.value;
 self.view.backgroundColor = [UIColor colorWithRed:red green:green blue:blue alpha:1.0f];
} 
...
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Save the works.&lt;br /&gt;
- Double click on xcodeBackgroundColorViewController.xib to start Interface Builder.&lt;br /&gt;
Click on the View to change the background to Black.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUFAAO8Zu2xTf85L_iwX0HwAx4pO4O_SkVXsf4cJ_QHK7_QCevmamBN2kkoxrpNuT6bn8jY6-uGW6jc-4dapW8b8FB_gZ1cKYnICuaVu_X7Bg5lAS1UcnjWJPHJxSk0YPygw541kp94Ho/s1600-h/bg_01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUFAAO8Zu2xTf85L_iwX0HwAx4pO4O_SkVXsf4cJ_QHK7_QCevmamBN2kkoxrpNuT6bn8jY6-uGW6jc-4dapW8b8FB_gZ1cKYnICuaVu_X7Bg5lAS1UcnjWJPHJxSk0YPygw541kp94Ho/s320/bg_01.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Place three Sliders on the View, set minimum=0.0, maximum=1.0, and initial=0.0. Set Tag=10, 11 and 12 respectively. &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv3ztLRnVOyFiiVsCphmfKlfjrSIK4Lxx8VOqVt4b56mF2JbtujtmcMNdV7WZUjIkD2zXFL8Fc6iBr9KGK4TCPpI_-JmvtK_iV5lnoc59U_Xhb4jFBtotU34WzWp0HWE8088KU-KlDeiA/s1600-h/bg_02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv3ztLRnVOyFiiVsCphmfKlfjrSIK4Lxx8VOqVt4b56mF2JbtujtmcMNdV7WZUjIkD2zXFL8Fc6iBr9KGK4TCPpI_-JmvtK_iV5lnoc59U_Xhb4jFBtotU34WzWp0HWE8088KU-KlDeiA/s320/bg_02.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Select each Slider on it, connect the IBAction of Value Changed to sliderChanged:&lt;br /&gt;
&lt;br /&gt;
- Open Connection Inspector from Tools -&amp;gt; Connection Inspector, or select the second tag on Inspector. &lt;br /&gt;
&lt;br /&gt;
- Click on the Slider to select it. Drag the circle on the right of Value Changed over the File&#39;s Owner in xcodeBackgroundColorViewController.xib.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijv4bSZTsip2nWAqKqmVW9JaD1LWxMNxYlv-goK-ccaY_RBpIL_wGirByhxyFDkv_wgxh4MkzpF35TWp7wyR1rBAtti98E7kyoui0RMkEd4vUvmLTymIUW7k666jYkq2S-xhDYO24fzbc/s1600-h/bg_03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijv4bSZTsip2nWAqKqmVW9JaD1LWxMNxYlv-goK-ccaY_RBpIL_wGirByhxyFDkv_wgxh4MkzpF35TWp7wyR1rBAtti98E7kyoui0RMkEd4vUvmLTymIUW7k666jYkq2S-xhDYO24fzbc/s320/bg_03.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Release and select ValueChanged.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7gmCda6TXu7jJ8T9PMWutFo03hdMXh9pEwsaZsy8XGqScZq8kcKXwsrQVAQK4osZE0VBM5pLk1Jvwa4DZVGipFIEqDD0EoEFYI1nyMRIh-_i2Z_iVuZ5VcIt-u3mZ1xesQjt7Qzoi2WE/s1600-h/bg_04.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7gmCda6TXu7jJ8T9PMWutFo03hdMXh9pEwsaZsy8XGqScZq8kcKXwsrQVAQK4osZE0VBM5pLk1Jvwa4DZVGipFIEqDD0EoEFYI1nyMRIh-_i2Z_iVuZ5VcIt-u3mZ1xesQjt7Qzoi2WE/s320/bg_04.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Repeat on all the three sliders. Save the works.&lt;br /&gt;
&lt;br /&gt;
Build and Go in Xcode.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8DPY7daSyLLBtOPljF5Q_X1DhNBuo6KwTYS3j_VaxLSbHHmhP1CTNG2a9ENBl6rnxA6uJUNr4cMz_FT2oPVHRqZU4aQFQcjIlik_eIFuu_07DGVzJEe-yx4wIX2om5oMdg3gxwAFNVnQ/s1600-h/bg_05.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8DPY7daSyLLBtOPljF5Q_X1DhNBuo6KwTYS3j_VaxLSbHHmhP1CTNG2a9ENBl6rnxA6uJUNr4cMz_FT2oPVHRqZU4aQFQcjIlik_eIFuu_07DGVzJEe-yx4wIX2om5oMdg3gxwAFNVnQ/s320/bg_05.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/8620785750760781227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/8620785750760781227'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2009/12/change-uiviewbackgroundcolor-using.html' title='Change UIView.backgroundColor using UIColor'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8EeRscNALTHoDYgvYkmUsnUuQZQDcJEEtq13xIHC_5Wn6Eze4JKLirLiuFdzP3l-KhLmnrqLvuXQY2leiRGDufhNYnecoBMeR8_ev8rQ-QC8lCgfDmnTFndR68C4FY7pZNdlln45aYqg/s72-c/bg_00.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-4153355311904895866</id><published>2009-12-24T08:25:00.000-08:00</published><updated>2009-12-24T09:19:56.270-08:00</updated><title type='text'>UIColor</title><content type='html'>A &lt;a href=&quot;http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIColor_Class/Reference/Reference.html&quot;&gt;UIColor&lt;/a&gt; object represents color and sometimes opacity (alpha value). You can use UIColor objects to store color data, and during drawing you can use them to set the current fill and stroke colors.&lt;br /&gt;
Many methods in UIKit require you to specify color data using a UIColor object, and for general color needs it should be your main way of specifying colors. &lt;br /&gt;
&lt;br /&gt;
In the coming exercise, &lt;a href=&quot;http://helloxcode.blogspot.com/2009/12/change-uiviewbackgroundcolor-using.html&quot;&gt;Change UIView.backgroundColor using UIColor&lt;/a&gt;, I will create a simple iPhone application to change UIView.backgroundColor using UIColor.&lt;br /&gt;
&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/4153355311904895866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/4153355311904895866'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2009/12/uicolor.html' title='UIColor'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-8292020187797652974</id><published>2009-12-20T10:59:00.000-08:00</published><updated>2009-12-20T11:05:13.100-08:00</updated><title type='text'>Change alpha of Image View</title><content type='html'>In the last exercise, &quot;Implement a Slider&quot;, the Image View is a static image element without any interaction. In this exercise, It&#39;s alpha will be changed according to the slider value.&lt;br /&gt;
&lt;br /&gt;
Modify ImageViewViewController.h to add a IBOutlet, imageView, which will be point to the Image View.&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;
#import &amp;lt;UIKit/UIKit.h&amp;gt;

@interface ImageViewViewController : UIViewController {
 UILabel     *sliderValue;
 UIImageView *imageView;
}
@property (nonatomic, retain) IBOutlet UILabel *sliderValue;
@property (nonatomic, retain) IBOutlet UIImageView *imageView;
- (IBAction)sliderChanged:(id)sender;
@end

&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Modify ImageViewViewController.m, to update imageView.alpha according to the slider.value.&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;
#import &quot;ImageViewViewController.h&quot;

@implementation ImageViewViewController
@synthesize sliderValue; 
@synthesize imageView;
- (IBAction)sliderChanged:(id)sender { 
    UISlider *slider = (UISlider *)sender; 
    NSString *newText = [[NSString alloc] initWithFormat:@&quot;%1.2f&quot;, 
       slider.value]; 
    sliderValue.text = newText; 
 imageView.alpha = slider.value;
    [newText release]; 
} 

- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn&#39;t have a superview.
    [super didReceiveMemoryWarning];
 
    // Release any cached data, images, etc that aren&#39;t in use.
}

- (void)viewDidUnload {
 // Release any retained subviews of the main view.
 // e.g. self.myOutlet = nil;
}


- (void)dealloc {
 [sliderValue release];
 [imageView release];
    [super dealloc];
}

@end
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Connect Outlet to Image View:&lt;br /&gt;
&lt;br /&gt;
Drag the File&#39;s Owner by right button on mouse in ImageViewViewController.xib to over the Image View in View. Release and select imageView. &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmoxRdo7Gpz7xnU0PPnEKdJx57ifwKRMseKwT70LbMHid4pvLJPtVP2Ljri0sb9OcA0fbo9h6z5pypWoUKwSEbj9gzKPqSvvqynHpZEbLKaT2r3CzV2jzEuOax2YwxXX7DCDku8ouvjbI/s1600-h/imageView_alpha_17.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmoxRdo7Gpz7xnU0PPnEKdJx57ifwKRMseKwT70LbMHid4pvLJPtVP2Ljri0sb9OcA0fbo9h6z5pypWoUKwSEbj9gzKPqSvvqynHpZEbLKaT2r3CzV2jzEuOax2YwxXX7DCDku8ouvjbI/s320/imageView_alpha_17.jpg&quot; alt=&quot;Connect Outlet&quot; title=&quot;Connect Outlet&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZq3eGsaRBFaWBIbdcrbD0Mw-L2W_2jPsDGO3Df2a_kweSHEV64dTvdO3ZEWJqePKtMRKny1DBUrqEIvtWAVt0kOkdQhJY9KNmqIe5zFIvOtQqHg-48JpYOWEuEdAIIC2C3BchcbFwCes/s1600-h/imageView_alpha_18.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZq3eGsaRBFaWBIbdcrbD0Mw-L2W_2jPsDGO3Df2a_kweSHEV64dTvdO3ZEWJqePKtMRKny1DBUrqEIvtWAVt0kOkdQhJY9KNmqIe5zFIvOtQqHg-48JpYOWEuEdAIIC2C3BchcbFwCes/s320/imageView_alpha_18.jpg&quot; alt=&quot;Connect Outlet&quot; title=&quot;Connect Outlet&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Save your work, and Build and Run in Xcode.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcn8oj5GbTKL0kJr3KSI2yqWSY0mSLRygTWhkcTVxq0QpeifLekFT7_IvsLYT527biIY2M7fEvL_ZfSX9QXXazGvLtuZxwe_diCTO6JexFZD4aT3WXTDXRQO86S9u3rdHJecbHYDAnzNM/s1600-h/imageView_alpha_19.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcn8oj5GbTKL0kJr3KSI2yqWSY0mSLRygTWhkcTVxq0QpeifLekFT7_IvsLYT527biIY2M7fEvL_ZfSX9QXXazGvLtuZxwe_diCTO6JexFZD4aT3WXTDXRQO86S9u3rdHJecbHYDAnzNM/s320/imageView_alpha_19.jpg&quot; alt=&quot;Image View with alpha control&quot; title=&quot;Image View with alpha control&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/8292020187797652974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/8292020187797652974'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2009/12/change-alpha-of-image-view.html' title='Change alpha of Image View'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmoxRdo7Gpz7xnU0PPnEKdJx57ifwKRMseKwT70LbMHid4pvLJPtVP2Ljri0sb9OcA0fbo9h6z5pypWoUKwSEbj9gzKPqSvvqynHpZEbLKaT2r3CzV2jzEuOax2YwxXX7DCDku8ouvjbI/s72-c/imageView_alpha_17.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3007246010455875639.post-8834737525378334461</id><published>2009-12-20T08:19:00.000-08:00</published><updated>2009-12-20T11:09:09.300-08:00</updated><title type='text'>Implement a Slider</title><content type='html'>In this article, we are going to add a slider with a label to reflect he value of the slider, over the last exercise &quot;&lt;a href=&quot;http://helloxcode.blogspot.com/2009/12/load-image-view-in-iphone.html&quot;&gt;Load a Image View in iPhone&lt;/a&gt;&quot;.&lt;br /&gt;
&lt;br /&gt;
So we need a Action Method for the slider, sliderChanged, to receive the event. And a outlet to the label, sliderValue, to update the text according to the slider value.&lt;br /&gt;
&lt;br /&gt;
Modify ImageViewViewController.h:&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;
#import &amp;lt;UIKit/UIKit.h&amp;gt;

@interface ImageViewViewController : UIViewController {
 UILabel     *sliderValue;
}
@property (nonatomic, retain) IBOutlet UILabel *sliderValue;
- (IBAction)sliderChanged:(id)sender;
@end
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Modify ImageViewViewController.m:&lt;br /&gt;
&lt;pre style=&quot;border: 1px solid black;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;
#import &quot;ImageViewViewController.h&quot;

@implementation ImageViewViewController
@synthesize sliderValue; 
- (IBAction)sliderChanged:(id)sender { 
    UISlider *slider = (UISlider *)sender; 
    NSString *newText = [[NSString alloc] initWithFormat:@&quot;%1.2f&quot;, 
       slider.value]; 
    sliderValue.text = newText; 
    [newText release]; 
} 

- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn&#39;t have a superview.
    [super didReceiveMemoryWarning];
 
    // Release any cached data, images, etc that aren&#39;t in use.
}

- (void)viewDidUnload {
 // Release any retained subviews of the main view.
 // e.g. self.myOutlet = nil;
}


- (void)dealloc {
 [sliderValue release];
    [super dealloc];
}

@end
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Switch to Interface Builder to add the UI now, double click on ImageViewViewController.xib to start Interface Builder.&lt;br /&gt;
&lt;br /&gt;
Add a Label and Slider (both from the Inputs &amp;amp; Values under Cocoa Touch of Library) on the View pane.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitoF45cXEBmuQWF3w-l-OV3ubMOKd-NH2E46nf_B6QwsE6fpaz4dpDcXNclspR6O1Ke4ff4drd10o7yabsiE-8YMFPJWK9-6He7pAbLxqmhpP0z2z_U_17ejfGoR40mEDIdVOjDAjV7yE/s1600-h/slider_09.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Add a Label and Slider&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitoF45cXEBmuQWF3w-l-OV3ubMOKd-NH2E46nf_B6QwsE6fpaz4dpDcXNclspR6O1Ke4ff4drd10o7yabsiE-8YMFPJWK9-6He7pAbLxqmhpP0z2z_U_17ejfGoR40mEDIdVOjDAjV7yE/s320/slider_09.jpg&quot; title=&quot;Add a Label and Slider&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Now check the setting of the Slider: click on the Slider to select it, and click Tools -&amp;gt; Inspector from Interface Builder top menu.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEdVl94QZmtfniNhpZmkbGRgryb4ca09X9jsCw4VgU9GJ04EuOQDipXHuWMhd78x4DsQ_gjDMdZb9p-lzHJDAXkjrf9q9N-dQaueXakKHj8R9HvOGhwWL1D3wVS5zHazRHr8ajvhKa3nw/s1600-h/slider_10.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Slider Attributes&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEdVl94QZmtfniNhpZmkbGRgryb4ca09X9jsCw4VgU9GJ04EuOQDipXHuWMhd78x4DsQ_gjDMdZb9p-lzHJDAXkjrf9q9N-dQaueXakKHj8R9HvOGhwWL1D3wVS5zHazRHr8ajvhKa3nw/s320/slider_10.jpg&quot; title=&quot;Slider Attributes&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Accept the default value of min = 0, max  =1 and initial = 0.5...&lt;br /&gt;
&lt;br /&gt;
Now double click on the Label to change the text to 0.5, to match with the initial value of the Slider.&lt;br /&gt;
&lt;br /&gt;
Connect the Action Method of the Slider:&lt;br /&gt;
&lt;br /&gt;
click on the Slider to select it, and click Tools -&amp;gt; Connections Inspector from Interface Builder top menu.&lt;br /&gt;
&lt;br /&gt;
Drag the circle on the right of the event Value Changed, to over File&#39;s Owner in ImageViewViewController.xib, release and select sliderChanged.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDstp9h0zHivKtY_3yyOrQj-857cgcxBRkMThzxMxAWX_352ycQ7eLWPm8YOSOEsdzoFMM6HojcVM7IV6AjuY9CshdnrdhBMwUJrALpWwWbEKZ1DKvrpxI9QscEG1FbNDepO00n40yA7w/s1600-h/slider_11.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Connect the Action Method of the Slider&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDstp9h0zHivKtY_3yyOrQj-857cgcxBRkMThzxMxAWX_352ycQ7eLWPm8YOSOEsdzoFMM6HojcVM7IV6AjuY9CshdnrdhBMwUJrALpWwWbEKZ1DKvrpxI9QscEG1FbNDepO00n40yA7w/s320/slider_11.jpg&quot; title=&quot;Connect the Action Method of the Slider&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGcQQd4-kDAU4gxsUiNtOgTNJAQIT-XoFkhmi4HkXEepzUfLFHWwzg0xW1J1AtIjxyU4-CxWugesVFqwtJUOeILMV9JuaHPtOw71QMTQjkk3x8yCUvKNyubpRfa7B1uaiUXbOsNvbF4_A/s1600-h/slider_12.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Connect the Action Method of the Slider&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGcQQd4-kDAU4gxsUiNtOgTNJAQIT-XoFkhmi4HkXEepzUfLFHWwzg0xW1J1AtIjxyU4-CxWugesVFqwtJUOeILMV9JuaHPtOw71QMTQjkk3x8yCUvKNyubpRfa7B1uaiUXbOsNvbF4_A/s320/slider_12.jpg&quot; title=&quot;Connect the Action Method of the Slider&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9oEK5BnOi7bwhOMojYzHQoVCrYQxZpn2gHUBWRJSWd5SBFEIicyZIMINOV7w5bigF3JYLS88pRAW6KvJBAymwwbxQCQrB_y2y4v1eo-3z4RcRANUwl1gLzFZD43aF9PBa6aAujHMUpFY/s1600-h/slider_13.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Connect the Action Method of the Slider&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9oEK5BnOi7bwhOMojYzHQoVCrYQxZpn2gHUBWRJSWd5SBFEIicyZIMINOV7w5bigF3JYLS88pRAW6KvJBAymwwbxQCQrB_y2y4v1eo-3z4RcRANUwl1gLzFZD43aF9PBa6aAujHMUpFY/s320/slider_13.jpg&quot; title=&quot;Connect the Action Method of the Slider&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Connect the Outlet to the Label:&lt;br /&gt;
&lt;br /&gt;
Drag the File&#39;s Owner by right button on mouse  in ImageViewViewController.xib to over the Label in View. Release and select sliderValue.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjED57wJCmySDxCZeoA-a6VwkC-Cop-pfj1ZeJMW6Z2QlOJfYOUbj2y1ks6L0I7z-v77uvKrlET8eRQgiVgMhvVJHKda7Tb9XfY7G00kitb5eccidpRocz_LUv0krfm4dwFUYhXc6q4PX8/s1600-h/slider_14.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Connect the Outlet to the Label&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjED57wJCmySDxCZeoA-a6VwkC-Cop-pfj1ZeJMW6Z2QlOJfYOUbj2y1ks6L0I7z-v77uvKrlET8eRQgiVgMhvVJHKda7Tb9XfY7G00kitb5eccidpRocz_LUv0krfm4dwFUYhXc6q4PX8/s320/slider_14.jpg&quot; title=&quot;Connect the Outlet to the Label&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCODDgeCQRcK-auhRZTD7eKwSB3XckuwBjBm_ePXZjClNMO0XMcsClQV-3HMo6YwkbFot2wAKOJIKrspfkYbbqy70zsvT97e5Ij9QR8yFOGGl_MwW9Yhkh0dqpH_vpuOnWVZgUSbOADo0/s1600-h/slider_15.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Connect the Outlet to the Label&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCODDgeCQRcK-auhRZTD7eKwSB3XckuwBjBm_ePXZjClNMO0XMcsClQV-3HMo6YwkbFot2wAKOJIKrspfkYbbqy70zsvT97e5Ij9QR8yFOGGl_MwW9Yhkh0dqpH_vpuOnWVZgUSbOADo0/s320/slider_15.jpg&quot; title=&quot;Connect the Outlet to the Label&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Save your work, and Build and Run in Xcode.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivD7EJpXxbJ_SyKWs3pEU9wmi90fwT86fM2iWTlrg_ENyrRbrr1e4fY2I4roR0civffnAyibpZYLtLvkzxt1QGvm_tup48-sfGaQRUzj5YbDrMMi7coUtZSKzcD-E7_6sXOdonUlw93EA/s1600-h/slider_16.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivD7EJpXxbJ_SyKWs3pEU9wmi90fwT86fM2iWTlrg_ENyrRbrr1e4fY2I4roR0civffnAyibpZYLtLvkzxt1QGvm_tup48-sfGaQRUzj5YbDrMMi7coUtZSKzcD-E7_6sXOdonUlw93EA/s320/slider_16.jpg&quot; alt=&quot;Screenshot of iPhone with a Slider&quot; title=&quot;Screenshot of iPhone with a Slider&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br/&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/8834737525378334461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3007246010455875639/posts/default/8834737525378334461'/><link rel='alternate' type='text/html' href='http://helloxcode.blogspot.com/2009/12/implement-slider.html' title='Implement a Slider'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitoF45cXEBmuQWF3w-l-OV3ubMOKd-NH2E46nf_B6QwsE6fpaz4dpDcXNclspR6O1Ke4ff4drd10o7yabsiE-8YMFPJWK9-6He7pAbLxqmhpP0z2z_U_17ejfGoR40mEDIdVOjDAjV7yE/s72-c/slider_09.jpg" height="72" width="72"/></entry></feed>