Welcome To Snipplr


Everyone's Recent Snippets Tagged iphone



0 309 posted 10 years ago by peruggia
Code that will convert a simple Hex code value (from HTML colors) to an actual useable NSColor.
0 484 posted 10 years ago by suibhne
Use like this: [self showConfirmation:@"May we send you information and offers by Email?" withMessage:@"1 email per week maximum"];
1 343 posted 10 years ago by yasirmturk
Use like this: [self docsUrl]
1 313 posted 10 years ago by yasirmturk
Use like this: [[self docsPath] stringByAppendingPathComponent:@"photo.png"]
1 339 posted 10 years ago by yasirmturk
Add MessageUI.framework reference then in header file #import <MessageUI/MessageUI.h> #import <MessageUI/MFMailComposeViewController.h> #import <MessageUI/MFMessageComposeViewController.h>
1 331 posted 10 years ago by yasirmturk
"Those who create responsive design for iPhone may be aware of the viewport scaling bug in iPhone Safari. The bug occurs when you set the viewport width to device-width and rotate the phone to landscape view."
1 293 posted 10 years ago by ichnoweb
Add this code to the controller Set controller as the delegate of the all the UITextField s in the UIView
1 578 posted 10 years ago by yasirmturk
A tiny snippet on how to easily detect iPad/iPhone/iPod using javascript.
1 269 posted 10 years ago by parkarlsson
This is how you play and stop sound effects in cocos2d
0 381 posted 10 years ago by espinallab
Use this script in Automator, and make a Service of it. Then give the service a shortcut in System Preferences -> Keyboard In the script you have to switch the "SETT_INN_API-KODE_FRA_PROWL_HER" with a Prowl API code (https://www.prowlapp.com/api_s...
0 417 posted 10 years ago by Macgeeky
Convert a php array to an apple plist xml or text format
0 567 posted 10 years ago by Zydeco
Based upon http://csswizardry.com/2010/01/iphone-css-tips-for-building-iphone-websites/
0 408 posted 10 years ago by withinmedianl
1 407 posted 10 years ago by Ashung
0 348 posted 10 years ago by Macgeeky