pageControl = [[UIPageControl alloc] initWithFrame:CGRectMake(153,356,38,36) ];
pageControl.userInteractionEnabled =YES;
pageControl.numberOfPages = 2;
pageControl.currentPage = 1;
pageControl.enabled = TRUE;
[pageControl setHighlighted:YES];
[pageControl addTarget:self action:@selector(changePage:) forControlEvents:UIControlEventValueChanged];
[self.view addSubview:pageControl];
}
- (IBAction) changePage:(id)sender
{
}
프로그래밍 방식으로 페이지 컨트롤을 만들고있어 페이지 컨트롤 클릭시 새로운보기 컨트롤러를 표시하려고합니다. 어떻게이 changePage 메서드를 구현해야합니까? 누구든지 도와 줄 수 있습니까?UIPageControl의 문제
http://www.iosdevnotes.com/tag/pagecontrol/ –