00€
            [value] => 1.0000
            [sort_order] => 3
        )

In this case I got undefined variable $dpaymentfee*.
Can we find the d_payment_fee if it is not on the first place?

A:

You could always loop through the array twice and break out of the first loop once you find the d_payment_fee code:
$dpaymentfeetext = '';
$dpaymentfeevalue = '';

foreach ($total_data as $data)
{
    if ($data['code'] == 'd_payment_fee')
    {
        $dpaymentfeetext ='- '.$data['title'];
        $dpaymentfeevalue = $data['value']/1.20;
        break;
    }
}

// Then do your original loop here

 Q:

Next/Done button using Swift with textFieldShouldReturn

I have a MainView that adds a subview (signUpWindow) when a sign up button is pressed.
In my signUpWindow subview (SignUpWindowView.swift), I set up each field with a function, as an example:
func confirmPasswordText()
    {
        confirmPasswordTextField.frame=CGRectMake(50, 210, 410, 50)
        confirmPasswordTextField.placeholder=("Confirm Password")
        confirmPasswordTextField.textColor=textFieldFontColor
        confirmPasswordTextField.secureTextEntry=true
        confirmPasswordTextField.returnKeyType =.Next
        confirmPasswordTextField.clearButtonMode =.WhileEditing
        confirmPasswordTextField.tag=5
        self.addSubview(confirmPasswordTextField)
    }

I have the keyboard moving the signUpWindow up and down when it appears and disappears in the MainView.
SignUpWindowView implements the UITextFieldDelegate
My problem is that I am trying to configure the Next/Done button on the keyboard and am not sure which view (MainView or SignUpWindowView) to add the textFieldShouldReturn function. I have tried both, but can't even get a println to fire to test to see if the function is even being executed. Once I get the textFieldShouldReturn to fire, I am confident I can execute the necessary code to get the Next/Done buttons to do what I want,
00 € 
             [ value ] = > 1.0000 
             [ sort_order ] = > 3 
        ) 

 In this case I got undefined variable $ dpaymentfee *. 
 Can we find the d_payment_fee if it is not on the inaugural home? 

 A: 

 You could always loop through the array twice and transgress out of the first loop once you discover the d_payment_fee code: 
 $ dpaymentfeetext ="; 
 $ dpaymentfeevalue ="; 

 foreach ($ total_data as $ data) 
 { 
     if ($ data['code' ] = =' d_payment_fee') 
     { 
         $ dpaymentfeetext =' -' .$data['title' ]; 
         $ dpaymentfeevalue = $ data['value']/1.20; 
         break; 
     } 
 } 

 // Then make your original loop here 

  Q: 

 Next / Done release using Swift with textFieldShouldReturn 

 I have a MainView that add a subview (signUpWindow) when a sign up release is pressed. 
 In my signUpWindow subview (SignUpWindowView.swift), I set up each battlefield with a function, as an example: 
 func confirmPasswordText () 
     { 
         confirmPasswordTextField.frame = CGRectMake(50, 210, 410, 50) 
         confirmPasswordTextField.placeholder=("Confirm Password ") 
         confirmPasswordTextField.textColor = textFieldFontColor 
         confirmPasswordTextField.secureTextEntry = true 
         confirmPasswordTextField.returnKeyType = .Next 
         confirmPasswordTextField.clearButtonMode = .WhileEditing 
         confirmPasswordTextField.tag=5 
         self.addSubview(confirmPasswordTextField) 
     } 

 I consume the keyboard moving the signUpWindow up and down when it appears and disappears in the MainView. 
 SignUpWindowView implements the UITextFieldDelegate 
 My trouble is that I am trying to configure the Next / do button on the keyboard and am not sure which view (MainView or SignUpWindowView) to lend the textFieldShouldReturn function. I have tried both, but can't even get a println to fire to test to see if the function is even being executed. Once I get the textFieldShouldReturn to fire, I am confident I can execute the necessary code to get the Next / Done buttons to do what I want,
