Error in Iphone development - greeting undeclared (first use in this function)
I Am new Iphone development. And i got his error "greeting undeclared (first use in this function)".I have attached the screen shot file here.
code is below:
greetings = [[greeting alloc] initWithName:@"Missing You"
andURL1:@"http://dimitko.com/banners/icards/missing/missing1.png"
andURL2:@"http://dimitko.com/banners/icards/missing/missing2.png" andURL3:@"http://dimitko.com/banners/icards/missing/missing开发者_运维知识库3.png" andURL4:@"http://dimitko.com/banners/icards/missing/missing4.png" andHeader:@"Miss you..." andSubject:@"Missing You a Whole Bunch!!!" andColor:[UIColor colorWithRed:_RGB2COCOA(236) green:_RGB2COCOA(57) blue:_RGB2COCOA(46) alpha:1] andColorWeb:@"#ec392e"
andGreetingFont:@"SnellRoundhand"
andFontSize:12
andWebFont:@"5"
Import the header that defines your greeting class.
Also, that's quite a wordy initialiser, you should consider just using properties instead.
精彩评论