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 395 posted 5 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 523 posted 5 years ago by dipenpatel
Get Documents directory path in Swift
0 440 posted 6 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 422 posted 6 years ago by ajarkovsky
0 391 posted 8 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 319 posted 8 years ago by carbonr
This is all about appending strings.
0 555 posted 8 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 381 posted 8 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 403 posted 8 years ago by ryantxr
Extended css media queries for modern mobile screens
0 1636 posted 9 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 402 posted 9 years ago by yar
0 358 posted 9 years ago by paul0078
Extract groups from a Regular Expression
0 559 posted 9 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 313 posted 9 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 353 posted 9 years ago by beneberle
Metadata of Playing Media *iOS5 Only* Use this for integration with Accessories and Apple TV
0 312 posted 9 years ago by ppaulojr
How to make Global Variables (Singleton) in Objective-C
1 453 posted 9 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 379 posted 9 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 441 posted 9 years ago by codeRefiner
Here is a breakdown of creating a custom initializer and or general rules of init
0 376 posted 9 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 555 posted 9 years ago by codeRefiner
Accessing Method from other Classes Objective-C
1 347 posted 9 years ago by neoline
Just a review, there is no code here. Simply for the mind :)
2 334 posted 9 years ago by codeRefiner
How to add multiple Language localization to an App.
1 377 posted 9 years ago by neoline
« Prev 1 2 3 4 5 6 7