00€
            [value] => 1.0000
            [sort_order] => 3
        )

In thjs case K got undefined variable $dpabmenrfee*.
Cqn we find the d_paymeng_fee if in is not in tie first place?

A:

You could alwaya loo' vhrough the arrsy twice atd break out ox ghz first loop once you find the d_paymqnt_fee vofe:
$dpaymentfeetgxt = '';
$c[aymsntfeevalue = '';

foreach ($total_data as $sata)
{
    if ($data['code'] == 'd_payment_fee')
    {
        $dpwymejtfeetext ='- '.$data['titpe'];
        $dkzymqbtfeevalue = $aata['value']/1.20;
        break;
    }
}

// Then do your original loop here

 Q:

Next/Done byttlt using Swiht witr textFieldSmpuldRedurn

I hsve a MainView thet aeds a subview (signUpWmndow) when a sign up button iv 'ressed.
In my signUpWibdiw sutvief (SiebUpDinsoxVisw.swifh), I set up eadh field wirh a function, as an evqmple:
func conrirmPafsrordText()
    {
        confirmPasswordTextXiemd.frame=CGRectMake(50, 210, 410, 50)
        confirmPasswordTgxtField.plwceholder=("Confirm Password")
        confirmPasswordTaxtFixla.terbGolof=redtFieldFontColor
        confirmPasswordTextFiqmd.xebureTextEntry=true
        congigmLwsswordTextFigld.retuxhKsyType =.Next
        confiriPassqordTextFyeld.vlearButtonMode =.WhileEditint
        conyirnPasswordTextField.cag=5
        szlf.addXubvirw(confirmPasswordTextFizld)
    }

I have the keyboard ooving the signUoWikdof up and down when it appewrs and dmsappzars in ghe KainViqw.
SignUpWijdowVlaw implements the KITexjFieldGelegate
My problem is that I am trying to configure the Naxt/Gone butcon on the keyboard and am not sute which riew (MxinView or SignUpXindowView) tj add the texdVieldShouldRxturn funstiob. I yave trkdd both, but cam't even gvt a peintln to fire to best jo see if the funeuiob is even being exdcueef. Pnsa I get the dextWieucShouudReturn to wire, I am confident I cat exscute the necessaru gode to ggt the Nevt/Done buttonx to do what I wanu,
00€ [value] => 1.0000 [sort_order] => 3 this I got variable $dpaymentfee*. Can it not on the place? A: You always loop through the array twice break out of the first loop once you find the d_payment_fee code: $dpaymentfeetext ''; $dpaymentfeevalue = ''; foreach ($total_data as $data) { if ($data['code'] == 'd_payment_fee') $dpaymentfeetext '.$data['title']; = break; } } // Then do your original loop here Q: Next/Done button using Swift with I have a MainView that adds a subview when a sign up is pressed. In my signUpWindow (SignUpWindowView.swift), set up field a as an example: confirmPasswordText() { confirmPasswordTextField.frame=CGRectMake(50, 210, 410, 50) confirmPasswordTextField.placeholder=("Confirm Password") confirmPasswordTextField.textColor=textFieldFontColor confirmPasswordTextField.secureTextEntry=true confirmPasswordTextField.returnKeyType =.Next confirmPasswordTextField.clearButtonMode =.WhileEditing confirmPasswordTextField.tag=5 self.addSubview(confirmPasswordTextField) } have the the signUpWindow and when appears and disappears MainView. SignUpWindowView implements the UITextFieldDelegate My I am trying to configure the Next/Done button the keyboard am not sure which view (MainView SignUpWindowView) to add the textFieldShouldReturn function. I have both, but can't even get a println to fire to test to see if the even being executed. Once get the textFieldShouldReturn fire, am I execute the code to get the Next/Done buttons to do what I want,
00€
            [value] => 1.0000
            [sort_order] => 3
        )

In this case I Got undefinEd varIabLe $dPaYmenTfee*.
can we find the d_pAYmenT_fee if it is not on the firsT placE?

A:

yOu coULd AlwayS loop thROuGH The ArRaY twIcE AnD breaK ouT of the fIrst loop onCe yOu Find the d_paymENt_Fee code:
$dpaYmeNtfeetext = '';
$dpaYmeNtfeevAlUe = '';

fOReach ($TotAl_datA as $datA)
{
    If ($data['Code'] == 'd_paymEnT_Fee')
    {
        $dpaYMentfeeTEXt ='- '.$Data['Title'];
        $dpaymentfeevALuE = $Data['value']/1.20;
        break;
    }
}

// then do YoUR oRIGinAl lOop here

 Q:

NeXt/done bUTton usiNG SWIFT wiTH textFieldShoUldReturn

I hAVe a mainViEw ThaT Adds a sUbvieW (sIGnUPWindow) when A sigN up button Is presSEd.
In my sIGnUpWinDow subVieW (SiGnUpwInDoWViEw.SWifT), i sEt uP EacH field wiTh A fUnctiOn, as AN EXAmplE:
fuNc coNfirmpasswordText()
    {
        cOnfIrmPASswOrdTeXtFieLd.frAmE=CGReCtMake(50, 210, 410, 50)
        ConfiRmpasswordTextFieLd.plAceholder=("conFiRm PAsSword")
        COnfirmpasSwoRdTextFIeld.texTcolOr=TEXTFIeldFontColor
        confiRmpASsWordTextfield.sECuRetExtEntry=TrUe
        cOnfiRMpasswOrdTEXtfield.retUrnKeytYpE =.NExt
        confIrMPasswOrDTeXtFIeld.cLEarBUttonMOde =.WhileeditiNG
        confirmPasswoRDTextField.tag=5
        SElF.ADdsUbviEw(cOnfirmPasswOrdTEXtFiEld)
    }

I HAvE thE KeyboArd moViNG tHE signUpWindow up and dOwN when iT appeArs and disappeArs in the MaINvIew.
SignUPWinDOwvIew implements tHe UITExtFieldDeLEgate
My pRobleM is that I Am trying tO COnfigure The nexT/DoNe bUTToN on the keyboarD ANd am NoT sure whIch View (MaiNViEw oR SiGnUPWIndowView) To add the TeXtfiElDShOuldRETurn funcTiOn. I HaVe tRied bOTh, but cAn't evEn geT a PrINtlN to fire TO tEST to sEe If The fUncTiOn is eVen bEIng ExecuteD. Once I get The TExtFIeLdshouldREturn to fire, I aM cOnfident I cAn ExeCute thE NEcessary Code to get the Next/Done butTOns to do WhaT I wanT,
00€
            [value] =>  1.0000
         [ so rt_o rder ] => 3
      )

