admin

CCLabelTTF* message = [CCLabelTTF labelWithString:title
dimensions:CGSizeMake(80, 100) alignment:UITextAlignmentCenter fontName:fontName fontSize:fontSize];

Checkout this post

I tried to compile my code against 3.2 (in order to test in ipad simulator), but I got the following error:

“can not find protocol NSXMLParserDelegate”

I added the following line for the first warning, and all the 22 warnings were gone (and even the code worked :) )

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0
@protocol NSXMLParserDelegate
@end
#endif
@interface MGTwitterXMLParser : NSObject <NSXMLParserDelegate> {

In case of application crash :

1) Get the log file : http://aplus.rs/apple/how-to-find-crash-logs-for-iphone-applications-on-mac-vista-and-xp/

2) Open the Organizer in xCode

3) Drag the log into the ‘Device Logs’ on the right side

Good luck…

When adding a shape (non standard) to your box2d project, you need to define the vertices of the shape.

Remember that the (0,0) is in the middle of the Sprite.

Or you can use this great tool to help you :

http://www.springenwerk.com/2010/02/introducing-vertexhelper-for-box2d.html

http://www.box2d.org/manual.html

http://www.linuxuser.at/elements/doc/box2d/classb2_body.htm

  1. Under under Project->Edit Active Executable -> Arguments tab -> Environment variables section I added and set to YES the following variables: NSAutoreleaseFreedObjectCheckEnabled, NSZombieEnabled NSDebugEnabled.
  2. Under the Run menu, I selected “Enable Guard Malloc”

http://stackoverflow.com/questions/601074/objective-c-message-sent-to-deallocated-instance-0x5633b0

http://jirox.net/AsButtonGen/

Use the slider to set the button size

If you get compilation errors after adding:

#import “Box2D.h”

Change the file ext to .mm => This should tell the compiler to use C++, and solve the problem

Assuming you have:

1)

@interface Car:NSObject{
    NSString *name;
}

//name is private

2)
@interface Car:NSObject{
    NSString *name;
}
@property(nonatomic, retain) NSString *name;

//name is public

//nonatomic means that there is are no problems with multithreading

//reatin means that the setter is now owing the new value ; Usually this
what will be used.
//assign might be used for non object types like BOOL
//copy might be used for NSString

3) Adding:
@synthesize name 

//No need to implement getName / setName
© 2011 W2OM - iPhone by code Suffusion theme by Sayontan Sinha