2013-03-20 2 views

답변

1

내 작은 지식에서, 당신은 기본 iPad 키보드 스크롤 움직임을 잠글 수 없습니다.

키보드 유형과 같은 다른 기능을 관리 할 수 ​​있으며 사용자 정의 uikeyboard를 만들 수도 있습니다.

에 대한 그러나

uikeyboard 사용자 지정을 만드는 논의 this post을 확인하시기 바랍니다,이 코드에 대한보고를 확인하시기 바랍니다 당신이 스크롤 키보드에 의해 무엇을 의미합니까 당신의 목표를

//The UIWindow that contains the keyboard view - It some situations it will be better to actually 
    //iterate through each window to figure out where the keyboard is, but In my applications case 
    //I know that the second window has the keyboard so I just reference it directly 
    UIWindow* tempWindow = [[[UIApplication sharedApplication] windows] objectAtIndex:1]; 

    //Because we cant get access to the UIKeyboard throught the SDK we will just use UIView. 
    //UIKeyboard is a subclass of UIView anyways 
    UIView* keyboard; 

    //Iterate though each view inside of the selected Window 
    for(int i = 0; i < [tempWindow.subviews count]; i++) 
    { 
     //Get a reference of the current view 
     keyboard = [tempWindow.subviews objectAtIndex:i]; 

     //Check to see if the className of the view we have referenced is \"UIKeyboard\" if so then we found 
     //the keyboard view that we were looking for 
     if([[keyboard className] isEqualToString:@\"UIKeyboard\"] == YES) 
     { 
      //Keyboard is now a UIView reference to the UIKeyboard we want. From here we can add a subview 
      //to th keyboard like a new button 

      //Do what ever you want to do to your keyboard here... 
     } 
    } 
관련 문제