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 333 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 361 posted 11 years ago by zingo
Snippet from a question I answered in StackOverflow.
2 291 posted 11 years ago by rabc
Snippet from a question I answered in StackOverflow.
4 394 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 495 posted 11 years ago by espinallab
Set UITableView background to a pattern
3 287 posted 11 years ago by glebd
0 323 posted 11 years ago by rabc
3 399 posted 11 years ago by rabc
5 440 posted 11 years ago by rabc
0 210 posted 11 years ago by bebroll
Just add this delegate method to enable the row delete.
2 262 posted 11 years ago by rabc
Delete the files in Documents folder if it's not a sqlite file.
5 435 posted 11 years ago by rabc
0 280 posted 11 years ago by tonic
1 ... 4 5 6 7 8 9