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 349 posted 11 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 380 posted 11 years ago by zingo
Snippet from a question I answered in StackOverflow.
2 303 posted 11 years ago by rabc
Snippet from a question I answered in StackOverflow.
4 409 posted 11 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 516 posted 11 years ago by espinallab
Set UITableView background to a pattern
3 304 posted 11 years ago by glebd
0 333 posted 11 years ago by rabc
3 419 posted 11 years ago by rabc
5 463 posted 11 years ago by rabc
0 222 posted 11 years ago by bebroll
Just add this delegate method to enable the row delete.
2 274 posted 11 years ago by rabc
Delete the files in Documents folder if it's not a sqlite file.
5 448 posted 11 years ago by rabc
0 292 posted 11 years ago by tonic
1 ... 4 5 6 7 8 9