Welcome To Snipplr


Everyone's Recent Objective C Snippets Tagged c



1 ... 5 6 7 8 9
0 1974 posted 17 years ago by arpit
Creating a vibration is simple as pie - simpler in fact. It just requires one line of code; two if you add the import line. But as simple as a one-liner is it is better to make it into a function. So here is the one liner, followed by the function...
5 3344 posted 17 years ago by KevinBomberry
1) Make sure the ViewController for the view implements the \< UIPickerViewDelegate, >
0 2529 posted 17 years ago by arpit
Display simple alert box
6 3516 posted 17 years ago by steve918
Allows you to toggle visibility of the iPhone status bar at the top of the screen that shows the carrier information, network status and time
6 2249 posted 17 years ago by steve918
Get Version Number from Info.plist
8 3453 posted 17 years ago by steve918
Grabs the unique device id from the iPhone
3 3231 posted 17 years ago by steve918
iPhone uses [LDML standard](http://unicode.org/reports/tr35/tr35-4.html#DateFormatPatterns) for date formatting
8 3795 posted 17 years ago by steve918
Remove all the keys of the application’s preferences file from ~/Library/Preferences with Cocoa’s NSUserDefaults class.
2 2742 posted 18 years ago by zingo
Using a gcc predefined macro, __DATE__, the code can know for itself when it was compiled, and build in an expiration date based on that value. The former code (http://snipplr.com/view/3448/kill-app-after-expire-date/) was not internationalised an...
5 3633 posted 18 years ago by zingo
the controllers view is setup s.t. it adds the mainView as a subview to its default view in the init method
4 3588 posted 18 years ago by jonathanbp
This can be used to test FS type.
1 2575 posted 18 years ago by zingo
Para usar el interface builder con el iphone hay que crear una vista o una ventana, guardarla dentro del proyecto, y meter esta línea en appdelegate en applicationDidFinishLaunching.
0 3651 posted 18 years ago by buscarini
0 2149 posted 18 years ago by zingo
Macro to give an asl_log-like NSLog.
2 2424 posted 18 years ago by zingo
4 3135 posted 18 years ago by zingo
A database table is basically an array of dictionary objects. As long as all the fields are valid property list types, you can loop through the array creating a managed object for each dictionary and setting the values. If you have an array con...
2 2472 posted 18 years ago by zingo
1 ... 5 6 7 8 9