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 3588 posted 9 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 3824 posted 9 years ago by dipenpatel
Get Documents directory path in Swift
0 3585 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 3366 posted 10 years ago by ajarkovsky
0 3477 posted 12 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 2152 posted 12 years ago by carbonr
This is all about appending strings.
0 3877 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 2558 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 3367 posted 12 years ago by ryantxr
Extended css media queries for modern mobile screens
0 5797 posted 13 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 3544 posted 13 years ago by yar
0 2324 posted 13 years ago by paul0078
Extract groups from a Regular Expression
0 3165 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 2181 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 2433 posted 13 years ago by beneberle
Metadata of Playing Media *iOS5 Only* Use this for integration with Accessories and Apple TV
0 2264 posted 13 years ago by ppaulojr
How to make Global Variables (Singleton) in Objective-C
1 2912 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 2586 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 1719 posted 14 years ago by codeRefiner
Here is a breakdown of creating a custom initializer and or general rules of init
0 3378 posted 14 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 3887 posted 14 years ago by codeRefiner
Accessing Method from other Classes Objective-C
1 2757 posted 14 years ago by neoline
Just a review, there is no code here. Simply for the mind :)
2 2768 posted 14 years ago by codeRefiner
How to add multiple Language localization to an App.
1 2692 posted 14 years ago by neoline
« Prev 1 2 3 4 5 6 7