Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

unclefudgly

macrumors newbie
Original poster
May 26, 2007
28
0
Yorkshire
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.