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
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>