• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UIPicker selectRow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UIPicker selectRow


  • Subject: UIPicker selectRow
  • From: IPhone Lover <email@hidden>
  • Date: Thu, 19 Aug 2010 11:18:59 +0530

Hi Folks,
sorry, but i am not sure whether my mail reached to xcode-users so i am writing again

I am trying to select the first row as default.. Here i tried

-(void)pickerViewLoaded{

   [pickerView setShowSelectionIndicator:YES];
   pickerView.delegate = self;
   [pickerView reloadAllComponents];
   [pickerView selectRow:1 inComponent:0 animated:YES]
}

It works fine when i call this method on viewDidLoad() which call didSelectRow method but it is selecting the second row of that component not first one. when i call with [pickerView selectRow:0 inComponent:0 animated:YES] then it never call didSelectRow method.

another problem is when i call pickerViewLoaded method on selection of segmented control it does not call the didSelectRow method. i still could not figure when it may call with viewDidLoad then why not with segmentedControl.

Thanks all,
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: UIPicker selectRow
      • From: David Dunham <email@hidden>
  • Prev by Date: Re: Xcode Debugger issues
  • Next by Date: Re: UIPicker selectRow
  • Previous by thread: Re: Help understanding this error
  • Next by thread: Re: UIPicker selectRow
  • Index(es):
    • Date
    • Thread