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

<channel>
	<title>Webmaster-Source &#187; iPhone</title>
	<atom:link href="https://www.webmaster-source.com/tag/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.webmaster-source.com</link>
	<description>Useful Resources For Webmasters</description>
	<lastBuildDate>Thu, 24 Aug 2017 02:01:18 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Create Color Palettes With ColorSchemer Touch</title>
		<link>https://www.webmaster-source.com/2011/11/04/create-color-palettes-with-colorschemer-touch/</link>
		<comments>https://www.webmaster-source.com/2011/11/04/create-color-palettes-with-colorschemer-touch/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 12:26:18 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4375</guid>
		<description><![CDATA[If you do even a little bit of web or graphic design, you might have run into a cool poster or product label somewhere and thought &#8220;I like this color scheme.&#8221; ColorSchemer Touch is a neat iOS app that will help you out with those situations. If you snap a photo, it will let you [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>If you do even a little bit of web or graphic design, you might have run into a cool poster or product label somewhere and thought &#8220;I like this color scheme.&#8221; <a href="http://www.colorschemer.com/touch_info.php">ColorSchemer Touch</a> is a neat iOS app that will help you out with those situations. If you snap a photo, it will let you tap colors within it and build a color palette.</p>
<p style="text-align: center;"><a href="http://click.linksynergy.com/fs-bin/stat?id=1VLWDdrGBrI&amp;offerid=146261&amp;type=3&amp;subid=0&amp;tmpid=1826&amp;RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fus%252Fapp%252Fcolorschemer%252Fid398004720%253Fmt%253D8%2526uo%253D4%2526partnerId%253D30"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4376 imgborder" title="ColorSchemer Touch" src="//www.webmaster-source.com/wp-content/uploads/colorschemertouch.jpg" alt="" width="600" height="447" /></a></p>
<p>It also has a couple of manual color pickers, including a basic color wheel and the nifty &#8220;LiveSchemes&#8221; tool, and integration with <a href="http://www.colourlovers.com/">Colour Lovers</a>. So you can browse and save other palettes as well as creating your own. You can easily email color palettes or save them to your camera roll, as well as syncing them to Color Lovers.</p>
<p>ColorSchemer Touch is currently free on iTunes, though I believe it is usually $2.99.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2011/11/04/create-color-palettes-with-colorschemer-touch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building an iPhone App to Parse the Twitter API with NSXMLParser</title>
		<link>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/</link>
		<comments>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 11:20:58 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=4362</guid>
		<description><![CDATA[iOS has a simple event-based XML parser built in, which makes it fairly easy to do less involved parsing operations without having to load up a third-party framework. This tutorial will show you how to build a simple iPhone application that will download an XML feed from Twitter containing a user&#8217;s tweets, and then display [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>iOS has a simple event-based XML parser built in, which makes it fairly easy to do less involved parsing operations without having to load up a third-party framework. This tutorial will show you how to build a simple iPhone application that will download an XML feed from Twitter containing a user&#8217;s tweets, and then display them with a pretty UI. (You could easily adapt this to parse other XML documents, such as RSS feeds.)</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4364 imgborder" title="Displaying data from a Twitter XML feed in iOS" src="//www.webmaster-source.com/wp-content/uploads/nsxmlparser-example-fantasyfolder.jpg" alt="" width="600" height="306" /></p>
<h3><span id="more-4362"></span>Getting Started</h3>
<p>First, create a new View-based application. Give it a memorable name like &#8220;TwitterXML.&#8221;</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4365 imgborder" title="Creating a view-based application in Xcode" src="//www.webmaster-source.com/wp-content/uploads/nsxmlparser-view-based-application.png" alt="" width="600" height="471" /></p>
<p>Now that you have a clean slate to work off, let&#8217;s rename some classes. I find Xcode&#8217;s default naming scheme a bit silly, with the way it prepends the project name to each file. I think the Application Delegate should be called, simply, <em>AppDelegate.m</em> instead of the needlessly long <em>TwitterXMLAppDelegate.m.</em> However, you can&#8217;t just rename the file to whatever your preference is, as that would break things.</p>
<p>You can rename a class project-wide, file and all, by using the Refactoring tool. You can call it up by right-clicking on the class name in the implementation file and choosing &#8220;Refactoring&#8221; from the resulting menu.</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4366" title="Renaming classes with the Refactor tool" src="//www.webmaster-source.com/wp-content/uploads/nsxmlparser-renaming-classes-with-refactor-tool.png" alt="" width="600" height="352" /></p>
<p>This renaming business is entirely optional as far as this tutorial goes, but it&#8217;s worth know how to do. Imagine if you made a typo in a class name and didn&#8217;t realize it until after you had already referenced it in a few places. It&#8217;s nice to have an automated fix.</p>
<h3>Setting Up the Header File</h3>
<p>Most of our code is going to go in the View controller, named <em>TweetViewController</em> in my case. Switch to the corresponding .h file and we can start setting up properties and whatnot.</p>
<p>First, we need to implement the NSXMLParserDelegate protocol so our class can respond to NSXMLParser delegate methods. This is easily done by adding <em>NSXMLParserDelegate</em> to the <em>@interface</em> line, like so:</p>
<pre class="brush: cpp; title: ; notranslate">
@interface TweetViewController : UIViewController &lt;NSXMLParserDelegate&gt; {
</pre>
<p>Now we need to declare some variables and other objects in the interface block. We need a string to hold the name of the Twitter user whose profile we will be accessing, a mutable array to hold the statuses we&#8217;ve pulled from the parser and a few that are used to hold data temporarily during the parsing process. Also, we need a few IBOutlets so we can update the View once we finish reading the XML data.</p>
<pre class="brush: cpp; title: ; notranslate">
@interface TweetViewController : UIViewController &lt;NSXMLParserDelegate&gt; {
NSString *twitterUser;
NSMutableArray *statuses;
NSString *currentElement;
NSMutableDictionary *currentElementData;
NSMutableString *currentElementString;
IBOutlet UIImageView *backgroundImage;
IBOutlet UILabel *tweetLabel;
IBOutlet UIImageView *avatar;
}
</pre>
<p>Of course, we need to make these objects into properties. This means adding a few property declarations after the interface block ends.</p>
<pre class="brush: cpp; title: ; notranslate">
@property (nonatomic, retain) NSString *twitterUser;
@property (nonatomic, retain) NSMutableArray *statuses;
@property (nonatomic, retain) NSString *currentElement;
@property (nonatomic, retain) NSMutableDictionary *currentElementData;
@property (nonatomic, retain) NSMutableString *currentElementString;
@property (nonatomic, retain) UIImageView *backgroundImage;
@property (nonatomic, retain) UILabel *tweetLabel;
@property (nonatomic, retain) UIImageView *avatar;
</pre>
<p>And then you need to synthesize them in the .m file by adding the following line right after the @implementation line:</p>
<pre class="brush: cpp; title: ; notranslate">
@synthesize twitterUser, statuses, currentElement, currentElementData, currentElementString, backgroundImage, tweetLabel, avatar;
</pre>
<p>Now that that&#8217;s out of the way, we can get to the interesting part.</p>
<h3>Setting Up the Parser</h3>
<p>The first method in the View controller is &lt;em&gt;viewDidLoad&lt;/em&gt;, which fires as soon as the View as loaded. (Subtle, isn&#8217;t it?) We will be putting our initialization stuff in there. Basically, we just need to ready our properties, set the Twitter username and start the parser.</p>
<pre class="brush: cpp; title: ; notranslate">
- (void)viewDidLoad {
[super viewDidLoad];
statuses = [[NSMutableArray alloc] init];
currentElement = [[NSString alloc] init];
currentElementData = [[NSMutableDictionary alloc] init];
currentElementString = [[NSMutableString alloc] init];
twitterUser = [NSString stringWithString:@&quot;collis&quot;];
[self parseXMLForUser:twitterUser];
}
</pre>
<p>After the first arrays and dictionaries are initialized, the <em>twitterUser</em> string is set to the username of the Twitter account we want the app to pull the latest statuses from. I&#8217;m using <a href="http://twitter.com/#!/collis">Collis</a>, one of the co-founders of <a href="http://envato.com/">Envato</a>, as an example. You could put any user you want there, so long as they have a cool-looking background on their profile!</p>
<p>The last line calls the <em>parseXMLForUser:</em> method and passes the <em>twitterUser</em> string along with it. We will work on that part next.</p>
<p>The <em>parseXMLForUser:</em> method is responsible for setting up the parser, as well as building the Twitter API URL.</p>
<pre class="brush: cpp; title: ; notranslate">
- (void)parseXMLForUser:(NSString *)user {

//Build the Twitter API URL by combining the user with the rest of the URL
NSString *urlString = [NSString stringWithFormat:@&quot;http://twitter.com/statuses/user_timeline/%@.xml?count=3&quot;, user];
NSURL *url = [NSURL URLWithString:urlString];

//Create an instance of NSXMLParser and download the XML data from the URL
NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL:url];

//Set this class as its own delegate so we can process NSXMLParser callbacks
[parser setDelegate:self];

//Disable namespace support and other things we don't really need
[parser setShouldProcessNamespaces:NO];
[parser setShouldReportNamespacePrefixes:NO];
[parser setShouldResolveExternalEntities:NO];

[parser parse]; //Go go gadget XML parser...

[parser release];

}
</pre>
<p>The first part of the method should look familiar to anyone who has worked with C or Java before. It takes our <em>user</em> argument (which contains the text of <em>twitterUser</em>) and splices it into the URL string, just before the <em>.xml</em> part. Cocoa expects URLs to be of the NSURL object type, we create a new one of those and pass it <em>urlString</em>.</p>
<p>After that is done, we create a new instance of the NSXMLParser class and nickname it &#8220;parser.&#8221; We also pass it the new URL object, which it will use to download the contents it finds there at runtime. Next we set the parser&#8217;s delegate to <em>self</em>, or the current class. The next three lines turn off some features we don&#8217;t really need. Finally, we kick the parser into action and leave a <em>[parser release]</em> command to clean up after it&#8217;s done.</p>
<p>That was simple, wasn&#8217;t it? Sadly, that was only the beginning. In order for the parser to, well, <em>parse</em> we still need to implement the delegate methods for NSXMLParser. And we need to make a spiffy UI.</p>
<h3>Building the Parser</h3>
<p>NSXMLParser is what is called an event-based parser. This means it loops around, searching a document for anything that looks like an XML tag. When it finds one, it raises an event. Basically it says &#8220;I found an opening tag named &#8216;something'&#8221; and leaves you to deal with it. The parser does the same thing with ending tags and the text between them. We have to implement delegate methods to handle these events and save the data they find.</p>
<p>Let&#8217;s start with a couple of simple ones.</p>
<pre class="brush: cpp; title: ; notranslate">
- (void)parserDidStartDocument:(NSXMLParser *)parser {
NSLog(@&quot;The XML document is now being parsed.&quot;);
}

- (void)parser:(NSXMLParser *)parser parseErrorOccurred:(NSError *)parseError {
NSLog(@&quot;Parse error: %d&quot;, [parseError code]);
}
</pre>
<p>The first method fires when NSXMLParser starts to parse the document. For this application, there isn&#8217;t really anything that we need to do at that point. Putting an NSLog there is great for debugging, though. (If your app is crashing, it&#8217;s helpful to know whether it&#8217;s getting to that step or not.) I&#8217;m sure you can guess what the <em>parseErrorOccurred</em> method does. (It logs an error code if the XML document is malformed or if, for some other reason, the parser could not process it.)</p>
<p>Moving on, we have a method that is called when the parser finds an opening XML tag.</p>
<pre class="brush: cpp; title: ; notranslate">
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict {

//Store the name of the element currently being parsed.
currentElement = [elementName copy];

//Create an empty mutable string to hold the contents of elements
currentElementString = [NSMutableString stringWithString:@&quot;&quot;];

//Empty the dictionary if we're parsing a new status element
if ([elementName isEqualToString:@&quot;status&quot;]) {
[currentElementData removeAllObjects];
}

}
</pre>
<p>This one is a bit more complicated. When it&#8217;s called, its arguments are populated with information that the parser found out about the element currently being parsed. It&#8217;s name is what we care about, primarily. Using the properties we created earlier, the method keeps track of the element currently being parsed (we need to know its name in other methods) and whatever is <em>inside</em> the element (between the opening and closing tag). The conditional statement at the end empties our dictionary every time the parser moves on to a new &lt;status&gt; element, as we will have already copied its contents to the statuses array.</p>
<p>The next delegate method takes any characters found inside an XML element and stores it in the <em>currentElementString</em> property for later.</p>
<pre class="brush: cpp; title: ; notranslate">
- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string {
//Take the string inside an element (e.g. &lt;tag&gt;string&lt;/tag&gt;) and save it in a property
[currentElementString appendString:string];
}
</pre>
<p>And finally, the penultimate method. This one contains the real meat of the parser. It is called whenever NSXMLParser comes across a closing XML tag. And so, it serves as a good place to put most of the data-saving logic.</p>
<pre class="brush: cpp; title: ; notranslate">
- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName {

//If we've hit the &lt;/status&gt; tag, store the data in the statuses array
if ([elementName isEqualToString:@&quot;status&quot;]) {
[statuses addObject:[currentElementData copy]];
}

//Trim any extra spaces and newline characters from around currentElementString
NSString *string = [currentElementString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];

//Store the status data in the currentElementData dictionary
if ([currentElement isEqualToString:@&quot;created_at&quot;]) {
[currentElementData setObject:string forKey:@&quot;created_at&quot;];
} else if ([currentElement isEqualToString:@&quot;text&quot;]) {
[currentElementData setObject:string forKey:@&quot;text&quot;];
} else if ([currentElement isEqualToString:@&quot;retweeted&quot;]) {
[currentElementData setObject:string forKey:@&quot;retweeted&quot;];
} else if ([currentElement isEqualToString:@&quot;id&quot;]) {
[currentElementData setObject:string forKey:@&quot;id&quot;];
} else if ([currentElement isEqualToString:@&quot;profile_image_url&quot;]) {
[currentElementData setObject:string forKey:@&quot;profile_image_url&quot;];
} else if ([currentElement isEqualToString:@&quot;profile_background_image_url&quot;]) {
[currentElementData setObject:string forKey:@&quot;profile_background_image_url&quot;];
} else if ([currentElement isEqualToString:@&quot;profile_link_color&quot;]) {
[currentElementData setObject:string forKey:@&quot;profile_link_color&quot;];
}

}
</pre>
<p>The first code chunk saves the contents of the <em>currentElementData</em> dictionary to the <em>statuses</em> array if, and only if, the ending tag being processed currently is &lt;/status&gt;. If you remember from before, <em>currentElementData</em> will be emptied the next time the <em>didStartElement</em> method is called. Otherwise, the block will be skipped and the application will handle the tasks it needs to run for child elements of &lt;status&gt;.</p>
<p>After stripping out extraneous spaces and newline characters from either side of <em>currentElementString</em>, so we don&#8217;t end up with weird output, we have a rather long if/else if block. This checks whether the element being parsed is one we want to save (e.g. &#8220;text&#8221; or &#8220;profile_image_url&#8221;) and if it is, it adds it to the element data dictionary.</p>
<p>The code may seem a bit strange at first, but it should make more sense after you become more familiar with it.</p>
<p>And now, for the last delegate method. This one fires when the document has finished parsing. This is the place to launch any operations we want to be started after we have our data. As you can see below, logging the <em>statuses</em> array to the console and then calling a method to display that data is what we will be doing here.</p>
<pre class="brush: cpp; title: ; notranslate">
- (void)parserDidEndDocument:(NSXMLParser *)parser {
//Document has been parsed. It's time to fire some new methods off!
NSLog(@&quot;%@&quot;, statuses);
[self updateView];
}
</pre>
<h3>The View</h3>
<p>After all that code, let&#8217;s work on the interface. Double-click the <em>TweetViewController.xib</em> file (or whatever your View XIB is called) in the Xcode sidebar to open it in Interface Builder. Now that your screen is sufficiently cluttered with windows, you want to drag a UIImageView from the Library window into your View canvas. Make sure that it is sized to fit the whole available area.</p>
<p>Of course, the Image View won&#8217;t be much use to us unless we link it with the controller. Right-click on the File&#8217;s Owner icon and drag the little rubberband/wire thing from the <em>backgroundImage</em> Outlet over to the UIImageView and drop it. The File&#8217;s Owner overlay window should update to show the Image View as being connected to <em>backgroundImage</em>.</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4367 imgborder" title="Adding a UIImageView in Interface Builder" src="//www.webmaster-source.com/wp-content/uploads/nsxmlparser-ib-adding-uiimageview.png" alt="" width="600" height="440" /></p>
<p>I think this app would be better if it used a horizontal orientation, don&#8217;t you? Click the little arrow icon in the upper right corner of the View canvas. Interface Builder should automagically resize the Image View inside it to still fill the View. Save the XIB file out and switch back to Xcode. Now we have to configure the application to use a landscape orientation instead of the default portrait one.</p>
<p>Inside your controller class there should be a method called <em>shouldAutorotateToInterfaceOrientation</em>. It&#8217;s commented out by default. Uncomment it and change the interfaceOrientation to <em>UIInterfaceOrientationLandscapeLeft</em>. It should look like this:</p>
<pre class="brush: cpp; title: ; notranslate">
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
</pre>
<p>Back in Interface Builder, drop in a new UIImageView. We won&#8217;t be hooking this one up to an IBOutlet. Instead, we will set the image to the word bubble image I made (it&#8217;s in the project file), resize the view to be the same point-width as the image (375&#215;208) and position it neatly over the background image view. I also lowered the opacity a bit, just because I liked the effect.</p>
<p>Now we need a way to display the contents of the latest tweet. So drag a UILabel onto the View canvas and resize it to fit nicely over the word bubble graphic. Turn the &#8220;# Lines&#8221; setting up to five or so, set the font size to something that looks legible and change the &#8220;Line Breaks&#8221; option to &#8220;Word Wrap. Then wire it up to the <em>tweetLabel</em> IBOutlet, like you did with the UIImageView.</p>
<p><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4368" title="Adding the Label" src="//www.webmaster-source.com/wp-content/uploads/nsxmlparser-adding-the-label.png" alt="" width="600" height="421" /></p>
<p>Ready to tie everything together? Switch back to Xcode and add one last method to the controller class.</p>
<pre class="brush: cpp; title: ; notranslate">
- (void)updateView {

//Select the latest tweet
NSDictionary *latestTweet = [statuses objectAtIndex:0];

//Set the tweet label
[tweetLabel setText:[latestTweet objectForKey:@&quot;text&quot;]];

//Set the background image after downloading it.
NSString *urlString = [latestTweet objectForKey:@&quot;profile_background_image_url&quot;];
NSURL *url = [NSURL URLWithString:urlString];
NSData *data = [NSData dataWithContentsOfURL:url];
UIImage *background = [[UIImage alloc] initWithData:data];
[backgroundImage setImage:background];
backgroundImage.contentMode = UIViewContentModeScaleAspectFill;

}
</pre>
<p>While it looks nearly as intimidating as the NSXMLParser <em>didEndElement</em> delegate method, it&#8217;s actually quite a bit simpler. The first line gets the newest tweet from the <em>statuses</em> array, the =<em>[tweetLabel setText:&#8230;]</em>= line updates the UILabel with the text of the message, and the last part changes the background image behind the word bubble to be the same as the Twitter user&#8217;s profile background.</p>
<p>That last part needs the most explanation. Before we can display the image (which is what the <em>setImage</em> line does) we have to download it first. Taking the <em>urlString</em>, which of course is a string containing the web address where the image can be found, we convert it to a NSURL object, which is named <em>url</em>. We create a new NSData object and use it&#8217;s <em>dataWithContentsOfURL</em> method to download the image. (Cocoa requires that URLs used with it&#8217;s objects be of the NSURL class.) Next we initialize a UIImage object with the NSData object and set it as the image in the UIImageView named backgroundImage. Oh, and we set the content mode to <em>UIViewContentModeScaleAspectFill</em> so it&#8217;s not squished funny.</p>
<p>Now if you build and run the app, you should get something like this:</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4369 imgborder" title="A styled tweet in the iOS app" src="//www.webmaster-source.com/wp-content/uploads/nsxmlparser-first-demo-tweet-on-bg.png" alt="" width="600" height="394" /></p>
<p>Before we free up our allocated memory and finish the app up, let&#8217;s add one more thing: an avatar field! Switch back to Interface Builder and add a new UIImageView. Resize it to 52&#215;52 or so and wire it up to the &#8220;avatar&#8221; IBOutlet. Re-using the code from the background image bit, we can quickly modify it for the avatar.</p>
<pre class="brush: cpp; title: ; notranslate">
//Set the avatar image after downloading it.
NSString *avatarUrlString = [latestTweet objectForKey:@&quot;profile_image_url&quot;];
NSURL *avatarUrl = [NSURL URLWithString:avatarUrlString];
NSData *avatarData = [NSData dataWithContentsOfURL:avatarUrl];
UIImage *avatarImage = [[UIImage alloc] initWithData:avatarData];
[avatar setImage:avatarImage];
avatar.contentMode = UIViewContentModeScaleAspectFill;
</pre>
<p>That goes in the <em>updateView</em> method, after everything else.</p>
<p>Now, before we can say the application is finished, there is one thing that needs to be done. Any memory we specifically allocated should be released. It&#8217;s not a huge deal in a single-view app, as it will be forcefully freed up on exit, but it&#8217;s a good habit to get into. (In more complicated applications, you can expect to see frequent crashes if you don&#8217;t release objects when you&#8217;re done with them.) It&#8217;s easy to do. For every object we explicitely <em>alloc</em> or <em>retain</em>, we have to <em>release</em> somewhere. The <em>dealloc</em> method is called when the application quits in this case, so we put most of our <em>release</em> statements there.</p>
<p>You can learn more about iOS memory management in <a href="http://mobile.tutsplus.com/freebies/qa-sessions/qa-session-3-ios-memory-management-and-best-practices/">this screencast</a>.</p>
<pre class="brush: cpp; title: ; notranslate">
- (void)dealloc {
[twitterUser release];
[statuses release];
[currentElement release];
[currentElementData release];
[currentElementString release];
[backgroundImage release];
[tweetLabel release];
[avatar release];
[super dealloc];
}
</pre>
<p>And we&#8217;re done!</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-4370 imgborder" title="And we're done!" src="//www.webmaster-source.com/wp-content/uploads/nsxmlparser-final.png" alt="" width="505" height="342" /></p>
<h3>Additional Challenge</h3>
<p>Want to add to this sample application? Try making the following change: Use an <a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSTimer_Class/Reference/NSTimer.html">NSTimer</a> to cycle through the items in the <em>statuses</em> array and update the View accordingly. Most of the groundwork has been laid for you already.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2011/10/24/building-an-iphone-app-to-parse-the-twitter-api-with-nsxmlparser/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>TestFlight: iOS Beta Testing on the Fly</title>
		<link>https://www.webmaster-source.com/2011/02/23/testflight-ios-beta-testing-on-the-fly/</link>
		<comments>https://www.webmaster-source.com/2011/02/23/testflight-ios-beta-testing-on-the-fly/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 11:43:36 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Services and Tools]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=3917</guid>
		<description><![CDATA[If you&#8217;ve ever tried a little iPhone development out, you might have run into an inconvenient problem. Apple uses a code signing system on iOS devices to ensure that software that ends up on them has either passed through the App Store (and has thus been checked for malware-like behavior) or has been assigned to [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>If you&#8217;ve ever tried a little iPhone development out, you might have run into an inconvenient problem. Apple uses a code signing system on iOS devices to ensure that software that ends up on them has either passed through the App Store (and has thus been checked for malware-like behavior) or has been assigned to the unique device ID using an ad-hoc distribution. This is generally good for the end user, but it&#8217;s a real pain to distribute betas.</p>
<p>Enter <a href="http://testflightapp.com/">TestFlight</a>.</p>
<p style="text-align: center;"><a href="http://testflightapp.com/"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-3918 imgborder" title="TestFlight" src="//www.webmaster-source.com/wp-content/uploads/testflight-homepage.jpg" alt="" width="600" height="326" /></a></p>
<p>I&#8217;m not sure how it does it, but TestFlight takes the pain out of iOS beta distribution. You just build an app, upload it, enter some email addresses, and TestFlight magically takes care of the rest.</p>
<p>When a beta tester gets an email from TestFlight, they register their device by logging into the TestFlight website on their iOS device. It installs a provisioning profile over the air, and lets them access your uploaded application builds in the same way.</p>
<p>However it does its magic, TestFlight is an indispensable tool for developers.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2011/02/23/testflight-ios-beta-testing-on-the-fly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The iPhone Comes to Verizon — For Real This Time</title>
		<link>https://www.webmaster-source.com/2011/01/12/the-iphone-comes-to-verizon-for-real-this-time/</link>
		<comments>https://www.webmaster-source.com/2011/01/12/the-iphone-comes-to-verizon-for-real-this-time/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 11:23:53 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[cellular]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=3840</guid>
		<description><![CDATA[The iPhone is finally coming to Verizon in the United States. No, it&#8217;s not April Fools&#8217; Day. The blogosphere is overflowing with news about the just-announced end of AT&#38;T&#8217;s exclusivity. By February 10 you should be able to get your hands on one. (Verizon, being a CDMA carrier instead of GSM, requires a different cellular [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>The iPhone is finally coming to Verizon in the United States. No, it&#8217;s not April Fools&#8217; Day. The blogosphere is overflowing with news about the just-announced end of AT&amp;T&#8217;s exclusivity. By February 10 you should be able to get your hands on one. (Verizon, being a CDMA carrier instead of GSM, requires a different cellular radio in the device, so if you&#8217;re an AT&amp;T customer you will have to buy a whole new phone.)</p>
<p>You can read about that sort of stuff elsewhere though. Apparently Apple has been testing their CDMA iPhone since 2008, and finally has a chance to roll out a new feature in iOS 4.2.5 that (I assume) AT&amp;T wasn&#8217;t too keen on having: portable hotspot. You can flip a toggle switch in the Settings app and broadcast a WiFi hotspot for up to five devices.</p>
<blockquote><p>You can also set the Personal Hotspot up to use Bluetooth or USB.  Obviously, the latter two are for one-to-one connections. Essentially,  it looks like this replaces the “tethering” option found in the current  iOS build. An Apple rep I talked to believed this was the case as well.</p></blockquote>
<p>Anyway, I won&#8217;t rehash all of the gory details here. You can read up on them from my sources.</p>
<h3>Further Reading</h3>
<ul>
<li><a href="http://iphone.appstorm.net/general/hardware-news/its-official-verizon-iphone-coming-in-february/">It’s Official: Verizon iPhone Coming in February</a></li>
<li><a href="http://www.macstories.net/news/its-official-the-iphone-4-comes-to-verizon/">It’s Official: The iPhone 4 Comes to Verizon</a></li>
<li><a href="http://techcrunch.com/2011/01/11/verizon-iphone-personal-hotspot/">How Personal Hotspot Works On The Verizon iPhone (Pictures)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2011/01/12/the-iphone-comes-to-verizon-for-real-this-time/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apple iAd Producer Lets You Design HTML5 Ads Visually</title>
		<link>https://www.webmaster-source.com/2010/12/22/apple-iad-producer-lets-you-design-html5-ads-visually/</link>
		<comments>https://www.webmaster-source.com/2010/12/22/apple-iad-producer-lets-you-design-html5-ads-visually/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 11:57:05 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Ads]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[iAd]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Monetization]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=3791</guid>
		<description><![CDATA[Apple has just launched a new OS X application intended for advertisers looking to run ads on Apple&#8217;s iAd network. The software package, called iAd Producer, gives you an iLife-style tool to visually design interactive HTML5 ads. The iAd Producer displays a chart giving an overview of the ad bundle, allowing you to double-click the [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Apple has just launched a new OS X application intended for advertisers looking to run ads on Apple&#8217;s iAd network. The software package, called <a href="http://developer.apple.com/iad/iadproducer/">iAd Producer</a>, gives you an iLife-style tool to visually design interactive HTML5 ads.</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-3792 imgborder" title="Apple iAd Producer Intro" src="//www.webmaster-source.com/wp-content/uploads/apple-iad-producer.jpg" alt="" width="600" height="335" /></p>
<p>The iAd Producer displays a chart giving an overview of the ad bundle, allowing you to double-click the different elements and make changes to them. You can drop in graphics and videos, choose from the common page types used in ads (such as photo and video galleries, wallpaper pickers, coverflow views, etc.) and then preview the final ad in the iPhone simulator. The application also allows you to build iAds for the iPad.</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-3793 imgborder" title="Apple iAd Producer" src="//www.webmaster-source.com/wp-content/uploads/apple-iad-producer-tree.jpg" alt="" width="600" height="375" /></p>
<p>It&#8217;s a great idea, I think. It may mean more advertisers will join the iAd network, since they will have to invest less resources into their ad in order to get started. A lot of big-name brands probably don&#8217;t have serious web developers on their marketing teams.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2010/12/22/apple-iad-producer-lets-you-design-html5-ads-visually/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Infinity Blade iPhone Game Sells $1.6 Million in Five Days</title>
		<link>https://www.webmaster-source.com/2010/12/15/infinity-blade-iphone-game-sells-1-6-million-in-five-days/</link>
		<comments>https://www.webmaster-source.com/2010/12/15/infinity-blade-iphone-game-sells-1-6-million-in-five-days/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 11:32:56 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Monetization]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=3769</guid>
		<description><![CDATA[Just last week the much-anticipated Infinity Blade iPhone game from Epic Games was released. The first to use the new iOS port of the Unreal Engine, it&#8217;s stunning graphics have been a major selling point for the game. The big news is just how amazingly successful the game has been thus far. In its first [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Just last week the much-anticipated <em><a href="http://click.linksynergy.com/fs-bin/stat?id=1VLWDdrGBrI&amp;offerid=146261&amp;type=3&amp;subid=0&amp;tmpid=1826&amp;RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fus%252Fapp%252Finfinity-blade%252Fid387428400%253Fmt%253D8%2526uo%253D4%2526partnerId%253D30">Infinity Blade</a></em> iPhone game from Epic Games was released. The first to use the new iOS port of the Unreal Engine, it&#8217;s stunning graphics have been a major selling point for the game.</p>
<p>The big news is just how amazingly successful the game has been thus far. In its first five days, it earned a stunning $1.64 million. Quite an achievement, breaking <em>Cut the Rope&#8217;s</em> record of $1 million in its first ten days to boot.</p>
<blockquote><p>At $5.99 per copy, the sword-fighting app will thus have mustered over  $1.64 million in sales for publisher Epic, whose studio Chair  Entertainment created what is widely-hailed as one of the most  technically impressive iOS titles to date.</p></blockquote>
<p><a href="http://www.gamesindustry.biz/articles/2010-12-13-epics-infinity-blade-turns-over-USD1-6m-in-5-days">According to GamesIndustry.biz</a>, at least 274,000 copies of the app were sold to produce that figure.</p>
<p>This really shows how viable a platform iOS and the App Store are. There is a lot of money to be made, and the barrier for entry is very low in comparison to most other gaming platforms. At last, indie developers are finally on a fairly even playing field with the larger game companies.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2010/12/15/infinity-blade-iphone-game-sells-1-6-million-in-five-days/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Envato Expands AppStorm Blog Network</title>
		<link>https://www.webmaster-source.com/2010/12/13/envato-expands-appstorm-blog-network/</link>
		<comments>https://www.webmaster-source.com/2010/12/13/envato-expands-appstorm-blog-network/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 11:04:16 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Blogs]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Envato]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=3756</guid>
		<description><![CDATA[Envato has just opened up two new blogs in their AppStorm network. Adding to the existing Mac, iPhone and Web app blogs, the new Windows and Android sites deviate the most from the network&#8217;s current audience. Some readers have  voiced concerns that the new sites betray the audience and make the network too generic. (Personally, [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Envato has just <a href="http://mac.appstorm.net/general/appstorm-news/announcing-two-new-appstorm-sites/">opened up two new blogs</a> in their <a href="http://appstorm.net/">AppStorm</a> network. Adding to the existing Mac, iPhone and Web app blogs, the new Windows and Android sites deviate the most from the network&#8217;s current audience. Some readers have  voiced concerns that the new sites betray the audience and make the network too generic. (Personally, I just say they should subscribe to the individual AppStorm blogs that interest them and leave the Windows one to the unenlightened.)</p>
<p>Also, the AppStorm main page has received a redesign. It&#8217;s simple, matches the rest of the site, and I like the icons along the top.</p>
<p style="text-align: center;"><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-3757 imgborder" title="New AppStorm Front Page" src="//www.webmaster-source.com/wp-content/uploads/appstorm-new-font-page.jpg" alt="" width="600" height="460" /></p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2010/12/13/envato-expands-appstorm-blog-network/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WPCandy Releases iPhone App With Interesting “Reverse Launch” Deal</title>
		<link>https://www.webmaster-source.com/2010/12/08/wpcandy-releases-iphone-app-with-interesting-reverse-launch-deal/</link>
		<comments>https://www.webmaster-source.com/2010/12/08/wpcandy-releases-iphone-app-with-interesting-reverse-launch-deal/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 11:02:42 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Monetization]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=3752</guid>
		<description><![CDATA[WPCandy, the prolific WordPress blog, has just released a new iPhone app for easy mobile access to their content. The interesting part isn&#8217;t the app so much as their &#8220;reverse launch&#8221; deal. The app costs $0.99 normally, but they are charging $5.99 instead for the first few weeks. They&#8217;re sort of doing what Apple did [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>WPCandy, the prolific WordPress blog, has just <a href="http://wpcandy.com/announces/the-wpcandy-iphone-app">released a new iPhone app</a> for easy mobile access to their content. The interesting part isn&#8217;t the app so much as their &#8220;reverse launch&#8221; deal.</p>
<p>The app costs $0.99 normally, but they are charging $5.99 instead for the first few weeks. They&#8217;re sort of doing what Apple did with the original iPhone: dropping the price after the early adopters made them enough money to pay for the R&amp;D.</p>
<blockquote><p><strong>Why would we do this?</strong> We want to give you, the  awesome WPCandy readers and community members, the chance to support  what we’re doing here. We run an ad-free site, with regular, high  quality content containing zero affiliate links. We publish things that  are of community interest (tutorials, comprehensive WordPress news,  editorials) and we do it <em>every single day</em>. Many have called us crazy for <a title="WPCandy is ad free" href="http://wpcandy.com/is/advertisement-free">not allowing advertising</a>. They say we can’t make any money without ads. They say a community-driven site just doesn’t work.</p>
<p>We want to prove them wrong.</p></blockquote>
<p>I still think they are a bit crazy for their no-advertising policy. (There&#8217;s nothing wrong with some minimal advertising, and companies like <a href="http://fusionads.net/">Fusion Ads</a> help publishers make some good money by selling <em>less</em> ads.) Not so much that they don&#8217;t run ads, but their subscription to the pervasive attitude that ads are <em>bad.</em> However, I do like the reverse-launch idea. I don&#8217;t know if just any developer could get away with it, though. It takes a certain critical mass of users.</p>
<p><a href="http://wpcandy.com/announces/the-wpcandy-iphone-app">Introducing the WPCandy iPhone app, and our reverse-launch deal</a> [WPCandy]</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2010/12/08/wpcandy-releases-iphone-app-with-interesting-reverse-launch-deal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Designing for iPhone 4 Retina Display</title>
		<link>https://www.webmaster-source.com/2010/11/24/designing-for-iphone-4-retina-display/</link>
		<comments>https://www.webmaster-source.com/2010/11/24/designing-for-iphone-4-retina-display/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 11:27:04 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Smashing Magazine]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=3721</guid>
		<description><![CDATA[With the iPhone 4, and later the fourth-generation iPod Touch, Apple introduced a much higher density of screen for their mobile devices. The Retina Display, has the same dimensions as its predecessors, but there are twice as many pixels per inch. This makes for sharp text, crisp images, and an overall better user experience. Looking [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>With the iPhone 4, and later the fourth-generation iPod Touch, Apple introduced a much higher density of screen for their mobile devices. The <em>Retina Display</em>, has the same dimensions as its predecessors, but there are twice as many pixels per inch. This makes for sharp text, crisp images, and an overall better user experience. Looking at two iPhones, the new and the old, side-by-side, you can really see the difference.</p>
<p>But this change presents a new challenge for designers of iOS apps. Now you need to have two versions of each image. You need to have a higher-resolution version for the newer devices, and a lower-resolution one for older models.</p>
<p>Smashing Magazine has a great new article on <a href="http://www.smashingmagazine.com/2010/11/17/designing-for-iphone-4-retina-display-techniques-and-workflow/">designing for the Retina Display</a>. It covers the basics, such as how you need two images, one at 163 ppi and one at 326 ppi. (The higher resolution one is saved as MyImage@2x.png instead of MyImage.png and iOS chooses which one to used based on device compatibility.) You can find out about that anywhere online, though. The best part of the article is that it gives you some design advice for retina graphics. It suggests drawing with vectors and layer styles instead of plain bitmaps when you can, and the like.</p>
<blockquote><p>I usually <strong>draw simple elements directly in Photoshop</strong> using the  Rectangle or Rounded Rectangle Tool. Draw circles using the  Rounded  Rectangle Tool with a large corner radius, because the ellipse  tool  can’t snap to pixel. Layer groups can have vector masks too, which  is  handy for complex compositing (option-drag a mask from another layer  to  create a group mask).</p>
<p>More complex objects get drawn in Adobe Illustrator to the exact pixel size, and then pasted into Photoshop as a shape layer.</p></blockquote>
<p>I have an additional tip while we&#8217;re on the topic. When I create graphics for iOS, I design for the Retina Display first. Then I scale the image <em>down</em> for the older devices. It&#8217;s quick, it&#8217;s easy, and I can use all the bitmaps I want.</p>
<p><a href="http://www.smashingmagazine.com/2010/11/17/designing-for-iphone-4-retina-display-techniques-and-workflow/">Designing for iPhone 4 Retina Display: Techniques and Workflow</a> [Smashing Magazine]</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2010/11/24/designing-for-iphone-4-retina-display/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Optimize a Website for iPhone Using Only CSS</title>
		<link>https://www.webmaster-source.com/2010/11/19/optimize-a-website-for-iphone-using-only-css/</link>
		<comments>https://www.webmaster-source.com/2010/11/19/optimize-a-website-for-iphone-using-only-css/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 11:21:32 +0000</pubDate>
		<dc:creator><![CDATA[Matt]]></dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://www.webmaster-source.com/?p=3714</guid>
		<description><![CDATA[Lots of websites now have mobile versions that optimize their designs for speed and ease-of-use on the iPhone, reducing scripts and designing for the device&#8217;s smaller screen. They usually use some sort of browser detection script that loads a different template on the mobile device. Sahil Lavingia, creator of the Dayta app, has a quick [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Lots of websites now have mobile versions that optimize their designs for speed and ease-of-use on the iPhone, reducing scripts and designing for the device&#8217;s smaller screen. They usually use some sort of browser detection script that loads a different template on the mobile device.</p>
<p>Sahil Lavingia, creator of the <a href="http://daytaapp.com/">Dayta</a> app, has a quick tutorial on how to <a href="http://sahillavingia.com/blog/2010/11/13/optimize-a-website-for-iphone-in-10-minutes/">optimize your website for iPhone in 10 minutes</a>&#8230;using only CSS.</p>
<p>I haven&#8217;t had a chance to try it out for myself, but it looks fairly simple.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.webmaster-source.com/2010/11/19/optimize-a-website-for-iphone-using-only-css/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.webmaster-source.com @ 2026-04-29 11:43:45 by W3 Total Cache
-->