<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Commenti a: TIPS#001 &#8211; Ridurre la dimensione degli URL sfruttando tr.im</title>
	<atom:link href="http://www.devapp.it/wordpress/tips001-ridurre-la-dimensione-degli-url-sfruttando-tr-im.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.devapp.it/wordpress/tips001-ridurre-la-dimensione-degli-url-sfruttando-tr-im.html</link>
	<description>Impara a programmare iPhone e iPad</description>
	<lastBuildDate>Fri, 27 Jan 2012 17:05:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Di: bebus77</title>
		<link>http://www.devapp.it/wordpress/tips001-ridurre-la-dimensione-degli-url-sfruttando-tr-im.html/comment-page-1#comment-917</link>
		<dc:creator>bebus77</dc:creator>
		<pubDate>Tue, 16 Feb 2010 23:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.devapp.it/wordpress/?p=2115#comment-917</guid>
		<description>di nulla ! e&#039; un piacere</description>
		<content:encoded><![CDATA[<p>di nulla ! e&#8217; un piacere</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Matthew</title>
		<link>http://www.devapp.it/wordpress/tips001-ridurre-la-dimensione-degli-url-sfruttando-tr-im.html/comment-page-1#comment-916</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Tue, 16 Feb 2010 19:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.devapp.it/wordpress/?p=2115#comment-916</guid>
		<description>Grazie mille bebus! ;D</description>
		<content:encoded><![CDATA[<p>Grazie mille bebus! ;D</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: bebus77</title>
		<link>http://www.devapp.it/wordpress/tips001-ridurre-la-dimensione-degli-url-sfruttando-tr-im.html/comment-page-1#comment-915</link>
		<dc:creator>bebus77</dc:creator>
		<pubDate>Tue, 16 Feb 2010 14:18:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.devapp.it/wordpress/?p=2115#comment-915</guid>
		<description>&lt;blockquote cite=&quot;#comment-body-899&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-899&quot; rel=&quot;nofollow&quot;&gt;Matthew&lt;/a&gt; :&lt;/strong&gt;
                  
         
         
         Bhe sono andato a dare un’occhiata alle API e l’unica informazione che ho capito è che per accorciare un link, il sito sfrutta il seguente URL: &lt;a href=&quot;http://is.gd/api.php?longurl=http://www.example.com&quot; rel=&quot;nofollow&quot;&gt;http://is.gd/api.php?longurl=http://www.example.com&lt;/a&gt; dove, al posto di &lt;a href=&quot;http://www.example.com&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com&lt;/a&gt;, va il link da accorciare…
Quindi se io vorrei implementare questo servizio in un’applicazione vale lo stesso discorso per tr.im?
         &lt;a&gt;&lt;/a&gt;
       &lt;/blockquote&gt;

Si, funziona esattamente come tr.im, devi solo cambiare la parte di codice che sfrutta l&#039;API e quindi scriverai cosi&#039;:

NSString *url    = @&quot;http://brandontreb.com&quot;;
NSString *apiEndpoint = [NSString stringWithFormat:@&quot;http://is.gd/api.php?longurl=%@&quot;,url];
NSString *shortURL = [NSString stringWithContentsOfURL:[NSURL URLWithString:apiEndpoint]
encoding:NSASCIIStringEncoding
error:nil];
NSLog(@&quot;Long: %@ - Short: %@&quot;,url,shortURL);</description>
		<content:encoded><![CDATA[<blockquote cite="#comment-body-899"><p>
<strong><a href="#comment-899" rel="nofollow">Matthew</a> :</strong></p>
<p>         Bhe sono andato a dare un’occhiata alle API e l’unica informazione che ho capito è che per accorciare un link, il sito sfrutta il seguente URL: <a href="http://is.gd/api.php?longurl=http://www.example.com" rel="nofollow">http://is.gd/api.php?longurl=http://www.example.com</a> dove, al posto di <a href="http://www.example.com" rel="nofollow">http://www.example.com</a>, va il link da accorciare…<br />
Quindi se io vorrei implementare questo servizio in un’applicazione vale lo stesso discorso per tr.im?<br />
         <a></a>
       </p></blockquote>
<p>Si, funziona esattamente come tr.im, devi solo cambiare la parte di codice che sfrutta l&#8217;API e quindi scriverai cosi&#8217;:</p>
<p>NSString *url    = @&#8221;http://brandontreb.com&#8221;;<br />
NSString *apiEndpoint = [NSString stringWithFormat:@"http://is.gd/api.php?longurl=%@",url];<br />
NSString *shortURL = [NSString stringWithContentsOfURL:[NSURL URLWithString:apiEndpoint]<br />
encoding:NSASCIIStringEncoding<br />
error:nil];<br />
NSLog(@&#8221;Long: %@ &#8211; Short: %@&#8221;,url,shortURL);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Matthew</title>
		<link>http://www.devapp.it/wordpress/tips001-ridurre-la-dimensione-degli-url-sfruttando-tr-im.html/comment-page-1#comment-899</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Sat, 13 Feb 2010 15:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.devapp.it/wordpress/?p=2115#comment-899</guid>
		<description>Bhe sono andato a dare un&#039;occhiata alle API e l&#039;unica informazione che ho capito è che per accorciare un link, il sito sfrutta il seguente URL: http://is.gd/api.php?longurl=http://www.example.com dove, al posto di www.example.com, va il link da accorciare... 
Quindi se io vorrei implementare questo servizio in un&#039;applicazione vale lo stesso discorso per tr.im?</description>
		<content:encoded><![CDATA[<p>Bhe sono andato a dare un&#8217;occhiata alle API e l&#8217;unica informazione che ho capito è che per accorciare un link, il sito sfrutta il seguente URL: <a href="http://is.gd/api.php?longurl=http://www.example.com" rel="nofollow">http://is.gd/api.php?longurl=http://www.example.com</a> dove, al posto di <a href="http://www.example.com" rel="nofollow">http://www.example.com</a>, va il link da accorciare&#8230;<br />
Quindi se io vorrei implementare questo servizio in un&#8217;applicazione vale lo stesso discorso per tr.im?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Staff devAPP</title>
		<link>http://www.devapp.it/wordpress/tips001-ridurre-la-dimensione-degli-url-sfruttando-tr-im.html/comment-page-1#comment-886</link>
		<dc:creator>Staff devAPP</dc:creator>
		<pubDate>Fri, 12 Feb 2010 14:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.devapp.it/wordpress/?p=2115#comment-886</guid>
		<description>&lt;blockquote cite=&quot;#comment-body-879&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-879&quot; rel=&quot;nofollow&quot;&gt;Matthew&lt;/a&gt; :&lt;/strong&gt;
                  &lt;div class=&quot;avatar&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://www.gravatar.com/avatar/3660cf6152fdf946c00622ec9db0b092?s=64&amp;d=http%3A%2F%2Fwww.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&amp;r=G&quot; class=&quot;avatar avatar-64 photo&quot; height=&quot;64&quot; width=&quot;64&quot;&gt;&lt;/div&gt;
         
         
         &lt;p&gt;Bello questo tip! Con bit.ly ci si complica la vita e con tr.im il servizio lascia molto a desiderare… Se invece si volesse utilizzare is.gd? Stesso discorso di bit.ly? Grazie! &lt;img src=&quot;http://www.devapp.it/wordpress/wp-includes/images/smilies/icon_biggrin.gif&quot; alt=&quot;:D&quot; class=&quot;wp-smiley&quot;&gt; &lt;/p&gt;
         &lt;a id=&quot;comment-reply-879&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;
       &lt;/blockquote&gt;
Non ho mai usato quel servizio, ma possiamo dargli un&#039;occhiata ;)</description>
		<content:encoded><![CDATA[<blockquote cite="#comment-body-879"><p>
<strong><a href="#comment-879" rel="nofollow">Matthew</a> :</strong></p>
<div class="avatar"><img alt="" src="http://www.gravatar.com/avatar/3660cf6152fdf946c00622ec9db0b092?s=64&amp;d=http%3A%2F%2Fwww.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&amp;r=G" class="avatar avatar-64 photo" height="64" width="64"/></div>
<p>Bello questo tip! Con bit.ly ci si complica la vita e con tr.im il servizio lascia molto a desiderare… Se invece si volesse utilizzare is.gd? Stesso discorso di bit.ly? Grazie! <img src="http://www.devapp.it/wordpress/wp-includes/images/smilies/icon_biggrin.gif" alt=":D" class="wp-smiley"/> </p>
<p>         <a id="comment-reply-879" rel="nofollow"></a>
       </p></blockquote>
<p>Non ho mai usato quel servizio, ma possiamo dargli un&#8217;occhiata <img src='http://www.devapp.it/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Staff devAPP</title>
		<link>http://www.devapp.it/wordpress/tips001-ridurre-la-dimensione-degli-url-sfruttando-tr-im.html/comment-page-1#comment-881</link>
		<dc:creator>Staff devAPP</dc:creator>
		<pubDate>Thu, 11 Feb 2010 19:17:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.devapp.it/wordpress/?p=2115#comment-881</guid>
		<description>Hehe, grazie Andrea.. Anche noi ci stavamo pensando da un po&#039; ;) </description>
		<content:encoded><![CDATA[<p>Hehe, grazie Andrea.. Anche noi ci stavamo pensando da un po&#8217; <img src='http://www.devapp.it/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Matthew</title>
		<link>http://www.devapp.it/wordpress/tips001-ridurre-la-dimensione-degli-url-sfruttando-tr-im.html/comment-page-1#comment-879</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Thu, 11 Feb 2010 17:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.devapp.it/wordpress/?p=2115#comment-879</guid>
		<description>Bello questo tip! Con bit.ly ci si complica la vita e con tr.im il servizio lascia molto a desiderare... Se invece si volesse utilizzare is.gd? Stesso discorso di bit.ly? Grazie! :D</description>
		<content:encoded><![CDATA[<p>Bello questo tip! Con bit.ly ci si complica la vita e con tr.im il servizio lascia molto a desiderare&#8230; Se invece si volesse utilizzare is.gd? Stesso discorso di bit.ly? Grazie! <img src='http://www.devapp.it/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Andrea</title>
		<link>http://www.devapp.it/wordpress/tips001-ridurre-la-dimensione-degli-url-sfruttando-tr-im.html/comment-page-1#comment-875</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Thu, 11 Feb 2010 09:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.devapp.it/wordpress/?p=2115#comment-875</guid>
		<description>Grandissimo, è da un po&#039; che volevo fare una rubrica così su BubiDevs ma mi hai rubato l&#039;idea xDD

Grandi comunque!!</description>
		<content:encoded><![CDATA[<p>Grandissimo, è da un po&#8217; che volevo fare una rubrica così su BubiDevs ma mi hai rubato l&#8217;idea xDD</p>
<p>Grandi comunque!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.726 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-01-28 20:10:24 -->
<!-- Compression = gzip -->
