Welcome To Snipplr
Everyone's Recent Snippets Tagged iphone
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
https://www.chrisjmendez.com/2016/10/23/swift-load-a-wav-sound-using-avfoundation/
0
1002
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
1310
posted 8 years ago by dipenpatel
Place this in your <head> section, and set the href attribute to an image to a 57px x 57px PNG file.
0
970
posted 9 years ago by ajarkovsky
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
792
posted 11 years ago by carbonr
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
1042
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
950
posted 11 years ago by ryantxr
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
1044
posted 12 years ago by yar
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
769
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
909
posted 12 years ago by beneberle
Metadata of Playing Media
*iOS5 Only*
Use this for integration with Accessories and Apple TV
0
866
posted 12 years ago by ppaulojr
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
1063
posted 12 years ago by codeRefiner
Here is a breakdown of creating a custom initializer and or general rules of init
0
908
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
1249
posted 12 years ago by codeRefiner
Just a review, there is no code here. Simply for the mind :)
2
1023
posted 13 years ago by codeRefiner