Archive for the Category »xcode «

CGRect nextMonthButtonFrame = CGRectMake(10,10,50,50);

UIButton *nextMonthButton = [[UIButton alloc] initWithFrame:nextMonthButtonFrame];

[nextMonthButton setImage:[UIImage imageNamed:@"kal_right_arrow.png"] forState:UIControlStateNormal];

nextMonthButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;

nextMonthButton.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;

[nextMonthButton addTarget:self action:@selector(prevMonth) forControlEvents:UIControlEventTouchUpInside];

[calendarview addSubview:nextMonthButton];

[nextMonthButton release];

Category: xcode  Leave a Comment

Hi,

thanks to Mike from http://www.71squared.com

I go finaly OpenAL playing a Sound on my iPhone :)

I am not a big writer as usual so just see the Code

You may find a full functional XCode Demo (its on 3.2.2)
on my HP: http://2t4u.com/playopenal.zip

I added also a small function: checkSoundWithKeyPlaying(soundID)

Just look at the Source and when you start your Project
look into your CONSOLE !! to see if the Sound is still playing or not!

Enjoy and Thanks to Mike for the Base.

Greets
Chris

Category: xcode  Leave a Comment