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 999 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 1309 posted 8 years ago by dipenpatel
Get Documents directory path in Swift
0 1095 posted 9 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 969 posted 9 years ago by ajarkovsky
0 1011 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 789 posted 11 years ago by carbonr
This is all about appending strings.
0 1347 posted 11 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 1039 posted 11 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 948 posted 11 years ago by ryantxr
Extended css media queries for modern mobile screens
0 3866 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 1042 posted 12 years ago by yar
0 914 posted 12 years ago by paul0078
Extract groups from a Regular Expression
0 1358 posted 12 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 768 posted 12 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 907 posted 12 years ago by beneberle
Metadata of Playing Media *iOS5 Only* Use this for integration with Accessories and Apple TV
0 864 posted 12 years ago by ppaulojr
How to make Global Variables (Singleton) in Objective-C
1 1167 posted 12 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 1056 posted 12 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 1062 posted 12 years ago by codeRefiner
Here is a breakdown of creating a custom initializer and or general rules of init
0 907 posted 12 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 1248 posted 12 years ago by codeRefiner
Accessing Method from other Classes Objective-C
1 1015 posted 12 years ago by neoline
Just a review, there is no code here. Simply for the mind :)
2 1021 posted 13 years ago by codeRefiner
How to add multiple Language localization to an App.
1 1056 posted 13 years ago by neoline
« Prev 1 2 3 4 5 6 7