Welcome To Snipplr
Everyone's Recent Objective C Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
If you're writing a preference pane and you'd like to exit back to the main System Preferences view, just use this code.
1
451
posted 13 years ago by Carter
This adds a spinning activity indicator to the top navigation bar of a navigation controller.
0
511
posted 13 years ago by suibhne
Some code that will load an image from a remote URL, and then resize it.
6
891
posted 13 years ago by suibhne
Just a simple loop around a mutable dictionary object which I always seem to forget.
1
448
posted 13 years ago by suibhne
Returns an array with the names of the network interfaces (en0, en1, fw0, etc)
Link to the IOKit framework
0
462
posted 13 years ago by Zydeco
Just replace a character within a string (e.g. carriage returns).
1
481
posted 13 years ago by suibhne
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
599
posted 13 years ago by KevinBomberry
1) Make sure the ViewController for the view implements the \< UIPickerViewDelegate, >
0
415
posted 14 years ago by arpit