Tag Archives: iPhone Source Code

[iOS News Update] iOS 4.3 beta 3 is Available Now

[iOS News Update] iOS 4.3 beta 3 is Available Now [iOS News Update] iOS 4.3 beta 3 is Available Now iOS 4.3 beta 3 and iOS 4.3 SDK beta 3 are now available from the iOS Dev Center. Only install iOS 4.3 beta on devices dedicated to testing apps built with iOS SDK 4.3 beta. [...]

Leave a comment Continue Reading →

[Cocos2d] Find object by Tag

[code=""] -(id) init { if ((self = [super init])) { CCLabel* label = [CCLabel labelWithString:@"Hello World" fontName:@"Marker Felt" fontSize:64]; CGSize size = [[CCDirector sharedDirector] winSize]; label.position = CGPointMake(size.width / 2, size.height / 2); [self addChild: label]; label.tag = 13; self.isTouchEnabled = YES; } return self; } -(void) ccTouchesBegan:(NSSet*)touches withEvent:(UIEvent*)event; { CCLabel* label = (CCLabel*)[self getChildByTag:13]; [...]

Leave a comment Continue Reading →