m File:
-(void)viewDidLoad
{
CGRect rect = CGRectMake(lbl_txt.frame.origin.x, lbl_txt.frame.origin.y+40, lbl_txt.frame.size.width, 0);
[tbl_Cities setFrame:rect];
}
-(IBAction)clicked_cities:(id)sender
{
CGRect rect = CGRectMake(lbl_Selected_City.frame.origin.x, lbl_Selected_City.frame.origin.y+40, lbl_Selected_City.frame.size.width, 250);
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
[tbl_Cities setFrame:rect];
[UIView commitAnimations];
}
No comments:
Post a Comment