IOS9 IPAD UITextField hide keyboard shortcut bar.!

赵永新
2023-12-01

You can pass your textfield name in place of UITextField for which you want to remove shortcut bar.UITextInputAssistantItem* item =

[textField inputAssistantItem]

;item.leadingBarButtonGroups = @[];item.trailingBarButtonGroups = @[];


IOS some useful tip:

Hide keyboard:textfield.inputView = [[UIView alloc] initWithFrame:CGRectZeor];

Design your keyboard:textfield.inputView = customView;//customeView is designed by you which is UIView;

Setting the frame: CGRectMake(x,y,width,height);

Get the frame: CGRectGetMaxX(XXX.frame);CGRectGetWidth(XXX.frame);CGRectGetHeight(XXX.frame);

Set the Array:NSArray *arr = [[NSArrayalloc]initWithObjects:@"a",@"b",nil];NSArray *arr1 = @[@"1",@"b"];

Get theOrientation Is Landscape Or No:BOOL isLandScape =UIInterfaceOrientationIsLandscape(self.interfaceOrientation);


Rember some base, It will help you do the better.





 类似资料:

相关阅读

相关文章

相关问答