Calling same method twice

Discussion in 'iOS Programming' started by unclefudgly, Feb 3, 2010.

  1. unclefudgly macrumors newbie

    Joined:
    May 26, 2007
    Location:
    Yorkshire
    #1
    hi

    I'm just putting the finishing touches to my first app for iphone and wanted to ask if it's good practice to call the same method twice, as this was the only way I found of updating my final values displayed in a UILabel.

    example :
    I have on one UIView a UIPickerView and segmentedControl, I have put the same method into each ones actions ( one in an IBAction segmentedValueChanged and one in Pickerview didSelectRow etc)

    Now whenever either of the values changed my UILabel is updated.

    Is there a better way to do this or am I OK with my approach?

    Cheers
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London

Share This Page