<tfoot id='NhqUu'></tfoot>
  • <i id='NhqUu'><tr id='NhqUu'><dt id='NhqUu'><q id='NhqUu'><span id='NhqUu'><b id='NhqUu'><form id='NhqUu'><ins id='NhqUu'></ins><ul id='NhqUu'></ul><sub id='NhqUu'></sub></form><legend id='NhqUu'></legend><bdo id='NhqUu'><pre id='NhqUu'><center id='NhqUu'></center></pre></bdo></b><th id='NhqUu'></th></span></q></dt></tr></i><div id='NhqUu'><tfoot id='NhqUu'></tfoot><dl id='NhqUu'><fieldset id='NhqUu'></fieldset></dl></div>

    1. <small id='NhqUu'></small><noframes id='NhqUu'>

        <bdo id='NhqUu'></bdo><ul id='NhqUu'></ul>

      <legend id='NhqUu'><style id='NhqUu'><dir id='NhqUu'><q id='NhqUu'></q></dir></style></legend>

        uialertview 多次调用

        时间:2023-07-06

      1. <legend id='GSWR0'><style id='GSWR0'><dir id='GSWR0'><q id='GSWR0'></q></dir></style></legend>
            <bdo id='GSWR0'></bdo><ul id='GSWR0'></ul>

              <small id='GSWR0'></small><noframes id='GSWR0'>

              <i id='GSWR0'><tr id='GSWR0'><dt id='GSWR0'><q id='GSWR0'><span id='GSWR0'><b id='GSWR0'><form id='GSWR0'><ins id='GSWR0'></ins><ul id='GSWR0'></ul><sub id='GSWR0'></sub></form><legend id='GSWR0'></legend><bdo id='GSWR0'><pre id='GSWR0'><center id='GSWR0'></center></pre></bdo></b><th id='GSWR0'></th></span></q></dt></tr></i><div id='GSWR0'><tfoot id='GSWR0'></tfoot><dl id='GSWR0'><fieldset id='GSWR0'></fieldset></dl></div>
              <tfoot id='GSWR0'></tfoot>

                    <tbody id='GSWR0'></tbody>
                  本文介绍了uialertview 多次调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  这很烦人......!!!

                  It's Irritating ...!!!

                  我搜索了这个问题,发现了一些 Relative Questions,但没有找到 Satisfactory Answers.

                  I googled about this problem, found some Relative Questions but not Satisfactory Answers.

                  所以我有一个 - (IBAction) 方法,当 "Add" 时将一些 UITextField's 值添加到 NSMutableArray 按钮被点击.如果 UITextField 为 empty,我只是想显示 UIAlertView.

                  So I have One - (IBAction) method that adds some UITextField's Values to NSMutableArray when "Add" Button is Clicked. I am simply trying to show UIAlertView, if the UITextField is empty.

                  我的代码:

                  - (IBAction)addButtonPressed:(id)sender
                  {
                         if ([textField1.text length]==0 || [textField2.text length]==0 || !someFlag)
                          {
                              UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"MyApp" message:@"Please Enter Valid Data..." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
                              [alert show];
                              [alert release];
                          }
                          else
                          {
                               // Code to add textField's value to Array.
                          }
                  }
                  

                  我的问题:

                  每当我按下带有 empty textField"Add" 按钮时,UIAlertView 就会出现 三次.

                  Whenever I press "Add" Button with empty textField , UIAlertView appears thrice.

                  1) 首次出现带有关闭" 按钮.(我从未添加过...)它会在一段时间内消失.

                  1) For the First Time It appears with "Close" Button. (I have never added...) It disappears within some time.

                  2) 第二次出现 确定" 按钮.(这就是我添加的...)当我按下 确定" 按钮时它会消失.

                  2) Second Time It appears with "OK" Button. (That's what I added...) It disappears when I press "OK" Button.

                  3) 第三次 再次出现关闭"按钮.当我按下 关闭" 按钮时它会消失.

                  3) Third Time It appears with "Close" Button again. It disappears when I press "Close" Button.

                  类似问题:UIAlertView 弹出三个每次通话的次数而不是一次.有人可以帮我找到解决方案吗?

                  Similar Question : UIAlertView Pops Up Three Times per Call Instead of Just Once. Can someone help me to found solution from this ?

                  推荐答案

                  奇怪....!!!

                  有时,当您过度烦躁时,您会完全忽略某些代码行.它也发生在我身上.我忽略了从 -addButtonPressed Method 调用的一种方法,其中有一个 AlertView (当然带有 "Close" 按钮).

                  Sometimes it happens that you Totally Neglect certain lines of your code When you are Over-Irritated. It happend to me also. I neglected one method that is called from -addButtonPressed Method , Which has One AlertView (With "Close" Button of course) inside it.

                  这就是解决方案本身!!!

                  That's the Solution itself !!!

                  这篇关于uialertview 多次调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  <small id='bK2dH'></small><noframes id='bK2dH'>

                      <tbody id='bK2dH'></tbody>
                    <legend id='bK2dH'><style id='bK2dH'><dir id='bK2dH'><q id='bK2dH'></q></dir></style></legend>
                  • <tfoot id='bK2dH'></tfoot>

                        <bdo id='bK2dH'></bdo><ul id='bK2dH'></ul>

                          <i id='bK2dH'><tr id='bK2dH'><dt id='bK2dH'><q id='bK2dH'><span id='bK2dH'><b id='bK2dH'><form id='bK2dH'><ins id='bK2dH'></ins><ul id='bK2dH'></ul><sub id='bK2dH'></sub></form><legend id='bK2dH'></legend><bdo id='bK2dH'><pre id='bK2dH'><center id='bK2dH'></center></pre></bdo></b><th id='bK2dH'></th></span></q></dt></tr></i><div id='bK2dH'><tfoot id='bK2dH'></tfoot><dl id='bK2dH'><fieldset id='bK2dH'></fieldset></dl></div>