UIPickerView

Discussion in 'iOS Programming' started by yaniv92648, Jan 25, 2010.

  1. yaniv92648 macrumors member

    Joined:
    Oct 26, 2009
    #1
    Hi,
    I have a picker and i wanna stall it's event driven methods. the methods are:

    Code:
    - (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component;
    
    - (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView;
    
    - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view;
    Thanks.
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    What do you mean by "stall"? Please elaborate.
     
  3. yaniv92648 thread starter macrumors member

    Joined:
    Oct 26, 2009
    #3
    delay them

    say i wanna delay them such that it will run after "viewDidLoad"(for example). is there a way to do that?
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    I don't know exactly what's in your viewDidLoad but I'm guessing you instantiate your UIPickerView. I would suggest doing that at some other point. Also, maybe explain why you want to delay them.
     
  5. yaniv92648 thread starter macrumors member

    Joined:
    Oct 26, 2009
    #5
    solved..

    i had a multi-thread problem... so i just did the parse synchronious..
    thanks anyway..
     
  6. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    Parse? What parse? That's the first I've heard of that. It's not gonna be easy for us to help you if you leave out important details like that.
     

Share This Page