2010-12-06 3 views

답변

1

는 함께 IBOutlet 의해 툴바를 확인 및 y는 뷰의 높이보다 100 이상의 좌표 세트. 그 다음에는 특히 액션이 y 좌표를 적절하게 변경합니다. 이것은 애니메이션을 통해 이루어집니다.

키보드와 함께 사용합니다. 나는 사용자 정의보기를 작성과 함께 그에 완료 버튼을 추가

-1

(NSNotification *) 참고 : (무효) keyboardWillHide - (NSNotification *) 참고 및 : (무효) keyboardWillShow - 를 사용하여

피커보기.

감사

0
UIToolBar *toolBar= [[UIToolbar alloc] initWithFrame:CGRectMake(0,0,320,44)]; 
     [toolBar setBarStyle:UIBarStyleBlackOpaque]; 
     UIBarButtonItem *barButtonDone = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:UIBarButtonItemStyleBordered target:self action:@selector(doneBtnTapped:)]; 

     toolBar.items = [[NSArray alloc] initWithObjects:barButtonDone,nil]; 
     barButtonDone.tintColor=[UIColor blackColor]; 
     [popoverView addSubview:toolBar]; 

     [popoverView addSubview:pickerView]; 
관련 문제