<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/iphone</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 08:09:01 GMT</pubDate>
<item>
<title>(HTML) iPhone Calling and Texting Links - haydin</title>
<link>http://snipplr.com/view/70488/iphone-calling-and-texting-links/</link>
<description><![CDATA[ <p>This is the calling one (probably more useful if the clickable text is words, as the iPhone auto-detects phone numbers and does this automatically)
This is the SMS one, which overrides the default calling behavior (ex :  Giocare Gioco 
Not sure what other things these links might work on... Might be a little dangerous as having non-standard links that don't work or bring up errors is kinda bad UX. Best for mobile-only sites. If someone know if this works on Android/Blackberry/Other Mobile, comment below.</p> ]]></description>
<pubDate>Wed, 20 Mar 2013 20:27:55 GMT</pubDate>
<guid>http://snipplr.com/view/70488/iphone-calling-and-texting-links/</guid>
</item>
<item>
<title>(iPhone) simple ios url request - ryantxr</title>
<link>http://snipplr.com/view/69293/simple-ios-url-request/</link>
<description><![CDATA[ <p>Simple synchronous web request for ios.
// Credit to the original authors:
// Sam Walton
// Ethan Irish
// www.seven-labs.com
// Be kind &amp; share :)</p> ]]></description>
<pubDate>Sat, 29 Dec 2012 02:04:11 GMT</pubDate>
<guid>http://snipplr.com/view/69293/simple-ios-url-request/</guid>
</item>
<item>
<title>(CSS) Android and Iphone - modern css media queries - Rosk</title>
<link>http://snipplr.com/view/67341/android-and-iphone--modern-css-media-queries/</link>
<description><![CDATA[ <p>Extended css media queries for modern mobile screens</p> ]]></description>
<pubDate>Mon, 24 Sep 2012 17:40:54 GMT</pubDate>
<guid>http://snipplr.com/view/67341/android-and-iphone--modern-css-media-queries/</guid>
</item>
<item>
<title>(Objective C) Alloc Method to Choose Between Regular and Phone - yar</title>
<link>http://snipplr.com/view/66823/alloc-method-to-choose-between-regular-and-phone/</link>
<description><![CDATA[ <p>This method will alloc the current class unless the device is a phone (also defined here). Then it will try to alloc the class with the suffix "Phone."</p> ]]></description>
<pubDate>Tue, 21 Aug 2012 04:34:31 GMT</pubDate>
<guid>http://snipplr.com/view/66823/alloc-method-to-choose-between-regular-and-phone/</guid>
</item>
<item>
<title>(Objective C) How to make an image with rounded corners - cphoover</title>
<link>http://snipplr.com/view/66495/how-to-make-an-image-with-rounded-corners/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 03 Aug 2012 10:43:55 GMT</pubDate>
<guid>http://snipplr.com/view/66495/how-to-make-an-image-with-rounded-corners/</guid>
</item>
<item>
<title>(Objective C) How to make an image with rounded corners - munrobaggers</title>
<link>http://snipplr.com/view/65448/how-to-make-an-image-with-rounded-corners/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 07 Jun 2012 02:52:35 GMT</pubDate>
<guid>http://snipplr.com/view/65448/how-to-make-an-image-with-rounded-corners/</guid>
</item>
<item>
<title>(JavaScript) Detect iPhone and iPad - paul0078</title>
<link>http://snipplr.com/view/64575/detect-iphone-and-ipad/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 15 Apr 2012 20:13:59 GMT</pubDate>
<guid>http://snipplr.com/view/64575/detect-iphone-and-ipad/</guid>
</item>
<item>
<title>(Objective C) How to make an image with rounded corners - inky76</title>
<link>http://snipplr.com/view/63754/how-to-make-an-image-with-rounded-corners/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 07 Mar 2012 11:35:01 GMT</pubDate>
<guid>http://snipplr.com/view/63754/how-to-make-an-image-with-rounded-corners/</guid>
</item>
<item>
<title>(Objective C) iOS / iPhone: Extract groups from a Regular Expression (NSRegularExpression) - BenClayton</title>
<link>http://snipplr.com/view/63340/ios--iphone-extract-groups-from-a-regular-expression-nsregularexpression/</link>
<description><![CDATA[ <p>Extract groups from a Regular Expression</p> ]]></description>
<pubDate>Wed, 15 Feb 2012 04:34:25 GMT</pubDate>
<guid>http://snipplr.com/view/63340/ios--iphone-extract-groups-from-a-regular-expression-nsregularexpression/</guid>
</item>
<item>
<title>(JavaScript) Preventing elastic scrolling on iDevice - timothypwalter</title>
<link>http://snipplr.com/view/63008/preventing-elastic-scrolling-on-idevice/</link>
<description><![CDATA[ <p>If you a flick a web app past the bottom or top of the page, the page itself gets elastically tugged away from the URL bar or the button bar (or the bottom/top of the screen if it's in full-screen mode).

This behavior is another giveaway that your app isn't native, and it's rarely the behavior you want in a native app.

To stop this behavior, capture touchmove events on the document in JavaScript and cancel them. You can do this by adding a handler to the body tag, and invoking the preventDefault method on the event object:</p> ]]></description>
<pubDate>Thu, 02 Feb 2012 22:52:08 GMT</pubDate>
<guid>http://snipplr.com/view/63008/preventing-elastic-scrolling-on-idevice/</guid>
</item>
<item>
<title>(HTML) iOS Safari web clip icons. Home screen - beneberle</title>
<link>http://snipplr.com/view/62337/ios-safari-web-clip-icons-home-screen/</link>
<description><![CDATA[ <p>Create custom web clip icons or "app logos" in various sizes to be displayed (instead of the default site snapshot) when users save your site to their Home screens. Across Safari iOS devices. 

Add in the  in the same place you call your normal browser favicons.</p> ]]></description>
<pubDate>Fri, 06 Jan 2012 06:19:18 GMT</pubDate>
<guid>http://snipplr.com/view/62337/ios-safari-web-clip-icons-home-screen/</guid>
</item>
<item>
<title>(Objective C) How to make an image with rounded corners - tilakapash</title>
<link>http://snipplr.com/view/62279/how-to-make-an-image-with-rounded-corners/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 04 Jan 2012 01:00:02 GMT</pubDate>
<guid>http://snipplr.com/view/62279/how-to-make-an-image-with-rounded-corners/</guid>
</item>
<item>
<title>(Objective C) How to make an image with rounded corners - tilakapash</title>
<link>http://snipplr.com/view/62257/how-to-make-an-image-with-rounded-corners/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 04 Jan 2012 00:56:58 GMT</pubDate>
<guid>http://snipplr.com/view/62257/how-to-make-an-image-with-rounded-corners/</guid>
</item>
<item>
<title>(Objective C) AVAudioPlayer Metadata for iTunes integration - ppaulojr</title>
<link>http://snipplr.com/view/62097/avaudioplayer-metadata-for-itunes-integration/</link>
<description><![CDATA[ <p>Metadata of Playing Media
*iOS5 Only*

Use this for integration with Accessories and Apple TV</p> ]]></description>
<pubDate>Fri, 23 Dec 2011 04:12:34 GMT</pubDate>
<guid>http://snipplr.com/view/62097/avaudioplayer-metadata-for-itunes-integration/</guid>
</item>
<item>
<title>(Objective C) Global Variables in Objective-C (Singleton) - neoline</title>
<link>http://snipplr.com/view/61937/global-variables-in-objectivec-singleton/</link>
<description><![CDATA[ <p>How to make Global Variables (Singleton) in Objective-C</p> ]]></description>
<pubDate>Sat, 17 Dec 2011 03:21:45 GMT</pubDate>
<guid>http://snipplr.com/view/61937/global-variables-in-objectivec-singleton/</guid>
</item>
<item>
<title>(jQuery) iPad/iPhone Orientation Body Class - iridium</title>
<link>http://snipplr.com/view/61898/ipadiphone-orientation-body-class/</link>
<description><![CDATA[ <p>This function will detect the orientation (portrait/landscape) of an iOS device and set the body class to either portrait or landscape, as well as providing a global variable for use elsewhere in your JS.

If you require multiple classes on your body tag, simply alter the code to use jQuery's addClass() and removeClass() functions.</p> ]]></description>
<pubDate>Thu, 15 Dec 2011 03:33:05 GMT</pubDate>
<guid>http://snipplr.com/view/61898/ipadiphone-orientation-body-class/</guid>
</item>
<item>
<title>(iPhone) New iOS 5 API: Customize UINavigationBar Background Property with EASY function!!! - codeRefiner</title>
<link>http://snipplr.com/view/61401/new-ios-5-api-customize-uinavigationbar-background-property-with-easy-function/</link>
<description><![CDATA[ <p>Here is a nice function you can use to implement a custom background for your UINavigation Bars

Simply make two images in photoshop: 

32 x 32 
44 x 44 

and name them whatever you want. 

put them in your iPhone project by dragging and dropping them from the desktop or another directory. 

If need be check the Copy Group Destination files in folder line to add the two image files to your project. 

Make sure you replace the two lines that create the UIImages with your image names


Copy And paste the function into your app delegate right above applicationDidFinishLaunchingWithOptions: 

then simply call 

[self customizeAppearance]; inside your app delegate and...

voila, enjoy :)</p> ]]></description>
<pubDate>Thu, 01 Dec 2011 12:28:55 GMT</pubDate>
<guid>http://snipplr.com/view/61401/new-ios-5-api-customize-uinavigationbar-background-property-with-easy-function/</guid>
</item>
<item>
<title>(iPhone) A note about init methods - codeRefiner</title>
<link>http://snipplr.com/view/61319/a-note-about-init-methods/</link>
<description><![CDATA[ <p>Here is a breakdown of creating a custom initializer and or general rules of init</p> ]]></description>
<pubDate>Wed, 30 Nov 2011 07:14:45 GMT</pubDate>
<guid>http://snipplr.com/view/61319/a-note-about-init-methods/</guid>
</item>
<item>
<title>(iPhone) Easy function to get the path to the documents directory for data persistance - codeRefiner</title>
<link>http://snipplr.com/view/61316/easy-function-to-get-the-path-to-the-documents-directory-for-data-persistance/</link>
<description><![CDATA[ <p>Here is a simple function that will return the path to the documents directory so you can store data in it later</p> ]]></description>
<pubDate>Wed, 30 Nov 2011 06:24:50 GMT</pubDate>
<guid>http://snipplr.com/view/61316/easy-function-to-get-the-path-to-the-documents-directory-for-data-persistance/</guid>
</item>
<item>
<title>(Objective C) Use function from another class - neoline</title>
<link>http://snipplr.com/view/61196/use-function-from-another-class/</link>
<description><![CDATA[ <p>Accessing Method from other Classes Objective-C</p> ]]></description>
<pubDate>Fri, 25 Nov 2011 21:10:24 GMT</pubDate>
<guid>http://snipplr.com/view/61196/use-function-from-another-class/</guid>
</item>
</channel>
</rss>