Welcome To Snipplr


Everyone's Recent Snippets Tagged iphone



« Prev 1 2 3 4 5 6 7
https://www.chrisjmendez.com/2016/10/23/swift-load-a-wav-sound-using-avfoundation/
0 3099 posted 8 years ago by chrisaiv
This snippet is used to covert any date to days like today, tomorrow, 2 days ago, 2 weeks ago or even 1 years ago.
0 3412 posted 9 years ago by dipenpatel
Get Documents directory path in Swift
0 3143 posted 10 years ago by ryantxr
Place this in your <head> section, and set the href attribute to an image to a 57px x 57px PNG file.
0 2993 posted 10 years ago by ajarkovsky
0 3093 posted 11 years ago by MistaTwista
This meta tag in the head with proper configuration shows the appstore app equivalent of the website. When the user is visits the website and it has a App in the appstore, then a small preview is shown on the top by iOS saying the app is availabl...
0 1624 posted 12 years ago by carbonr
This is all about appending strings.
0 3403 posted 12 years ago by ryantxr
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 : <a href="http://giocaregratis...
0 2000 posted 12 years ago by haydin
Simple synchronous web request for ios. // Credit to the original authors: // Sam Walton // Ethan Irish // www.seven-labs.com // Be kind & share :)
0 2987 posted 12 years ago by ryantxr
Extended css media queries for modern mobile screens
0 5135 posted 12 years ago by Rosk
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."
0 3115 posted 13 years ago by yar
0 1753 posted 13 years ago by paul0078
Extract groups from a Regular Expression
0 2470 posted 13 years ago by BenClayton
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...
0 1635 posted 13 years ago by timothypwalter
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 <head> in the same place you call your norm...
0 1871 posted 13 years ago by beneberle
Metadata of Playing Media *iOS5 Only* Use this for integration with Accessories and Apple TV
0 1729 posted 13 years ago by ppaulojr
How to make Global Variables (Singleton) in Objective-C
1 2275 posted 13 years ago by neoline
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 bo...
3 1997 posted 13 years ago by iridium
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 dro...
1 1505 posted 13 years ago by codeRefiner
Here is a breakdown of creating a custom initializer and or general rules of init
0 2967 posted 13 years ago by codeRefiner
Here is a simple function that will return the path to the documents directory so you can store data in it later
1 3395 posted 13 years ago by codeRefiner
Accessing Method from other Classes Objective-C
1 2114 posted 13 years ago by neoline
Just a review, there is no code here. Simply for the mind :)
2 2142 posted 13 years ago by codeRefiner
How to add multiple Language localization to an App.
1 2097 posted 13 years ago by neoline
« Prev 1 2 3 4 5 6 7