2016-04-01 7 views
0

私は以下のような効果を得たいと思っていますが、これら2つのUITextField間の距離も必要です。これどうやってするの?UITextFieldのUIAlertController内の距離

UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"LoginAndPasswordStyle" 
                   message:@"Enter login and password" 
                 preferredStyle:UIAlertControllerStyleAlert]; 

[alert addTextFieldWithConfigurationHandler:^(UITextField *textField) 
{ 
    textField.placeholder = @"Login"; 
}], 
[alert addTextFieldWithConfigurationHandler:^(UITextField *textField) 
{ 
    textField.placeholder = @"Pass"; 
    textField.secureTextEntry = YES; 
}], 

enter image description here

答えて

1

UIAlertControllerビューは、シンプルでカスタマイズできないことが意図されています。独自の提示されたView Controllerを作成すると、ビューはあなたのものになり、好きなことをすることができます。 とカスタムアラートのチェックこのlinkのために、このlink

1

へ チェックの詳細情報は、多分これを行うには正式な方法はありませんが、あなたはthis

を試してみてください、あなたのカスタムにアラートビューをいくつかのサードパーティ製のフレームワークを使用することができます