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 492 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 550 posted 12 years ago by zingo
Snippet from a question I answered in StackOverflow.
2 416 posted 12 years ago by rabc
Snippet from a question I answered in StackOverflow.
4 541 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 714 posted 12 years ago by espinallab
Set UITableView background to a pattern
3 448 posted 12 years ago by glebd
0 435 posted 12 years ago by rabc
3 582 posted 12 years ago by rabc
5 651 posted 12 years ago by rabc
0 285 posted 12 years ago by bebroll
Just add this delegate method to enable the row delete.
2 363 posted 12 years ago by rabc
Delete the files in Documents folder if it's not a sqlite file.
5 596 posted 12 years ago by rabc
0 386 posted 12 years ago by tonic
1 ... 4 5 6 7 8 9