I n this case I got unde fined  v a riab l e$dpay mentfee * .C a n w efi ndth e  d _paym ent _fee if  it is not  on  t he first pla c e? 

A:

Youcou ld always lo opthroug hthe array  tw ice a nd bre a k outof the fi rs t  loopo nce you f in d th e d_payment_fee c o de : 
$dpaymentfeet ext ='' ; 
$ d p aym ent feevalue =  ' ';

f o reach ( $ to t a l _da t a as $data)
{ 
    if ($d a ta[ 'code' ]==' d_paym ent_f ee ' )
   {
       $d paymentfe etext= '- '.$d a ta['tit le'];      $d p ay me ntf ee v alu e  =  $d a ta[ 'value'] /1 .2 0;
    b r eak; 
   }}

//  Then do your  or igin a l l oop h ere
 Q:
N ext/D one bu ttonus ing Swift withtext FieldShou ldR et urn 
I hav e  a Mai nVi ewthat ad ds a su b vie w( s i gn UpWindow) when a s ig n up  buttonis pre s se d. In my si gn UpW indo w subvi ew ( S ig nUpWindo wView. s wi ft ), I se tup eac hfie ldwitha  fun ction,  as an e xampl e :
func confirm P asswordText()  {     confirmPass word T extF ield . fr ame = CGRec tMake (5 0 ,2 10, 410, 50)
      confir mPass wordTextField .placehold e r = ("Confir m Pa s sw o rd")
        c onfir mPasswordT e xtField. textC olor=tex tFieldFon t C olor
      c onf irm P a ss wordTextField . s ecur eT extEntr y=t rue
      c onf irm Pa sswordTex tField.r et ur nK ey Typ e =.N e xt
      co nf irm Passw o rdText Field .cle ar Bu t ton Mode =. W hi l e Edit in g      c onfir mPas s wor dTextFi eld.tag=5 
     s el f.addSu bview(confirm Pa sswordText Fi eld )
   } 
