IOS 学习笔记
[UIView animateWithDuration:0.5 delay:0 options:UIViewAnimationTransitionCurlUp animations:^{ [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES]; // [delegate ContentView_UnLoad]; // self.view.center = CGPointMake(self.view.center.x, self.view.center.y+480.0); } completion:^(BOOL finished){ if (finished){ [self unLoadMe]; //[delegate ContentView_UnLoad]; } } ];
nContentView=[[UserNewsContentView alloc] initWithNibName:@"UserNewsContentView" bundle:nil SetTypeID:typeStr SetTitleID:titleStr]; [self presentModalViewController:nContentView animated:YES];
//跳转页
[self dismissModalViewControllerAnimated:YES];
}
NSDate* dat = [NSDate dateWithTimeIntervalSince1970:1319939453];
9:日期转换是星期几:NSDateComponents *weekdayComponents = [[NSCalendar currentCalendar] components:NSWeekdayCalendarUnit fromDate:dat]; int weekday = [weekdayComponents weekday]; NSLog(@"%d",weekday); NSLog(@"%@",dat);
10:请问 怎么查看一个view得superview? [view.superview description]
// [((AppDelegate *)[UIApplication sharedApplication].delegate).window.rootViewController dismissModalViewControllerAnimated:YES]; [((AppDelegate *)[UIApplication sharedApplication].delegate).menuViewController dismissModalViewControllerAnimated:YES]; //[self.presentingViewController.presentingViewController dismissModalViewControllerAnimated:NO];
11:
首先引入
|
for (UIView *oneView in ViewBody.subviews ) {
[oneView removeFromSuperview];
}