Welcome To Snipplr


Everyone's Recent Objective C Snippets



1 ... 4 5 6 7 8 9
Use this variation of **setPlayerPosition** in your HelloWorldScene.m file to negate the need to use **setViewpointCenter** to manually calculate the viewport to track your player. This uses the **CCFollow** function as demonstrated in ActionsTest, o...
1 445 posted 12 years ago by cell-gfx
Drawing scaled rectangles of arbitrary width and height that keeps the corner and sides properly scaled while growing the center.
1 503 posted 12 years ago by zingo
Snippet from a question I answered in StackOverflow.
2 397 posted 12 years ago by rabc
Snippet from a question I answered in StackOverflow.
4 516 posted 12 years ago by rabc
Here is how to determine the device type.\r\n\r\nHow to use it.\r\n\r\nUIDeviceHardware *h=[[UIDeviceHardware alloc] init];\r\n[self setDeviceModel:[h platformString]]; \r\n[h release];
3 657 posted 12 years ago by espinallab
Set UITableView background to a pattern
3 400 posted 12 years ago by glebd
0 408 posted 12 years ago by rabc
3 553 posted 12 years ago by rabc
5 600 posted 12 years ago by rabc
0 266 posted 12 years ago by bebroll
Just add this delegate method to enable the row delete.
2 339 posted 12 years ago by rabc
Delete the files in Documents folder if it's not a sqlite file.
5 568 posted 12 years ago by rabc
0 361 posted 12 years ago by tonic
1 ... 4 5 6 7 8 9