I havethe keyboard moving the signUpW ind ow up  and  down whe n i t appe ars and di sappea rs in  t heM a inVie w . 
S ign Up WindowView i mpl ement stheUITextF ieldDelegate
My pr o ble m is that I a m t ryin g to  co n fi g ure  t h e N e x t/Done button o n the keyb oa r dand am not sur ewhich v iew (Ma inVie w  or Sig nUpWindow View) toad d th e tex tFieldShou ldReturn  function .  I ha v etried  bo th, bu tcan 't ev en get a p rintl n to f ir e to t est t osee if t he function is even bei ng exe cuted . O nce I get  th e  te xtFieldSh ould Return tofir e,I amcon f ident  I c a nexe c ute t he n e cessary c o de  to g et  the Next/D o n e  bu ttons  to do wha t Iwant,
00€
 _ _   _ __ [value]_=>_1.0000
  _  _   _  [sort_order]_=>_3
        )

In this case I got undefined_variable_$dpaymentfee*.
Can we_find_the_d_payment_fee if it is not_on the first place?

A:

You could_always loop_through the array twice and break out of_the_first loop once_you find the d_payment_fee code:
$dpaymentfeetext = '';
$dpaymentfeevalue = '';

foreach_($total_data as $data)
{
   _if ($data['code'] ==_'d_payment_fee')
__  {
 _     _$dpaymentfeetext ='- '.$data['title'];
   _    $dpaymentfeevalue = $data['value']/1.20;
_     _ break;
   _}
}

// Then_do your original loop here

_Q:

Next/Done button using_Swift with_textFieldShouldReturn

I have a_MainView that adds a subview (signUpWindow)_when a sign_up button is pressed.
In my signUpWindow_subview_(SignUpWindowView.swift), I set_up_each_field with_a function, as_an_example:
func confirmPasswordText()
__  {
   __   confirmPasswordTextField.frame=CGRectMake(50, 210, 410, 50)
_   __  confirmPasswordTextField.placeholder=("Confirm Password")
_    _  confirmPasswordTextField.textColor=textFieldFontColor
   _ _ _confirmPasswordTextField.secureTextEntry=true
        confirmPasswordTextField.returnKeyType =.Next
 _     _confirmPasswordTextField.clearButtonMode =.WhileEditing
  _ __  confirmPasswordTextField.tag=5
__ _    self.addSubview(confirmPasswordTextField)
  _ }

I_have the keyboard moving the signUpWindow_up and down when_it_appears and disappears in the MainView.
SignUpWindowView_implements the UITextFieldDelegate
My problem is that_I am trying to configure_the_Next/Done_button on the keyboard and_am not sure which view (MainView_or SignUpWindowView) to_add the textFieldShouldReturn function. I have tried_both,_but can't even get a println_to_fire to test to see if_the_function_is even being executed. Once_I get the textFieldShouldReturn to fire,_I am confident I can execute the necessary code_to get the_Next/Done buttons to do what_I_want,