Slide in and Out of View

Discussion in 'iOS Programming' started by forrestgrant, Aug 8, 2008.

  1. forrestgrant macrumors member

    Joined:
    Jun 24, 2008
    #1
    Hi,

    I have a date picker, that just appears on screen:
    Code:
    		UIDatePicker *datePickerView = [[UIDatePicker alloc] initWithFrame:CGRectZero];
    		datePickerView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
    		datePickerView.datePickerMode = UIDatePickerModeDate;
    		
    		CGSize pickerSize = [datePickerView sizeThatFits:CGSizeZero];
    		datePickerView.frame = CGRectMake(0.0, 420, pickerSize.width, 460);
    		datePickerView.backgroundColor = [UIColor blackColor];
    
                   [myView addSubview:datePickerView];
    This works great, but is there a way to have it animate up or slide up, like the keyboard does in Safari etc?

    Thanks!
     
  2. SwampThingTom macrumors member

    Joined:
    Jul 12, 2008
    Location:
    Fairfax, VA
    #2

Share This Page