Welcome To Snipplr


Everyone's Recent Snippets Tagged iphone



« Prev 1 2 3 4 5 6 7
  1. FAV

    Swift: Load a Wav sound using AVFoundation

    I sometimes need to dynamically load a .wav file. Here's how I do it using AVFoundation
    iPhone 4 views posted 3 years ago by chrisaiv
  2. FAV

    Display date as Today, Tomorrow, 2 Days ago etc

    This snippet is used to covert any date to days like today, tomorrow, 2 days ago, 2 weeks ago or even 1 years ago.
    Objective C 12 views posted 4 years ago by dipenpatel
  3. FAV

    Get Documents directory path in Swift

    Get Documents directory path in Swift
    Other 6 views posted 4 years ago by ryantxr
  4. FAV

    Set iPhone Bookmark Icon

    Place this in your <head> section, and set the href attribute to an image to a 57px x 57px PNG file.
    HTML 10 views posted 5 years ago by ajarkovsky
  5. FAV

    iPhone calls and sms links

    HTML 8 views posted 6 years ago by MistaTwista
  6. FAV

    AppStore auto detect App from website

    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...
    HTML 1 views posted 6 years ago by carbonr
  7. FAV

    Objective-C String Concatenation

    This is all about appending strings.
    Objective C 11 views posted 6 years ago by ryantxr
  8. FAV

    iPhone Calling and Texting Links

    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...
    HTML 5 views posted 6 years ago by haydin
  9. FAV

    simple ios url request

    Simple synchronous web request for ios. // Credit to the original authors: // Sam Walton // Ethan Irish // www.seven-labs.com // Be kind & share :)
    iPhone 7 views posted 7 years ago by ryantxr
  10. FAV

    Android and Iphone - modern css media queries

    Extended css media queries for modern mobile screens
    CSS 16 views posted 7 years ago by Rosk
  11. FAV

    Alloc Method to Choose Between Regular and Phone

    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."
    Objective C 4 views posted 7 years ago by yar
  12. FAV

    How to make an image with rounded corners

    Objective C 3 views posted 7 years ago by cphoover
  13. FAV

    How to make an image with rounded corners

    Objective C 11 views posted 7 years ago by munrobaggers
  14. FAV

    Detect iPhone and iPad

    JavaScript 2 views posted 7 years ago by paul0078
  15. FAV

    How to make an image with rounded corners

    Objective C saved by 1 person 6 views posted 7 years ago by inky76
  16. FAV

    iOS / iPhone: Extract groups from a Regular Expression (NSRegularExpression)

    Extract groups from a Regular Expression
    Objective C 3 views posted 8 years ago by BenClayton
  17. FAV

    Preventing elastic scrolling on iDevice

    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...
    JavaScript 4 views posted 8 years ago by timothypwalter
  18. FAV

    iOS Safari web clip icons. Home screen

    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...
    HTML 3 views posted 8 years ago by beneberle
  19. FAV

    How to make an image with rounded corners

    Objective C saved by 1 person 8 views posted 8 years ago by tilakapash
  20. FAV

    How to make an image with rounded corners

    Objective C 3 views posted 8 years ago by tilakapash
  21. FAV

    AVAudioPlayer Metadata for iTunes integration

    Metadata of Playing Media *iOS5 Only* Use this for integration with Accessories and Apple TV
    Objective C 2 views posted 8 years ago by ppaulojr
  22. FAV

    Global Variables in Objective-C (Singleton)

    How to make Global Variables (Singleton) in Objective-C
    Objective C saved by 2 people 23 views posted 8 years ago by neoline
  23. FAV

    iPad/iPhone Orientation Body Class

    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...
    jQuery saved by 15 people 7 views posted 8 years ago by iridium
  24. FAV

    New iOS 5 API: Customize UINavigationBar Background Property with EASY function!!!

    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...
    iPhone saved by 2 people 16 views posted 8 years ago by codeRefiner
  25. FAV

    A note about init methods

    Here is a breakdown of creating a custom initializer and or general rules of init
    iPhone 7 views posted 8 years ago by codeRefiner
  26. FAV

    Easy function to get the path to the documents directory for data persistance

    Here is a simple function that will return the path to the documents directory so you can store data in it later
    iPhone saved by 2 people 7 views posted 8 years ago by codeRefiner
  27. FAV

    Use function from another class

    Accessing Method from other Classes Objective-C
    Objective C saved by 2 people 10 views posted 8 years ago by neoline
  28. FAV

    Steps for setting up the delegate pattern between two objects

    Just a review, there is no code here. Simply for the mind :)
    Objective C saved by 2 people 8 views posted 8 years ago by codeRefiner
  29. FAV

    Objective C iOS simple image Carousel Class

    Objective C saved by 3 people 15 views posted 8 years ago by jurajhilje
  30. FAV

    Localized Language Tutorial

    How to add multiple Language localization to an App.
    Objective C saved by 2 people 6 views posted 8 years ago by neoline
« Prev 1 2 3 4 5 6 7