Я создал панель для отображения над клавиатурой для следующего / предыдущего / сделано, как браузер Safari. Однако свойство setalpha UIview панели, похоже, не работает. Независимо от того, какое значение я установил, ничего не меняется. Вот код ...
здесь называется вид создания ..
-(void)textFieldDidBeginEditing:(UITextField *)textField{
// Call the createInputAccessoryView method we created earlier.
// By doing that we will prepare the inputAccView.
[self createInputAccessoryView];
// Now add the view as an input accessory view to the selected textfield.
[textField setInputAccessoryView:inputAccView];
// Set the active field. We' ll need that if we want to move properly
// between our textfields.
txtActiveField = textField;
}
вот где я на самом деле создаю и устанавливаю его значения ...
-(void)createInputAccessoryView{
// Create the view that will play the part of the input accessory view.
// Note that the frame width (third value in the CGRectMake method)
// should change accordingly in landscape orientation. But we don’t care
// about that now.
inputAccView = [[UIView alloc] initWithFrame:CGRectMake(10.0, 0.0, 310.0, 40.0)];
// Set the view’s background color. We’ ll set it here to gray. Use any color you want.
[inputAccView setBackgroundColor:[UIColor darkGrayColor]];
// We can play a little with transparency as well using the Alpha property. Normally
// you can leave it unchanged.
[inputAccView setAlpha: 0.1f];
... code for adding buttons and their properties
}
так что в основном это все, что нужно. но свойство setAlpha ничего не делает, независимо от того, что я установил. Тем не менее, цвет фона работает отлично. Есть идеи?
Спасибо