Welcome To Snipplr
Everyone's Recent Objective C Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
506
posted 14 years ago by steve918
iPhone uses [LDML standard](http://unicode.org/reports/tr35/tr35-4.html#DateFormatPatterns)
for date formatting
8
628
posted 14 years ago by steve918
Remove all the keys of the application’s preferences file from ~/Library/Preferences with Cocoa’s NSUserDefaults class.
2
540
posted 14 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
627
posted 14 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
667
posted 14 years ago by jonathanbp
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
542
posted 15 years ago by buscarini
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
527
posted 15 years ago by zingo
Prints content from an NSError or NSArray content from a managedObjectContext.
0
521
posted 15 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.
For a internationalised version see: http://snipplr.com/view/7196/kill-app-after-expire-date-suicidal-c...
1
700
posted 15 years ago by zingo
This provides a nice split view resizing method with a minimum size restraint. You HAVE to specify MIN_LEFT_PANE_W for this to work.
2
492
posted 16 years ago by iloveitaly