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
- Under under Project->Edit Active Executable -> Arguments tab -> Environment variables section I added and set to YES the following variables: NSAutoreleaseFreedObjectCheckEnabled, NSZombieEnabled NSDebugEnabled.
- 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
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:@synthesizename //No need to implement getName / setName
